mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-10-01 14:41:57 +00:00
[maven-release-plugin] copy for tag maven-alfresco-lifecycle-1.0.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/tags/maven-alfresco-lifecycle-1.0.0@248 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
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>
|
||||
<url>${project.artifactId}</url>
|
||||
<properties>
|
||||
<site_pom_description>${pom.description}</site_pom_description>
|
||||
<site_pom_url>${pom.url}</site_pom_url>
|
||||
|
@@ -3,6 +3,9 @@
|
||||
<title>Maven AMP plugin</title>
|
||||
</properties>
|
||||
<body>
|
||||
<release version="3.0.1" date="2009-11-06" description="Alfresco 3.0.1 embedded in Maven Alfresco Lifecycle Release">
|
||||
</release>
|
||||
|
||||
<release version="3.0.0" date="2009-02-20" description="Alfresco 3.0 Reday Public stable release">
|
||||
</release>
|
||||
|
||||
|
@@ -36,20 +36,19 @@ References
|
||||
-------------------------------------------
|
||||
|
||||
|
||||
using repository (either in POM or settings.xml) :
|
||||
using this pluginRepository (either in POM or settings.xml) :
|
||||
|
||||
|
||||
------------------------------------------
|
||||
|
||||
<repository>
|
||||
<pluginRepository>
|
||||
<id>ss-public</id>
|
||||
<url>http://repository.sourcesense.com/maven2</url>
|
||||
</repository>
|
||||
<url>http://repository.sourcesense.com/nexus/content/groups/public</url>
|
||||
</pluginRepository>
|
||||
|
||||
-------------------------------------------
|
||||
|
||||
|
||||
Quick usage
|
||||
|
||||
Create a project using the maven-alfresco-amp-archetype (see {{ http://repository.sourcesense.com/maven2-sites/maven-alfresco-amp-archetype }} ).
|
||||
|
||||
Create a project using the maven-alfresco-amp-archetype (see {{ http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/maven-alfresco-lifecycle/maven-alfresco-archetypes/maven-alfresco-amp-archetype/index.html }} ).
|
@@ -25,11 +25,11 @@
|
||||
</menu>
|
||||
|
||||
<menu name="Used by">
|
||||
<item name="Maven Alfresco AMP Archetype" href="http://repository.sourcesense.com/maven2-sites/maven-alfresco-amp-archetype"/>
|
||||
<item name="Maven Alfresco AMP Archetype" href="http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/maven-alfresco-lifecycle/maven-alfresco-archetypes/maven-alfresco-amp-archetype/index.html"/>
|
||||
</menu>
|
||||
|
||||
<menu name="See also">
|
||||
<item name="Maven Alfresco Extension Archetype" href="http://repository.sourcesense.com/maven2-sites/maven-alfresco-extension-archetype"/>
|
||||
<item name="Maven Alfresco Extension Archetype" href="http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/maven-alfresco-lifecycle/maven-alfresco-archetypes/maven-alfresco-extension-archetype/index.html"/>
|
||||
</menu>
|
||||
|
||||
<menu ref="reports"/>
|
||||
|
@@ -6,7 +6,6 @@
|
||||
<version>0.0.5</version>
|
||||
<name>Custom version manipulator Maven Plugin</name>
|
||||
<description>It's non invasive and puts modified versions in configurable pom properties</description>
|
||||
<url>${project.artifactId}</url>
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>maven-alfresco-lifecycle</artifactId>
|
||||
|
@@ -1,104 +0,0 @@
|
||||
package com.sourcesense.maven.plugins.test;
|
||||
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import org.apache.maven.plugin.MojoExecutionException;
|
||||
import org.apache.maven.project.MavenProject;
|
||||
|
||||
import com.sourcesense.maven.StripMojo;
|
||||
|
||||
public class StripTest extends org.apache.maven.plugin.testing.AbstractMojoTestCase {
|
||||
|
||||
File testPom;
|
||||
MavenProject project = new MavenProject();
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
// required for mojo lookups to work
|
||||
super.setUp();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* tests the proper discovery and configuration of the mojo
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public void testMojoDefaultEnvironment() throws Exception {
|
||||
testPom = new File( getBasedir(), "target/test-classes/snapshot-pom.xml" );
|
||||
StripMojo mojo = (StripMojo) lookupMojo ("strip", testPom );
|
||||
assertNotNull( mojo );
|
||||
|
||||
}
|
||||
|
||||
public void testSnapshotVersion() throws Exception {
|
||||
testPom = new File( getBasedir(), "target/test-classes/snapshot-pom.xml" );
|
||||
StripMojo mojo = (StripMojo) lookupMojo ("strip", testPom );
|
||||
setVariableValueToObject(mojo, "version", "3.0.0-SNAPSHOT");
|
||||
setVariableValueToObject(mojo, "project", project);
|
||||
try {
|
||||
mojo.execute();
|
||||
} catch (MojoExecutionException e) {
|
||||
fail("Mojo execution exception" + e);
|
||||
}
|
||||
assertEquals("3.0.0", mojo.getProject().getProperties().getProperty(
|
||||
mojo.getPropertyName()));
|
||||
}
|
||||
|
||||
public void testReleaseCandidateVersion() throws Exception {
|
||||
testPom = new File( getBasedir(), "target/test-classes/relcandidate-pom.xml" );
|
||||
StripMojo mojo = (StripMojo) lookupMojo ("strip", testPom );
|
||||
setVariableValueToObject(mojo, "version", "3.0.0-RC1");
|
||||
setVariableValueToObject(mojo, "project", project);
|
||||
try {
|
||||
mojo.execute();
|
||||
} catch (MojoExecutionException e) {
|
||||
fail("Mojo execution exception" + e);
|
||||
}
|
||||
assertEquals("3.0.0", mojo.getProject().getProperties().getProperty(
|
||||
mojo.getPropertyName()));
|
||||
}
|
||||
|
||||
public void testIdempotent() throws Exception {
|
||||
testPom = new File( getBasedir(), "target/test-classes/snapshot-pom.xml" );
|
||||
StripMojo mojo = (StripMojo) lookupMojo ("strip", testPom );
|
||||
setVariableValueToObject(mojo, "version", "3.0.0");
|
||||
setVariableValueToObject(mojo, "project", project);
|
||||
try {
|
||||
mojo.execute();
|
||||
} catch (MojoExecutionException e) {
|
||||
fail("Mojo execution exception" + e);
|
||||
}
|
||||
assertEquals("3.0.0", mojo.getProject().getProperties().getProperty(
|
||||
mojo.getPropertyName()));
|
||||
}
|
||||
|
||||
public void testUnderscore() throws Exception {
|
||||
testPom = new File( getBasedir(), "target/test-classes/underscore-pom.xml" );
|
||||
StripMojo mojo = (StripMojo) lookupMojo ("strip", testPom );
|
||||
setVariableValueToObject(mojo, "version", "3.0.0_RC1");
|
||||
setVariableValueToObject(mojo, "project", project);
|
||||
try {
|
||||
mojo.execute();
|
||||
} catch (MojoExecutionException e) {
|
||||
fail("Mojo execution exception" + e);
|
||||
}
|
||||
assertEquals("3.0.0", mojo.getProject().getProperties().getProperty(
|
||||
mojo.getPropertyName()));
|
||||
}
|
||||
|
||||
public void testCustomPropName() throws Exception {
|
||||
testPom = new File( getBasedir(), "target/test-classes/customprop-pom.xml" );
|
||||
StripMojo mojo = (StripMojo) lookupMojo ("strip", testPom );
|
||||
setVariableValueToObject(mojo, "version", "3.0.0-RC1");
|
||||
setVariableValueToObject(mojo, "project", project);
|
||||
try {
|
||||
mojo.execute();
|
||||
} catch (MojoExecutionException e) {
|
||||
fail("Mojo execution exception" + e);
|
||||
}
|
||||
assertEquals("3.0.0", mojo.getProject().getProperties().getProperty(
|
||||
"foobar"));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user