mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-08-07 17:49:34 +00:00
POM cleanup, updated to latest available artifacts versions, removed obsolete stuff, life, universe and everything. Changed an exact multiple of 42 characters.
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@332 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
@@ -27,20 +27,14 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<description>
|
<description>
|
||||||
This archetype developed aims to provide a standardized approach to development, release and deployment of Alfresco extensions (as opposed to
|
This archetype developed aims to provide a standardized approach to development, release and deployment of Alfresco extensions (as opposed to
|
||||||
AMP builds, to be released as a different artifact ). Using standard m2 lifecycle commands (mvn compile package deploy) and generally
|
AMP builds, to be released as a different artifact ).
|
||||||
available plugins (cargo, release, assembly) we are able to cover a very high percentage of Alfresco lifecycle common use cases. It can be
|
|
||||||
used both with Maven2 and Ant build systems, but it must be clear that *only* the Maven2 approach provides all the automation features we will
|
|
||||||
describe in this website. In addition to that the m2 approach provides a zero-conf approach while ant requires (as usual) manual gathering and
|
|
||||||
selection of required alfresco libraries and webapp (please refer to README-ant.txt for further info about the Ant build). Last but not the
|
|
||||||
least, m2 build is more likely to be maintained and improved (especially in the likely case Alfresco moves to maven2). For more details on the
|
|
||||||
m2 apprach please refer instead to README Section (or directly and to README-m2.txt of the generated project).
|
|
||||||
</description>
|
</description>
|
||||||
<build>
|
<build>
|
||||||
<extensions>
|
<extensions>
|
||||||
<extension>
|
<extension>
|
||||||
<groupId>org.apache.maven.archetype</groupId>
|
<groupId>org.apache.maven.archetype</groupId>
|
||||||
<artifactId>archetype-packaging</artifactId>
|
<artifactId>archetype-packaging</artifactId>
|
||||||
<version>2.0-alpha-2</version>
|
<version>2.0</version>
|
||||||
</extension>
|
</extension>
|
||||||
<!--
|
<!--
|
||||||
Unreleased version of webdav wagon plugin which fixes a boring
|
Unreleased version of webdav wagon plugin which fixes a boring
|
||||||
|
@@ -65,7 +65,7 @@ Lifecycle HOWTO - Usage
|
|||||||
|
|
||||||
--- Fast one shot build and embedded jetty run-war|run-exploded [and restore bootstrap] [and customize webappName] [and integrate LDAP]:
|
--- Fast one shot build and embedded jetty run-war|run-exploded [and restore bootstrap] [and customize webappName] [and integrate LDAP]:
|
||||||
|
|
||||||
' MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m mvn integration-test [-Denv=yourEnv] [-DrestoreVersion=versionToRestore] [-DwebappName=yourCustomWebappName] [-Denterprise] '
|
' MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m mvn integration-test" [-Denv=yourEnv] [-DrestoreVersion=versionToRestore] [-DwebappName=yourCustomWebappName] [-Denterprise] '
|
||||||
|
|
||||||
(default env=src/main/properties/local/application.properties)
|
(default env=src/main/properties/local/application.properties)
|
||||||
|
|
||||||
|
@@ -15,11 +15,11 @@
|
|||||||
<property name="alfresco.dir" value=""/>
|
<property name="alfresco.dir" value=""/>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- By default loads src/main/properties/local/application.properties -->
|
<!-- By default loads src/main/properties/local/alfresco-global.properties -->
|
||||||
<property name="env" value="local"/>
|
<property name="env" value="local"/>
|
||||||
<property name="webapp.name" value="alfresco" />
|
<property name="webapp.name" value="alfresco" />
|
||||||
|
|
||||||
<property file="${properties.dir}/${env}/application.properties" />
|
<property file="${properties.dir}/${env}/alfresco-global.properties" />
|
||||||
|
|
||||||
<!-- Import tomcat utility tasks -->
|
<!-- Import tomcat utility tasks -->
|
||||||
<import file="${tools.dir}/ant/tasks/tomcat-tasks.xml"/>
|
<import file="${tools.dir}/ant/tasks/tomcat-tasks.xml"/>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
<exclude name="**/restore-context.xml" />
|
<exclude name="**/restore-context.xml" />
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
<copy file="${properties.dir}/${env}/application.properties" tofile="${build.dir}/classes/alfresco/extension/application.properties"></copy>
|
<copy file="${properties.dir}/${env}/alfresco-global.properties" tofile="${build.dir}/classes/alfresco-global.properties"></copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
@@ -17,13 +17,13 @@
|
|||||||
<extension>
|
<extension>
|
||||||
<groupId>org.apache.maven.archetype</groupId>
|
<groupId>org.apache.maven.archetype</groupId>
|
||||||
<artifactId>archetype-packaging</artifactId>
|
<artifactId>archetype-packaging</artifactId>
|
||||||
<version>2.0-alpha-4</version>
|
<version>2.0</version>
|
||||||
</extension>
|
</extension>
|
||||||
</extensions>
|
</extensions>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-archetype-plugin</artifactId>
|
<artifactId>maven-archetype-plugin</artifactId>
|
||||||
<version>2.0-alpha-4</version>
|
<version>2.0</version>
|
||||||
<extensions>true</extensions>
|
<extensions>true</extensions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
<!-- Configuration point for the build time properties -->
|
<!-- Configuration point for the build time properties -->
|
||||||
<properties>
|
<properties>
|
||||||
<env>local</env>
|
<env>local</env>
|
||||||
<alfresco.version>3.2r</alfresco.version>
|
<alfresco.version>3.4.a</alfresco.version>
|
||||||
<share.log.level>info</share.log.level>
|
<share.log.level>info</share.log.level>
|
||||||
<share.servlet.port>8081</share.servlet.port>
|
<share.servlet.port>8081</share.servlet.port>
|
||||||
</properties>
|
</properties>
|
||||||
|
@@ -18,13 +18,13 @@
|
|||||||
<extension>
|
<extension>
|
||||||
<groupId>org.apache.maven.archetype</groupId>
|
<groupId>org.apache.maven.archetype</groupId>
|
||||||
<artifactId>archetype-packaging</artifactId>
|
<artifactId>archetype-packaging</artifactId>
|
||||||
<version>2.0-alpha-4</version>
|
<version>2.0</version>
|
||||||
</extension>
|
</extension>
|
||||||
</extensions>
|
</extensions>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-archetype-plugin</artifactId>
|
<artifactId>maven-archetype-plugin</artifactId>
|
||||||
<version>2.0-alpha-4</version>
|
<version>2.0</version>
|
||||||
<extensions>true</extensions>
|
<extensions>true</extensions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
@@ -29,12 +29,13 @@
|
|||||||
<extension>
|
<extension>
|
||||||
<groupId>org.apache.maven.wagon</groupId>
|
<groupId>org.apache.maven.wagon</groupId>
|
||||||
<artifactId>wagon-http-shared</artifactId>
|
<artifactId>wagon-http-shared</artifactId>
|
||||||
<version>1.0-beta-6-patched</version>
|
<version>1.0</version>
|
||||||
</extension>
|
</extension>
|
||||||
</extensions>
|
</extensions>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-archetype-plugin</artifactId>
|
<artifactId>maven-archetype-plugin</artifactId>
|
||||||
|
<version>2.0</version>
|
||||||
<extensions>true</extensions>
|
<extensions>true</extensions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<alfresco.version>3.3-SNAPSHOT</alfresco.version>
|
<alfresco.version>3.4.a</alfresco.version>
|
||||||
<spring.version>3.0.0.RELEASE</spring.version>
|
<spring.version>3.0.0.RELEASE</spring.version>
|
||||||
<amp-plugin.version>3.0.3-SNAPSHOT</amp-plugin.version>
|
<amp-plugin.version>3.0.3-SNAPSHOT</amp-plugin.version>
|
||||||
<alfresco.module.id>${project.artifactId}</alfresco.module.id>
|
<alfresco.module.id>${project.artifactId}</alfresco.module.id>
|
||||||
@@ -39,6 +39,11 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
<classifier>community</classifier>
|
<classifier>community</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework</groupId>
|
||||||
|
<artifactId>spring-context</artifactId>
|
||||||
|
<version>3.0.3.RELEASE</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.alfresco.maven.plugin</groupId>
|
<groupId>org.alfresco.maven.plugin</groupId>
|
||||||
<artifactId>maven-amp-plugin</artifactId>
|
<artifactId>maven-amp-plugin</artifactId>
|
||||||
@@ -12,18 +13,22 @@
|
|||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<description>
|
<description>
|
||||||
This plugin defines a lifecycle for Alfresco ECM Modules packaging (.amp), handles AMP transitive dependencies from AMP and WAR projects,
|
This plugin defines a lifecycle for Alfresco ECM Modules packaging (.amp), handles AMP transitive dependencies
|
||||||
providing a more enterprise oriented support alternative to the Alfresco MMT (module management tool) usage. It is used by
|
from AMP and WAR projects,
|
||||||
maven-alfresco-amp-archetype in order to package and test run an AMP and by the maven-alfresco-extension-archetype to depend transitively upon
|
providing a more enterprise oriented support alternative to the Alfresco MMT (module management tool) usage. It
|
||||||
AMPs and WARs. It is a modification of the org.apache.maven.plugins:maven-war-plugin of which it uses the whole core infrastructure. See
|
is used by
|
||||||
|
maven-alfresco-amp-archetype in order to package and test run an AMP and by the
|
||||||
|
maven-alfresco-extension-archetype to depend transitively upon
|
||||||
|
AMPs and WARs. It is a modification of the org.apache.maven.plugins:maven-war-plugin of which it uses the whole
|
||||||
|
core infrastructure. See
|
||||||
${site.url} for more info
|
${site.url} for more info
|
||||||
</description>
|
</description>
|
||||||
<properties>
|
<properties>
|
||||||
<site_pom_description>${pom.description}</site_pom_description>
|
<site_pom_description>${project.description}</site_pom_description>
|
||||||
<site_pom_url>${pom.url}</site_pom_url>
|
<site_pom_url>${project.url}</site_pom_url>
|
||||||
<site_pom_groupId>${pom.groupId}</site_pom_groupId>
|
<site_pom_groupId>${project.groupId}</site_pom_groupId>
|
||||||
<site_pom_artifactId>${pom.artifactId}</site_pom_artifactId>
|
<site_pom_artifactId>${project.artifactId}</site_pom_artifactId>
|
||||||
<site_pom_version>${pom.version}</site_pom_version>
|
<site_pom_version>${project.version}</site_pom_version>
|
||||||
<site_tags_url>${svn.tags.url}</site_tags_url>
|
<site_tags_url>${svn.tags.url}</site_tags_url>
|
||||||
</properties>
|
</properties>
|
||||||
<developers>
|
<developers>
|
||||||
@@ -31,14 +36,14 @@
|
|||||||
<id>columbro</id>
|
<id>columbro</id>
|
||||||
<name>Gabriele Columbro</name>
|
<name>Gabriele Columbro</name>
|
||||||
<email>gabriele.columbro@alfresco.com</email>
|
<email>gabriele.columbro@alfresco.com</email>
|
||||||
<roles />
|
<roles/>
|
||||||
<organization>Alfresco</organization>
|
<organization>Alfresco</organization>
|
||||||
<organizationUrl>http://www.alfresco.com</organizationUrl>
|
<organizationUrl>http://www.alfresco.com</organizationUrl>
|
||||||
</developer>
|
</developer>
|
||||||
<developer>
|
<developer>
|
||||||
<id>rdanner</id>
|
<id>rdanner</id>
|
||||||
<name>Russ Danner</name>
|
<name>Russ Danner</name>
|
||||||
<roles />
|
<roles/>
|
||||||
<organization>Rivet Logic</organization>
|
<organization>Rivet Logic</organization>
|
||||||
</developer>
|
</developer>
|
||||||
</developers>
|
</developers>
|
||||||
@@ -47,38 +52,48 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-plugin-api</artifactId>
|
<artifactId>maven-plugin-api</artifactId>
|
||||||
<version>2.0.6</version>
|
<version>3.0.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.maven</groupId>
|
||||||
|
<artifactId>maven-compat</artifactId>
|
||||||
|
<version>3.0-alpha-4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-artifact</artifactId>
|
<artifactId>maven-artifact</artifactId>
|
||||||
<version>2.0.6</version>
|
<version>3.0.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.maven</groupId>
|
||||||
|
<artifactId>maven-project</artifactId>
|
||||||
|
<version>3.0-alpha-2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-archiver</artifactId>
|
<artifactId>maven-archiver</artifactId>
|
||||||
<version>2.2</version>
|
<version>2.4.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
<groupId>org.codehaus.plexus</groupId>
|
||||||
<artifactId>plexus-utils</artifactId>
|
<artifactId>plexus-interpolation</artifactId>
|
||||||
<version>1.4.7</version>
|
<version>1.13</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.thoughtworks.xstream</groupId>
|
<groupId>com.thoughtworks.xstream</groupId>
|
||||||
<artifactId>xstream</artifactId>
|
<artifactId>xstream</artifactId>
|
||||||
<version>1.2.2</version>
|
<version>1.3.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<version>3.8.1</version>
|
<version>4.8.2</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.shared</groupId>
|
<groupId>org.apache.maven.plugin-testing</groupId>
|
||||||
<artifactId>maven-plugin-testing-harness</artifactId>
|
<artifactId>maven-plugin-testing-harness</artifactId>
|
||||||
<version>1.1</version>
|
<version>2.0-alpha-1</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@@ -282,7 +282,7 @@ public abstract class AbstractAmpMojo extends AbstractMojo
|
|||||||
/**
|
/**
|
||||||
* The Jar archiver needed for archiving classes directory into jar file under WEB-INF/lib.
|
* The Jar archiver needed for archiving classes directory into jar file under WEB-INF/lib.
|
||||||
*
|
*
|
||||||
* @parameter expression="${component.org.codehaus.plexus.archiver.Archiver#jar}"
|
* @component role="${component.org.codehaus.plexus.archiver.Archiver#jar}"
|
||||||
* @required
|
* @required
|
||||||
*/
|
*/
|
||||||
private JarArchiver mJarArchiver;
|
private JarArchiver mJarArchiver;
|
||||||
@@ -374,7 +374,7 @@ public abstract class AbstractAmpMojo extends AbstractMojo
|
|||||||
/**
|
/**
|
||||||
* To look up Archiver/UnArchiver implementations
|
* To look up Archiver/UnArchiver implementations
|
||||||
*
|
*
|
||||||
* @parameter expression="${component.org.codehaus.plexus.archiver.manager.ArchiverManager}"
|
* @component role="${component.org.codehaus.plexus.archiver.manager.ArchiverManager}"
|
||||||
* @required
|
* @required
|
||||||
*/
|
*/
|
||||||
protected ArchiverManager mArchiverManager;
|
protected ArchiverManager mArchiverManager;
|
||||||
|
@@ -28,7 +28,6 @@ import org.apache.maven.plugin.MojoFailureException;
|
|||||||
import org.apache.maven.project.MavenProjectHelper;
|
import org.apache.maven.project.MavenProjectHelper;
|
||||||
import org.codehaus.plexus.archiver.ArchiverException;
|
import org.codehaus.plexus.archiver.ArchiverException;
|
||||||
import org.codehaus.plexus.archiver.jar.ManifestException;
|
import org.codehaus.plexus.archiver.jar.ManifestException;
|
||||||
import org.codehaus.plexus.archiver.zip.ZipArchiver;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -229,8 +228,8 @@ public class AmpMojo extends AbstractAmpMojo
|
|||||||
* composes the full file name for the AMP and gets a file handle for that file
|
* composes the full file name for the AMP and gets a file handle for that file
|
||||||
* TODO: what happens when nulls are passed in
|
* TODO: what happens when nulls are passed in
|
||||||
* TODO: what does a null response mean?
|
* TODO: what does a null response mean?
|
||||||
* @param pBaseDir Base directory for AMP
|
* @param pBasedir Base directory for AMP
|
||||||
* @param pFileName Final Name of AMP
|
* @param pFinalName Final Name of AMP
|
||||||
* @param pClassifier TODO: fill this in
|
* @param pClassifier TODO: fill this in
|
||||||
*/
|
*/
|
||||||
protected static File getAmpFile( File pBasedir, String pFinalName, String pClassifier )
|
protected static File getAmpFile( File pBasedir, String pFinalName, String pClassifier )
|
||||||
@@ -334,7 +333,7 @@ public class AmpMojo extends AbstractAmpMojo
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The AMP archiver.
|
* The AMP archiver.
|
||||||
* @parameter expression="${component.org.codehaus.plexus.archiver.Archiver#amp}"
|
* @component role="${component.org.codehaus.plexus.archiver.Archiver}" roleHint="amp"
|
||||||
* @required
|
* @required
|
||||||
*/
|
*/
|
||||||
private AmpArchiver mAmpArchiver;
|
private AmpArchiver mAmpArchiver;
|
||||||
|
@@ -263,11 +263,6 @@ public abstract class AbstractAmpPackagingTask
|
|||||||
unArchiver.setOverwrite( true );
|
unArchiver.setOverwrite( true );
|
||||||
unArchiver.extract();
|
unArchiver.extract();
|
||||||
}
|
}
|
||||||
catch ( IOException e )
|
|
||||||
{
|
|
||||||
throw new MojoExecutionException( "Error unpacking file[" + file.getAbsolutePath() + "]" + "to[" +
|
|
||||||
unpackDirectory.getAbsolutePath() + "]", e );
|
|
||||||
}
|
|
||||||
catch ( ArchiverException e )
|
catch ( ArchiverException e )
|
||||||
{
|
{
|
||||||
throw new MojoExecutionException( "Error unpacking file[" + file.getAbsolutePath() + "]" + "to[" +
|
throw new MojoExecutionException( "Error unpacking file[" + file.getAbsolutePath() + "]" + "to[" +
|
||||||
|
@@ -20,10 +20,12 @@ package org.alfresco.maven.plugin.amp.util;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.maven.artifact.Artifact;
|
import org.apache.maven.artifact.Artifact;
|
||||||
import org.codehaus.plexus.util.interpolation.ObjectBasedValueSource;
|
import org.codehaus.plexus.interpolation.InterpolationException;
|
||||||
import org.codehaus.plexus.util.interpolation.RegexBasedInterpolator;
|
import org.codehaus.plexus.interpolation.RegexBasedInterpolator;
|
||||||
import org.codehaus.plexus.util.interpolation.ValueSource;
|
import org.codehaus.plexus.interpolation.ObjectBasedValueSource;
|
||||||
|
import org.codehaus.plexus.interpolation.ValueSource;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -68,7 +70,11 @@ public class MappingUtils
|
|||||||
|
|
||||||
interpolator.addValueSource( new PropertiesInterpolationValueSource( classifierMask ) );
|
interpolator.addValueSource( new PropertiesInterpolationValueSource( classifierMask ) );
|
||||||
|
|
||||||
|
try {
|
||||||
value = interpolator.interpolate( value, "__artifact" );
|
value = interpolator.interpolate( value, "__artifact" );
|
||||||
|
} catch (InterpolationException e) {
|
||||||
|
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
||||||
|
}
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
@@ -90,6 +96,16 @@ public class MappingUtils
|
|||||||
return properties.getProperty( key );
|
return properties.getProperty( key );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List getFeedback() {
|
||||||
|
return null; //To change body of implemented methods use File | Settings | File Templates.
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void clearFeedback() {
|
||||||
|
//To change body of implemented methods use File | Settings | File Templates.
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -61,7 +61,7 @@ public class AmpUnArchiver extends AbstractZipUnArchiver {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void execute()
|
protected void execute()
|
||||||
throws ArchiverException, IOException
|
throws ArchiverException
|
||||||
{
|
{
|
||||||
|
|
||||||
getLogger().info( "Expanding: " + getSourceFile() + " into " + getDestDirectory() );
|
getLogger().info( "Expanding: " + getSourceFile() + " into " + getDestDirectory() );
|
||||||
|
@@ -16,23 +16,23 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-plugin-api</artifactId>
|
<artifactId>maven-plugin-api</artifactId>
|
||||||
<version>2.0</version>
|
<version>3.0.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<version>3.8.1</version>
|
<version>4.8.2</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-project</artifactId>
|
<artifactId>maven-project</artifactId>
|
||||||
<version>2.0.9</version>
|
<version>3.0-alpha-2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.shared</groupId>
|
<groupId>org.apache.maven.plugin-testing</groupId>
|
||||||
<artifactId>maven-plugin-testing-harness</artifactId>
|
<artifactId>maven-plugin-testing-harness</artifactId>
|
||||||
<version>1.0-beta-1</version>
|
<version>2.0-alpha-1</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
31
pom.xml
31
pom.xml
@@ -32,13 +32,14 @@ community contexts.
|
|||||||
These redundancies are due to filtering issues of Maven. See here
|
These redundancies are due to filtering issues of Maven. See here
|
||||||
http://maven.apache.org/plugins/maven-site-plugin/usage.html
|
http://maven.apache.org/plugins/maven-site-plugin/usage.html
|
||||||
-->
|
-->
|
||||||
<site_pom_description>${pom.description}</site_pom_description>
|
<site_pom_description>${project.description}</site_pom_description>
|
||||||
<site_pom_url>${project.url}</site_pom_url>
|
<site_pom_url>${project.url}</site_pom_url>
|
||||||
<site_pom_groupId>${project.groupId}</site_pom_groupId>
|
<site_pom_groupId>${project.groupId}</site_pom_groupId>
|
||||||
<site_pom_artifactId>${project.artifactId}</site_pom_artifactId>
|
<site_pom_artifactId>${project.artifactId}</site_pom_artifactId>
|
||||||
<site_pom_version>${project.version}</site_pom_version>
|
<site_pom_version>${project.version}</site_pom_version>
|
||||||
<site_tags_url>${svn.tags.url}</site_tags_url>
|
<site_tags_url>${svn.tags.url}</site_tags_url>
|
||||||
<site_site_url>${project.url}</site_site_url>
|
<site_site_url>${project.url}</site_site_url>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:svn:https://maven-alfresco-archetypes.googlecode.com/svn/trunk</connection>
|
<connection>scm:svn:https://maven-alfresco-archetypes.googlecode.com/svn/trunk</connection>
|
||||||
@@ -122,22 +123,20 @@ community contexts.
|
|||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>2.3.2</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.5</source>
|
<source>1.6</source>
|
||||||
<target>1.5</target>
|
<target>1.6</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-site-plugin</artifactId>
|
<artifactId>maven-site-plugin</artifactId>
|
||||||
<version>2.0.1</version>
|
<version>3.0</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-changes-plugin</artifactId>
|
<artifactId>maven-changes-plugin</artifactId>
|
||||||
<!-- Using patched version to overcome multimodule limitations during release
|
<version>2.6</version>
|
||||||
See: http://jira.codehaus.org/browse/MCHANGES-145
|
|
||||||
-->
|
|
||||||
<version>2.2-patched</version>
|
|
||||||
<!--
|
<!--
|
||||||
Automatically notifies the list when release is done. Please supply
|
Automatically notifies the list when release is done. Please supply
|
||||||
username and password in the command line
|
username and password in the command line
|
||||||
@@ -149,8 +148,6 @@ community contexts.
|
|||||||
<configuration>
|
<configuration>
|
||||||
<template>custom-announcement.vm</template>
|
<template>custom-announcement.vm</template>
|
||||||
<templateDirectory>announcements</templateDirectory>
|
<templateDirectory>announcements</templateDirectory>
|
||||||
<!-- To have the announcement sent only for the root module (otherwise it breaks, workaround for http://jira.codehaus.org/browse/MCHANGES-145) -->
|
|
||||||
<aggregate>true</aggregate>
|
|
||||||
<smtpHost>${smtp.server}</smtpHost>
|
<smtpHost>${smtp.server}</smtpHost>
|
||||||
<smtpPort implementation="java.lang.Integer">${smtp.port}</smtpPort>
|
<smtpPort implementation="java.lang.Integer">${smtp.port}</smtpPort>
|
||||||
<toAddresses>
|
<toAddresses>
|
||||||
@@ -181,7 +178,7 @@ community contexts.
|
|||||||
<extension>
|
<extension>
|
||||||
<groupId>org.apache.maven.wagon</groupId>
|
<groupId>org.apache.maven.wagon</groupId>
|
||||||
<artifactId>wagon-webdav-jackrabbit</artifactId>
|
<artifactId>wagon-webdav-jackrabbit</artifactId>
|
||||||
<version>1.0-beta-6</version>
|
<version>1.0</version>
|
||||||
</extension>
|
</extension>
|
||||||
</extensions>
|
</extensions>
|
||||||
</build>
|
</build>
|
||||||
@@ -189,13 +186,15 @@ community contexts.
|
|||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>2.3.2</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.5</source>
|
<source>1.6</source>
|
||||||
<target>1.5</target>
|
<target>1.6</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<version>2.9</version>
|
||||||
<reportSets>
|
<reportSets>
|
||||||
<reportSet>
|
<reportSet>
|
||||||
<reports>
|
<reports>
|
||||||
@@ -206,13 +205,11 @@ community contexts.
|
|||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
</plugin>
|
<version>2.8</version>
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>jxr-maven-plugin</artifactId>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-changes-plugin</artifactId>
|
<artifactId>maven-changes-plugin</artifactId>
|
||||||
|
<version>2.6</version>
|
||||||
<reportSets>
|
<reportSets>
|
||||||
<reportSet>
|
<reportSet>
|
||||||
<reports>
|
<reports>
|
||||||
|
Reference in New Issue
Block a user