我使用 maven 作为构建工具并运行一些集成测试用例。我在我的测试用例中使用System.out.println()
并做了一些语句,mvn verify
甚至我没有clean install/package
使用 jar。这些更改反映了日志语句。mvn verify 是否隐式执行 ainstall/package
或不需要构建 jar。如果有人有任何想法,请分享。
问问题
134 次
2 回答
1
maven 目标verify
出现在 package 之后,请参见:Maven Build Lifecycle,以便进行打包。
于 2015-06-26T14:45:29.383 回答
0
订单见 mvn build 生命周期(以上都使用)https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html:
validate - validate the project is correct and all necessary information is available
compile - compile the source code of the project
test - test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed
package - take the compiled code and package it in its distributable format, such as a JAR.
integration-test - process and deploy the package if necessary into an environment where integration tests can be run
verify - run any checks to verify the package is valid and meets quality criteria
install - install the package into the local repository, for use as a dependency in other projects locally
deploy - done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.
于 2015-06-26T14:44:03.350 回答