Commit 6971c296 authored by mindthegab's avatar mindthegab
Browse files

-- fixed changes and announcement email

-- minor fixes on repo
-- preparing 1.0.0 release
-- completed testing of repo against 3.2r

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@241 04253f4f-3451-0410-a141-5562f1e59037
parent 1d947a20
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -4,6 +4,14 @@
    <author email="g.columbro@sourcesense.com">Gabriele Columbro</author>
  </properties>
  <body>
  <release version="1.9.0" date="2009-11-07" description="Public release alfresco 3.2r based">
  	  <action dev="g.columbro" type="add">
		Updated to Alfresco 3.2r artifacts
      </action>
      <action dev="g.columbro" type="add">
		Updated to new Sourcesense repository
      </action>
    </release>
    <release version="1.0.0" date="2008-07-06" description="Public release">
      <action dev="g.columbro" type="add">
		Added full AMP lifecycle management
+8 −0
Original line number Diff line number Diff line
@@ -4,6 +4,14 @@
    <author email="g.columbro@sourcesense.com">Gabriele Columbro</author>
  </properties>
  <body>
  <release version="1.9.0" date="2009-11-07" description="Public release alfresco 3.2r based">
  	  <action dev="g.columbro" type="add">
		Updated to Alfresco 3.2r artifacts
      </action>
      <action dev="g.columbro" type="add">
		Updated to new Sourcesense repository
      </action>
    </release>
    <release version="1.1.0" date="2008-07-11" description="Public release">
      <action dev="g.columbro" type="add">
		Added full AMP lifecycle management.
+0 −104
Original line number Diff line number Diff line
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"));
	}

}
+17 −19
Original line number Diff line number Diff line
@@ -8,8 +8,9 @@
	<name>Maven Alfresco Lifecycle support base project</name>
	<url>http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/maven-alfresco-lifecycle</url>
	<description>
		This project is meant to gather all commons configurations, plugins and archetypes
		for the full Maven Alfresco lifecycle support
This project is meant to gather all commons configurations, plugins and archetypes for the full Maven Alfresco lifecycle support.
It gathers the latest stable versions of the different components that are used to support Alfresco development on Maven in enterprise and 
community contexts. 
	</description>
	<issueManagement>
		<system>Google Code</system>
@@ -122,20 +123,10 @@
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-changes-plugin</artifactId>
				<executions>
					<execution>
						<goals>
							<goal>announcement-generate</goal>
						</goals>
						<id>announcement-generate</id>
					</execution>
					<execution>
						<goals>
							<goal>announcement-mail</goal>
						</goals>
						<id>announcement-mail</id>
					</execution>
				</executions>
				<!-- Using patched version to overcome multimodule limitations during release
					 See: http://jira.codehaus.org/browse/MCHANGES-145 
				 -->
				<version>2.2-patched</version>
				<!--
					Automatically notifies the list when release is done. Please supply
					username and password in the command line
@@ -145,14 +136,22 @@
					settings.xml
				-->
				<configuration>
					<template>custom-announcement.vm</template>
          			<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>
					<smtpPort implementation="java.lang.Integer">${smtp.port}</smtpPort>
					<toAddresses>
						<toAddress implementation="java.lang.String">columbro@gmail.com</toAddress>
						<toAddress implementation="java.lang.String">maven-alfresco@googlegroups.com</toAddress>
						<toAddress implementation="java.lang.String">announce@maven.apache.org</toAddress>
						<toAddress implementation="java.lang.String">alfresco-dev@lists.sourcesense.com</toAddress>
					</toAddresses>
					<username>${smtp.username}</username>
					<password>${smtp.password}</password>
					<sslMode>${smtp.sslMode}</sslMode>
					<fromDeveloperId>columbro</fromDeveloperId>
					<urlDownload>${project.url}/index.html</urlDownload>
				</configuration>
			</plugin>
			<plugin>
@@ -161,8 +160,7 @@
				<configuration>
					<!-- useEditMode>true</useEditMode>-->
					<preparationGoals>clean package</preparationGoals>
					<goals>deploy site-deploy changes:announcement-generate
						changes:announcement-mail site-deploy</goals>
					<goals>deploy changes:announcement-generate site-deploy changes:announcement-mail</goals>
					<tagBase>${svn.tags.url}</tagBase>
					<autoVersionSubmodules>false</autoVersionSubmodules>
				</configuration>
+5 −2
Original line number Diff line number Diff line
<document>
  <properties>
    <title>Maven Alfresco Extension archetype</title>
    <author email="g.columbro@sourcesense.com">Gabriele Columbro</author>
    <title>Maven Alfresco Lifecycle</title>
    <author email="gabriele.columbro@alfresco.com">Gabriele Columbro</author>
  </properties>
  <body>
    <release version="1.0.0" date="2009-11-03" description="Complete refactoring of the full support in one multimodule project (maven-alfresco-lifecycle)">
      <action dev="columbro" type="add">
		Linked all sub modules.
      </action>
      <action dev="columbro" type="add">
		Added this wrapper project to group all Maven Alfresco plugins and archetype useful for the Maven Alfresco Lifecycle support
      </action>
Loading