blob: a97ac983c76855dcea48ab6d9d0015e4792e902f [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 Beust200bd272010-07-24 17:38:44 -070013echo "To deploy to the release directory: mvn release:clean release:prepare release:perform"
14echo "Nexus UI: https://oss.sonatype.org/index.html"
Cedric Beust0bfdb752010-07-28 19:50:54 -070015echo "Wiki: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide"
Cedric Beust5de17602010-07-17 13:37:36 -070016
Cedric Beust2d280f02010-07-21 10:44:23 -070017# deploy without tagging: mvn deploy -DperformRelease
Cedric Beust5de17602010-07-17 13:37:36 -070018
Cedric Beustd68d14c2010-07-16 14:22:05 -070019