Author: tchemit Date: 2010-11-27 16:56:15 +0100 (Sat, 27 Nov 2010) New Revision: 533 Url: http://nuiton.org/repositories/revision/wikitty/533 Log: While expose classifier tests, must also expose his javadoc and sources in release-profile Modified: trunk/wikitty-api/pom.xml Modified: trunk/wikitty-api/pom.xml =================================================================== --- trunk/wikitty-api/pom.xml 2010-11-27 15:05:13 UTC (rev 532) +++ trunk/wikitty-api/pom.xml 2010-11-27 15:56:15 UTC (rev 533) @@ -159,7 +159,7 @@ <phase>generate-sources</phase> <configuration> <inputs> - <input>zargo:src/main/xmi/:*.zargo</input> + <input>zargo</input> </inputs> <fullPackagePath>org.nuiton.wikitty.entities</fullPackagePath> <defaultPackage>org.nuiton.wikitty.entities</defaultPackage> @@ -173,7 +173,7 @@ </executions> </plugin> - <!-- Create a jar that includes all tests --> + <!-- Creates and deploy also tests classifier --> <!-- Needed for wikitty-solr-impl tests --> <plugin> <artifactId>maven-jar-plugin</artifactId> @@ -190,4 +190,50 @@ </build> + <profiles> + <!-- perform only on a release stage when using the maven-release-plugin --> + <profile> + <id>release-profile</id> + <activation> + <property> + <name>performRelease</name> + <value>true</value> + </property> + </activation> + + <build> + <plugins> + + <!-- always compute tests source jar --> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-test-sources</id> + <goals> + <goal>test-jar</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- always compute tests source jar --> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <id>attach-test-javadoc</id> + <goals> + <goal>test-jar</goal> + </goals> + </execution> + </executions> + </plugin> + + </plugins> + </build> + </profile> + + </profiles> + </project>
participants (1)
-
tchemit@users.nuiton.org