blob: a6c135a4173c89d1e4be919c1386bc7531951b02 [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 Beust3f7e5e02010-09-07 23:11:19 -07008
9mvn clean install -Dgpg.skip=true
10#or if you want to sign the jar, uncomment this:
11#mvn clean install
Cedric Beust5de17602010-07-17 13:37:36 -070012
Cedric Beuste4f7f6f2010-08-14 06:58:15 -070013mvn -f pom-test.xml test
14
15
Cedric Beust5de17602010-07-17 13:37:36 -070016echo
17echo "To run the tests: mvn -f pom-test.xml test"
Cedric Beust41167f02010-07-18 20:36:32 -070018echo "To deploy to the snapshot repository: mvn deploy"
Cedric Beust200bd272010-07-24 17:38:44 -070019echo "To deploy to the release directory: mvn release:clean release:prepare release:perform"
20echo "Nexus UI: https://oss.sonatype.org/index.html"
Cedric Beust0bfdb752010-07-28 19:50:54 -070021echo "Wiki: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide"
Cedric Beust5de17602010-07-17 13:37:36 -070022
Cedric Beust2d280f02010-07-21 10:44:23 -070023# deploy without tagging: mvn deploy -DperformRelease
Cedric Beust5de17602010-07-17 13:37:36 -070024
Cedric Beustd68d14c2010-07-16 14:22:05 -070025