Maven如何指定工程进行单元测试构建
引言:
去查找这个问题,是因为在使用hudson的持续集成环境时,执行下面的命令:
mvn clean compile test sonar:sonar
1) com.alibaba.china.app:avatar.bundle.war:war:1.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.alibaba.china.app -DartifactId=avatar.bundle.war -Dversion=1.0-SNAPSHOT -Dpackaging=war -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.alibaba.china.app -DartifactId=avatar.bundle.war -Dversion=1.0-SNAPSHOT -Dpackaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.alibaba.china.app:avatar.deploy:jar:1.0-SNAPSHOT 2) com.alibaba.china.app:avatar.bundle.war:war:1.0-SNAPSHOT----------1 required artifact is missing.
-pl,--projects Build specified reactor projects instead of all projects
? mvn test -pl biz/cases
? mvn test -pl biz/cases biz/common
mvn test -pl biz/cases,biz/common
