1# 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 8 9mvn clean install -Dgpg.skip=true 10#or if you want to sign the jar, uncomment this: 11#mvn clean install 12 13mvn -f pom-test.xml test 14 15 16echo 17echo "To run the tests: mvn -f pom-test.xml test" 18echo "To deploy to the snapshot repository: mvn deploy" 19echo "To deploy to the release directory: mvn release:clean release:prepare release:perform" 20echo "Nexus UI: https://oss.sonatype.org/index.html" 21echo "Wiki: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide" 22 23# deploy without tagging: mvn deploy -DperformRelease 24 25 26