blob: 3c6d5ecf3288f08da7b7bcb60522ffe948f1feed [file] [log] [blame]
Cedric Beustd68d14c2010-07-16 14:22:05 -07001# Two different POMs are needed to build TestNG with Maven because it's not
2# allowed to have circular dependencies.
3# - pom.xml defines the project version "n-SNAPSHOT", builds, jars and deploys (but doesn't
4# run the tests).
5# - pom-test.xml declares a test dependency on "n-SNAPSHOT", which it will find
6# in the local repository (~/.m2/repository). All it does then is run the tests.
7
Cedric Beust41167f02010-07-18 20:36:32 -07008mvn resources:resources compiler:compile resources:testResources compiler:testCompile jar:jar source:jar javadoc:jar install:install gpg:sign
Cedric Beust5de17602010-07-17 13:37:36 -07009
10echo
11echo "To run the tests: mvn -f pom-test.xml test"
Cedric Beust41167f02010-07-18 20:36:32 -070012echo "To deploy to the snapshot repository: mvn deploy"
Cedric Beust2d280f02010-07-21 10:44:23 -070013echo "To deploy to the release directory: mvn release:clean release:prepar"
Cedric Beust5de17602010-07-17 13:37:36 -070014
Cedric Beust2d280f02010-07-21 10:44:23 -070015# deploy without tagging: mvn deploy -DperformRelease
Cedric Beust5de17602010-07-17 13:37:36 -070016
Cedric Beustd68d14c2010-07-16 14:22:05 -070017