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:
skuro
2011-08-05 07:42:29 +00:00
parent ea49f96271
commit 9e30f49e8d
16 changed files with 176 additions and 154 deletions

View File

@@ -25,7 +25,7 @@
</parent>
<properties>
<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>
<amp-plugin.version>3.0.3-SNAPSHOT</amp-plugin.version>
<alfresco.module.id>${project.artifactId}</alfresco.module.id>
@@ -39,6 +39,11 @@
<scope>provided</scope>
<classifier>community</classifier>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.0.3.RELEASE</version>
</dependency>
</dependencies>
<build>
<plugins>

View File

@@ -1,85 +1,100 @@
<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>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>maven-amp-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Alfresco AMP Plugin</name>
<version>3.0.3-SNAPSHOT</version>
<parent>
<groupId>org.alfresco</groupId>
<artifactId>maven-alfresco-lifecycle</artifactId>
<version>1.1.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<description>
This plugin defines a lifecycle for Alfresco ECM Modules packaging (.amp), handles AMP transitive dependencies from AMP and WAR projects,
providing a more enterprise oriented support alternative to the Alfresco MMT (module management tool) usage. It 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
</description>
<properties>
<site_pom_description>${pom.description}</site_pom_description>
<site_pom_url>${pom.url}</site_pom_url>
<site_pom_groupId>${pom.groupId}</site_pom_groupId>
<site_pom_artifactId>${pom.artifactId}</site_pom_artifactId>
<site_pom_version>${pom.version}</site_pom_version>
<site_tags_url>${svn.tags.url}</site_tags_url>
</properties>
<developers>
<developer>
<id>columbro</id>
<name>Gabriele Columbro</name>
<email>gabriele.columbro@alfresco.com</email>
<roles />
<organization>Alfresco</organization>
<organizationUrl>http://www.alfresco.com</organizationUrl>
</developer>
<developer>
<id>rdanner</id>
<name>Russ Danner</name>
<roles />
<organization>Rivet Logic</organization>
</developer>
</developers>
<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>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>maven-amp-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Alfresco AMP Plugin</name>
<version>3.0.3-SNAPSHOT</version>
<parent>
<groupId>org.alfresco</groupId>
<artifactId>maven-alfresco-lifecycle</artifactId>
<version>1.1.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<description>
This plugin defines a lifecycle for Alfresco ECM Modules packaging (.amp), handles AMP transitive dependencies
from AMP and WAR projects,
providing a more enterprise oriented support alternative to the Alfresco MMT (module management tool) usage. It
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
</description>
<properties>
<site_pom_description>${project.description}</site_pom_description>
<site_pom_url>${project.url}</site_pom_url>
<site_pom_groupId>${project.groupId}</site_pom_groupId>
<site_pom_artifactId>${project.artifactId}</site_pom_artifactId>
<site_pom_version>${project.version}</site_pom_version>
<site_tags_url>${svn.tags.url}</site_tags_url>
</properties>
<developers>
<developer>
<id>columbro</id>
<name>Gabriele Columbro</name>
<email>gabriele.columbro@alfresco.com</email>
<roles/>
<organization>Alfresco</organization>
<organizationUrl>http://www.alfresco.com</organizationUrl>
</developer>
<developer>
<id>rdanner</id>
<name>Russ Danner</name>
<roles/>
<organization>Rivet Logic</organization>
</developer>
</developers>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0.6</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>2.0.6</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-archiver</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>1.4.7</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>1.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-compat</artifactId>
<version>3.0-alpha-4</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>3.0-alpha-2</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-archiver</artifactId>
<version>2.4.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-interpolation</artifactId>
<version>1.13</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-testing</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>2.0-alpha-1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@@ -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.
*
* @parameter expression="${component.org.codehaus.plexus.archiver.Archiver#jar}"
* @component role="${component.org.codehaus.plexus.archiver.Archiver#jar}"
* @required
*/
private JarArchiver mJarArchiver;
@@ -374,7 +374,7 @@ public abstract class AbstractAmpMojo extends AbstractMojo
/**
* 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
*/
protected ArchiverManager mArchiverManager;

