Author: tchemit Date: 2010-03-12 20:51:40 +0100 (Fri, 12 Mar 2010) New Revision: 833 Log: Evolution #301: G?\195?\169rer un mail d'annonce bas?\195?\169 sur le changelog.txt (labs) Modified: trunk/mavenpom4labs/pom.xml Modified: trunk/mavenpom4labs/pom.xml =================================================================== --- trunk/mavenpom4labs/pom.xml 2010-03-12 19:49:40 UTC (rev 832) +++ trunk/mavenpom4labs/pom.xml 2010-03-12 19:51:40 UTC (rev 833) @@ -243,6 +243,93 @@ </property> </activation> + <properties> + + <dryRun>true</dryRun> + + <release.version>${project.version}</release.version> + <emailContentFile>src/announcement/release-email-${release.version}.txt</emailContentFile> + </properties> + <build> + + <defaultGoal>validate</defaultGoal> + + <plugins> + + <!-- + - check mail content file exists + --> + <plugin> + <artifactId>maven-enforcer-plugin</artifactId> + <executions> + <execution> + <id>check-email-file</id> + <goals> + <goal>enforce</goal> + </goals> + <phase>validate</phase> + <inherited>false</inherited> + <configuration> + <rules> + <requireFilesExist> + <files> + <file>${emailContentFile}</file> + </files> + </requireFilesExist> + </rules> + <ignoreCache>true</ignoreCache> + <failFast>true</failFast> + <fail>true</fail> + </configuration> + </execution> + </executions> + </plugin> + + <!-- + - send release email + --> + <plugin> + <groupId>org.nuiton</groupId> + <artifactId>maven-helper-plugin</artifactId> + <executions> + <execution> + <id>send-release-email</id> + <goals> + <goal>send-email</goal> + </goals> + <phase>validate</phase> + <inherited>false</inherited> + <configuration> + + <!-- for a multi-module just run on root project --> + <runOnce>true</runOnce> + <dryRun>${dryRun}</dryRun> + <emailTitle>[ANN] - ${project.name} ${release.version} released</emailTitle> + <emailContentFile>${emailContentFile}</emailContentFile> + <!--<emailContentFile>src/main/announcement/release-email-${release.version}.txt</emailContentFile>--> + <mailSender> + <name>${platform} Release Notification</name> + <email>noreply@${platform}</email> + </mailSender> + <toAddresses> + <item>chemit@codelutin.com</item> + <!--<item>${listId}-users@list.${platform}</item>--> + <!--<item>${listId}-devel@list.${platform}</item>--> + <!--<item>announce-redmine.org@list.redmine.org</item>--> + <!--<item>announce-${platform}@list.${platform}</item>--> + </toAddresses> + <smtpHost>smtp</smtpHost> + <!-- fix bug #146 --> + <!--<encoding>iso-8859-1</encoding>--> + + </configuration> + </execution> + </executions> + </plugin> + + </plugins> + + </build> </profile> <!-- perform a labs release after a successfull release -->
participants (1)
-
tchemit@users.nuiton.org