This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pom. See http://git.nuiton.org/pom.git commit 6ec25d00facb19f4337a67cf443c84e9d2100140 Author: Tony CHEMIT <chemit@codelutin.com> Date: Wed Feb 24 16:43:29 2016 +0100 Mise à jour automatique de la propriété siteDeployClassifier si la version est une snapshot (See #3892) --- pom.xml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/pom.xml b/pom.xml index 85c05f8..6c41a5c 100644 --- a/pom.xml +++ b/pom.xml @@ -1924,6 +1924,59 @@ </build> </profile> + <!-- To update siteDeployClassifier for you lazy guys ! --> + <profile> + <id>update-siteDeployClassifier</id> + <activation> + <!-- Means any time --> + <file> + <exists>${basedir}/pom.xml</exists> + </file> + </activation> + + <build> + <defaultGoal>pre-site</defaultGoal> + <plugins> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>update siteDeployClassifier</id> + <phase>pre-site</phase> + <inherited>true</inherited> + <configuration> + <exportAntProperties>true</exportAntProperties> + <tasks> + <taskdef resource="net/sf/antcontrib/antcontrib.properties" + classpathref="maven.plugin.classpath"/> + <if> + <matches pattern=".+-SNAPSHOT" string="${project.version}"/> + <then> + <echo message="Use «develop» siteDeployClassifier"/> + <property name="siteDeployClassifier" value="develop"/> + </then> + </if> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>ant-contrib</groupId> + <artifactId>ant-contrib</artifactId> + <version>20020829</version> + </dependency> + </dependencies> + </plugin> + + </plugins> + </build> + + </profile> + <!-- Profile to build the pom project --> <profile> <id>internal</id> -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.