我正在使用maven作为构建工具并运行一些集成测试用例。我使用System.out.println()
在我的测试用例中记录了一些语句,并做了mvn verify
甚至我没有clean install/package
这个jar。这些变化反映了日志记录。 mvn是否确实隐含地执行了install/package
或者它不需要构建jar。如果任何人有任何想法,请分享。为什么system.out.println更改反映没有构建jar?
-1
A
回答
1
的行家目标verify
自带包后看到:Maven Build Lifecycle所以包装发生。
0
看看MVN建立订单生命周期(上述所有被使用)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.
相关问题
- 1. 为什么我的代码更改没有立即反映?
- 2. Symfony2 - 样式表更改没有反映
- 3. 文件更改没有立即反映
- 4. Django没有反映对urls.py的更改
- 5. 对JS文件的更改没有反映在VS2012构建在ASP MVC 4
- 6. 为什么不刷新Firefox反映javascript代码更改?
- 7. 为什么不附加列表反映变量更改?
- 8. 为什么不反映我在GUI中所做的更改?
- 9. 为什么我的JSP更改没有反映出来而没有重新启动Tomcat?
- 10. Wildfly(JBoss)9.0.0的更改没有反映为JSP
- 11. 反映重构更改(Java - > JSP)
- 12. 为什么我的jar没有运行?
- 13. 没有反映
- 14. 为什么System.out.println不好?
- 15. 什么是System.out.println()
- 16. xcdatamodeld更改不反映在构建的应用程序?
- 17. 为什么数据库没有映射?
- 18. 构建不反映itunesconnect.apple.com
- 19. 构建没有反映在iTunes中从Xcode
- 20. Magento更改为.php文件未反映
- 21. 单声道为Android,更改不反映
- 22. 为什么谓词在通过反射进行构建时没有被过滤
- 23. 为什么没有illegalAccessException使用反射
- 24. 为什么TableView变得没有反应?
- 25. ngKeydown为什么没有反应?
- 26. 在jar中的System.out.println
- 27. 为什么我的状态在更改后没有映射到我的属性?
- 28. 为什么JSDOM更改html结构?
- 29. 钠事件更新没有反映
- 30. ObservableArray没有反映数据更新
测试测试代码;它不包装它。 –
查看[构建生命周期](https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html):验证是在包后但在安装之前。在你的情况下,包是足够的,因为这是当罐子被建立... – assylias
@Dave:我知道测试测试代码,因此我问了这个问题如何记录器语句反映没有建立罐子。 –