mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-05-26 17:25:11 +00:00
-- 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
This commit is contained in:
parent
1d947a2064
commit
6971c2968f
@ -4,6 +4,14 @@
|
|||||||
<author email="g.columbro@sourcesense.com">Gabriele Columbro</author>
|
<author email="g.columbro@sourcesense.com">Gabriele Columbro</author>
|
||||||
</properties>
|
</properties>
|
||||||
<body>
|
<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">
|
<release version="1.0.0" date="2008-07-06" description="Public release">
|
||||||
<action dev="g.columbro" type="add">
|
<action dev="g.columbro" type="add">
|
||||||
Added full AMP lifecycle management
|
Added full AMP lifecycle management
|
||||||
|
@ -4,6 +4,14 @@
|
|||||||
<author email="g.columbro@sourcesense.com">Gabriele Columbro</author>
|
<author email="g.columbro@sourcesense.com">Gabriele Columbro</author>
|
||||||
</properties>
|
</properties>
|
||||||
<body>
|
<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">
|
<release version="1.1.0" date="2008-07-11" description="Public release">
|
||||||
<action dev="g.columbro" type="add">
|
<action dev="g.columbro" type="add">
|
||||||
Added full AMP lifecycle management.
|
Added full AMP lifecycle management.
|
||||||
|
@ -199,7 +199,7 @@
|
|||||||
<!-- Used to access Sourcesense repository for writing. Public version not available, see README.txt -->
|
<!-- Used to access Sourcesense repository for writing. Public version not available, see README.txt -->
|
||||||
<!-- In certain cases we do build time filtering with the single sourcing application.properties -->
|
<!-- In certain cases we do build time filtering with the single sourcing application.properties -->
|
||||||
<filters>
|
<filters>
|
||||||
<filter>src/main/properties/${env}/ application.properties</filter>
|
<filter>src/main/properties/${env}/application.properties</filter>
|
||||||
</filters>
|
</filters>
|
||||||
<!-- Default profile to build as an Alfresco extension - resources are copied into classpath-->
|
<!-- Default profile to build as an Alfresco extension - resources are copied into classpath-->
|
||||||
<resources>
|
<resources>
|
||||||
|
@ -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"));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
36
pom.xml
36
pom.xml
@ -8,8 +8,9 @@
|
|||||||
<name>Maven Alfresco Lifecycle support base project</name>
|
<name>Maven Alfresco Lifecycle support base project</name>
|
||||||
<url>http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/maven-alfresco-lifecycle</url>
|
<url>http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/maven-alfresco-lifecycle</url>
|
||||||
<description>
|
<description>
|
||||||
This project is meant to gather all commons configurations, plugins and archetypes
|
This project is meant to gather all commons configurations, plugins and archetypes for the full Maven Alfresco lifecycle support.
|
||||||
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>
|
</description>
|
||||||
<issueManagement>
|
<issueManagement>
|
||||||
<system>Google Code</system>
|
<system>Google Code</system>
|
||||||
@ -122,20 +123,10 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-changes-plugin</artifactId>
|
<artifactId>maven-changes-plugin</artifactId>
|
||||||
<executions>
|
<!-- Using patched version to overcome multimodule limitations during release
|
||||||
<execution>
|
See: http://jira.codehaus.org/browse/MCHANGES-145
|
||||||
<goals>
|
-->
|
||||||
<goal>announcement-generate</goal>
|
<version>2.2-patched</version>
|
||||||
</goals>
|
|
||||||
<id>announcement-generate</id>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>announcement-mail</goal>
|
|
||||||
</goals>
|
|
||||||
<id>announcement-mail</id>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<!--
|
<!--
|
||||||
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
|
||||||
@ -145,14 +136,22 @@
|
|||||||
settings.xml
|
settings.xml
|
||||||
-->
|
-->
|
||||||
<configuration>
|
<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>
|
<smtpHost>${smtp.server}</smtpHost>
|
||||||
<smtpPort implementation="java.lang.Integer">${smtp.port}</smtpPort>
|
<smtpPort implementation="java.lang.Integer">${smtp.port}</smtpPort>
|
||||||
<toAddresses>
|
<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>
|
</toAddresses>
|
||||||
<username>${smtp.username}</username>
|
<username>${smtp.username}</username>
|
||||||
<password>${smtp.password}</password>
|
<password>${smtp.password}</password>
|
||||||
|
<sslMode>${smtp.sslMode}</sslMode>
|
||||||
<fromDeveloperId>columbro</fromDeveloperId>
|
<fromDeveloperId>columbro</fromDeveloperId>
|
||||||
|
<urlDownload>${project.url}/index.html</urlDownload>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -161,8 +160,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<!-- useEditMode>true</useEditMode>-->
|
<!-- useEditMode>true</useEditMode>-->
|
||||||
<preparationGoals>clean package</preparationGoals>
|
<preparationGoals>clean package</preparationGoals>
|
||||||
<goals>deploy site-deploy changes:announcement-generate
|
<goals>deploy changes:announcement-generate site-deploy changes:announcement-mail</goals>
|
||||||
changes:announcement-mail site-deploy</goals>
|
|
||||||
<tagBase>${svn.tags.url}</tagBase>
|
<tagBase>${svn.tags.url}</tagBase>
|
||||||
<autoVersionSubmodules>false</autoVersionSubmodules>
|
<autoVersionSubmodules>false</autoVersionSubmodules>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
<document>
|
<document>
|
||||||
<properties>
|
<properties>
|
||||||
<title>Maven Alfresco Extension archetype</title>
|
<title>Maven Alfresco Lifecycle</title>
|
||||||
<author email="g.columbro@sourcesense.com">Gabriele Columbro</author>
|
<author email="gabriele.columbro@alfresco.com">Gabriele Columbro</author>
|
||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="1.0.0" date="2009-11-03" description="Complete refactoring of the full support in one multimodule project (maven-alfresco-lifecycle)">
|
<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">
|
<action dev="columbro" type="add">
|
||||||
Added this wrapper project to group all Maven Alfresco plugins and archetype useful for the Maven Alfresco Lifecycle support
|
Added this wrapper project to group all Maven Alfresco plugins and archetype useful for the Maven Alfresco Lifecycle support
|
||||||
</action>
|
</action>
|
||||||
|
131
src/main/resources/announcements/custom-announcement.vm
Normal file
131
src/main/resources/announcements/custom-announcement.vm
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
## Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
## or more contributor license agreements. See the NOTICE file
|
||||||
|
## distributed with this work for additional information
|
||||||
|
## regarding copyright ownership. The ASF licenses this file
|
||||||
|
## to you under the Apache License, Version 2.0 (the
|
||||||
|
## "License"); you may not use this file except in compliance
|
||||||
|
## with the License. You may obtain a copy of the License at
|
||||||
|
##
|
||||||
|
## http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
##
|
||||||
|
## Unless required by applicable law or agreed to in writing,
|
||||||
|
## software distributed under the License is distributed on an
|
||||||
|
## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
## KIND, either express or implied. See the License for the
|
||||||
|
## specific language governing permissions and limitations
|
||||||
|
## under the License.
|
||||||
|
The ${developmentTeam} is pleased to announce the ${finalName} release!
|
||||||
|
|
||||||
|
${introduction}
|
||||||
|
|
||||||
|
See all the different components at the following links:
|
||||||
|
- maven-alfresco-archetypes: ${project.url}/maven-alfresco-archetypes/index.html
|
||||||
|
- maven-amp-plugin: ${project.url}/plugins/maven-amp-plugin/index.html
|
||||||
|
- maven-nosnpashot-plugin: ${project.url}/plugins/maven-nosnapshot-plugin/index.html
|
||||||
|
|
||||||
|
|
||||||
|
#if ($release.getActions().size() == 0)
|
||||||
|
No changes defined in this version.
|
||||||
|
#else
|
||||||
|
Changes in this version include:
|
||||||
|
|
||||||
|
#if ($release.getActions('add').size() !=0)
|
||||||
|
New features:
|
||||||
|
#foreach($actionItem in $release.getActions('add'))
|
||||||
|
#set($action=$actionItem.getAction())
|
||||||
|
#if ($actionItem.getIssue())
|
||||||
|
#set($issue=$actionItem.getIssue())
|
||||||
|
#else
|
||||||
|
#set($issue="")
|
||||||
|
#end
|
||||||
|
#if ($actionItem.getDueTo())
|
||||||
|
#set($dueto=$actionItem.getDueTo())
|
||||||
|
#else
|
||||||
|
#set($dueto="")
|
||||||
|
#end
|
||||||
|
o ${action} #if($!issue != "") Issue: $issue. #end#if($!dueto != "")Thanks to $dueto. #end
|
||||||
|
|
||||||
|
#set($issue="")
|
||||||
|
#set($dueto="")
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
|
||||||
|
#if ($release.getActions('fix').size() !=0)
|
||||||
|
Fixed Bugs:
|
||||||
|
#foreach($actionItem in $release.getActions('fix'))
|
||||||
|
#set($action=$actionItem.getAction())
|
||||||
|
#if ($actionItem.getIssue())
|
||||||
|
#set($issue=$actionItem.getIssue())
|
||||||
|
#else
|
||||||
|
#set($issue="")
|
||||||
|
#end
|
||||||
|
#if ($actionItem.getDueTo())
|
||||||
|
#set($dueto=$actionItem.getDueTo())
|
||||||
|
#else
|
||||||
|
#set($dueto="")
|
||||||
|
#end
|
||||||
|
o ${action} #if($!issue != "") Issue: $issue. #end#if($!dueto != "")Thanks to $dueto. #end
|
||||||
|
|
||||||
|
#set($issue="")
|
||||||
|
#set($dueto="")
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
|
||||||
|
#if ($release.getActions('update').size() !=0)
|
||||||
|
Changes:
|
||||||
|
#foreach($actionItem in $release.getActions('update'))
|
||||||
|
#set($action=$actionItem.getAction())
|
||||||
|
#if ($actionItem.getIssue())
|
||||||
|
#set($issue=$actionItem.getIssue())
|
||||||
|
#else
|
||||||
|
#set($issue="")
|
||||||
|
#end
|
||||||
|
#if ($actionItem.getDueTo())
|
||||||
|
#set($dueto=$actionItem.getDueTo())
|
||||||
|
#else
|
||||||
|
#set($dueto="")
|
||||||
|
#end
|
||||||
|
o ${action} #if($!issue != "") Issue: $issue. #end#if($!dueto != "")Thanks to $dueto. #end
|
||||||
|
|
||||||
|
#set($issue="")
|
||||||
|
#set($dueto="")
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
|
||||||
|
#if ($release.getActions('remove').size() !=0)
|
||||||
|
Removed:
|
||||||
|
#foreach($actionItem in $release.getActions('remove'))
|
||||||
|
#set($action=$actionItem.getAction())
|
||||||
|
#if ($actionItem.getIssue())
|
||||||
|
#set($issue=$actionItem.getIssue())
|
||||||
|
#else
|
||||||
|
#set($issue="")
|
||||||
|
#end
|
||||||
|
#if ($actionItem.getDueTo())
|
||||||
|
#set($dueto=$actionItem.getDueTo())
|
||||||
|
#else
|
||||||
|
#set($dueto="")
|
||||||
|
#end
|
||||||
|
o ${action} #if($!issue != "") Issue: $issue. #end#if($!dueto != "")Thanks to $dueto. #end
|
||||||
|
|
||||||
|
#set($issue="")
|
||||||
|
#set($dueto="")
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
## End of main loop
|
||||||
|
#end
|
||||||
|
See also specific modules changes for the latest release:
|
||||||
|
|
||||||
|
maven-alfresco-amp-archetype: ${project.url}/maven-alfresco-archetypes/maven-alfresco-amp-archetype/changes-report.html
|
||||||
|
maven-alfresco-extension-archetype: ${project.url}/maven-alfresco-archetypes/maven-alfresco-extension-archetype/changes-report.html
|
||||||
|
maven-amp-plugin: ${project.url}/plugins/maven-amp-plugin/changes-report.html
|
||||||
|
|
||||||
|
#if ($urlDownload)
|
||||||
|
|
||||||
|
For a manual installation, you can download the ${finalName} here:
|
||||||
|
${urlDownload}
|
||||||
|
#end
|
||||||
|
(due to some issues with the sites repo, if you experience issues in accessing pages with Firefox you might just need to reload the page)
|
||||||
|
|
||||||
|
Have fun!
|
||||||
|
-${developmentTeam}
|
Loading…
x
Reference in New Issue
Block a user