为什么 system.out.println 更改反映没有构建 jar?
Why system.out.println changes reflects without building jar?
我正在使用 maven 作为构建工具和 运行 一些集成测试用例。我使用 System.out.println()
在我的测试用例中记录了一些语句并做了 mvn verify
甚至我没有 clean install/package
jar.The 更改反映了日志语句。 mvn verify 是否隐式执行了 install/package
或者它不需要构建 jar。如果有人有任何想法,请分享。
查看 maven build lifecycle for order(以上均已使用)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.
maven 目标 verify
在包看到之后出现:Maven Build Lifecycle 所以打包发生。
我正在使用 maven 作为构建工具和 运行 一些集成测试用例。我使用 System.out.println()
在我的测试用例中记录了一些语句并做了 mvn verify
甚至我没有 clean install/package
jar.The 更改反映了日志语句。 mvn verify 是否隐式执行了 install/package
或者它不需要构建 jar。如果有人有任何想法,请分享。
查看 maven build lifecycle for order(以上均已使用)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.
maven 目标 verify
在包看到之后出现:Maven Build Lifecycle 所以打包发生。