View File

@@ -28,7 +28,6 @@ import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProjectHelper;
import org.codehaus.plexus.archiver.ArchiverException;
import org.codehaus.plexus.archiver.jar.ManifestException;
import org.codehaus.plexus.archiver.zip.ZipArchiver;
import java.io.File;
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
* TODO: what happens when nulls are passed in
* TODO: what does a null response mean?
* @param pBaseDir Base directory for AMP
* @param pFileName Final Name of AMP
* @param pBasedir Base directory for AMP
* @param pFinalName Final Name of AMP
* @param pClassifier TODO: fill this in
*/
protected static File getAmpFile( File pBasedir, String pFinalName, String pClassifier )
@@ -263,8 +262,8 @@ public class AmpMojo extends AbstractAmpMojo
protected void performPackaging(File pAmpFile)
throws IOException,
ArchiverException,
ManifestException,
DependencyResolutionRequiredException,
ManifestException,
DependencyResolutionRequiredException,
MojoExecutionException, MojoFailureException
{
getLog().info( "Packaging Alfresco AMP (" + this.getAmpName() + ")" );
@@ -334,7 +333,7 @@ public class AmpMojo extends AbstractAmpMojo
/**
* The AMP archiver.
* @parameter expression="${component.org.codehaus.plexus.archiver.Archiver#amp}"
* @component role="${component.org.codehaus.plexus.archiver.Archiver}" roleHint="amp"
* @required
*/
private AmpArchiver mAmpArchiver;

View File

@@ -263,11 +263,6 @@ public abstract class AbstractAmpPackagingTask
unArchiver.setOverwrite( true );
unArchiver.extract();
}
catch ( IOException e )
{
throw new MojoExecutionException( "Error unpacking file[" + file.getAbsolutePath() + "]" + "to[" +
unpackDirectory.getAbsolutePath() + "]", e );
}
catch ( ArchiverException e )
{
throw new MojoExecutionException( "Error unpacking file[" + file.getAbsolutePath() + "]" + "to[" +

View File

@@ -20,10 +20,12 @@ package org.alfresco.maven.plugin.amp.util;
*/
import org.apache.maven.artifact.Artifact;
import org.codehaus.plexus.util.interpolation.ObjectBasedValueSource;
import org.codehaus.plexus.util.interpolation.RegexBasedInterpolator;
import org.codehaus.plexus.util.interpolation.ValueSource;
import org.codehaus.plexus.interpolation.InterpolationException;
import org.codehaus.plexus.interpolation.RegexBasedInterpolator;
import org.codehaus.plexus.interpolation.ObjectBasedValueSource;
import org.codehaus.plexus.interpolation.ValueSource;
import java.util.List;
import java.util.Properties;
/**
@@ -68,7 +70,11 @@ public class MappingUtils
interpolator.addValueSource( new PropertiesInterpolationValueSource( classifierMask ) );
value = interpolator.interpolate( value, "__artifact" );
try {
value = interpolator.interpolate( value, "__artifact" );
} catch (InterpolationException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
return value;
}
@@ -90,6 +96,16 @@ public class MappingUtils
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.
}
}
}

View File

@@ -61,7 +61,7 @@ public class AmpUnArchiver extends AbstractZipUnArchiver {
@Override
protected void execute()
throws ArchiverException, IOException
throws ArchiverException
{
getLogger().info( "Expanding: " + getSourceFile() + " into " + getDestDirectory() );

View File

@@ -16,23 +16,23 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>2.0.9</version>
<version>3.0-alpha-2</version>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<groupId>org.apache.maven.plugin-testing</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>1.0-beta-1</version>
<version>2.0-alpha-1</version>
<scope>test</scope>
</dependency>
</dependencies>