blob: c08b9bdfbeec12cdf800a94fac61f30cf565cdf0 [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 Beust5de17602010-07-17 13:37:36 -070013
14
Cedric Beustd68d14c2010-07-16 14:22:05 -070015