Cedric Beust | d68d14c | 2010-07-16 14:22:05 -0700 | [diff] [blame] | 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 | |
Cedric Beust | 3f7e5e0 | 2010-09-07 23:11:19 -0700 | [diff] [blame] | 8 | |
| 9 | mvn clean install -Dgpg.skip=true |
| 10 | #or if you want to sign the jar, uncomment this: |
| 11 | #mvn clean install |
Cedric Beust | 5de1760 | 2010-07-17 13:37:36 -0700 | [diff] [blame] | 12 | |
Cedric Beust | e4f7f6f | 2010-08-14 06:58:15 -0700 | [diff] [blame] | 13 | mvn -f pom-test.xml test |
| 14 | |
| 15 | |
Cedric Beust | 5de1760 | 2010-07-17 13:37:36 -0700 | [diff] [blame] | 16 | echo |
| 17 | echo "To run the tests: mvn -f pom-test.xml test" |
Cedric Beust | 41167f0 | 2010-07-18 20:36:32 -0700 | [diff] [blame] | 18 | echo "To deploy to the snapshot repository: mvn deploy" |
Cedric Beust | 200bd27 | 2010-07-24 17:38:44 -0700 | [diff] [blame] | 19 | echo "To deploy to the release directory: mvn release:clean release:prepare release:perform" |
| 20 | echo "Nexus UI: https://oss.sonatype.org/index.html" |
Cedric Beust | 0bfdb75 | 2010-07-28 19:50:54 -0700 | [diff] [blame] | 21 | echo "Wiki: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide" |
Cedric Beust | 5de1760 | 2010-07-17 13:37:36 -0700 | [diff] [blame] | 22 | |
Cedric Beust | 2d280f0 | 2010-07-21 10:44:23 -0700 | [diff] [blame] | 23 | # deploy without tagging: mvn deploy -DperformRelease |
Cedric Beust | 5de1760 | 2010-07-17 13:37:36 -0700 | [diff] [blame] | 24 | |
Cedric Beust | d68d14c | 2010-07-16 14:22:05 -0700 | [diff] [blame] | 25 | |