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 | |
| 8 | mvn resources:resources compiler:compile resources:testResources compiler:testCompile jar:jar install:install |
| 9 | mvn -f pom-test.xml test |
| 10 | |