![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
maven开发
luoshuweiis
这个作者很懒,什么都没留下…
展开
-
maven项目指定类/方法执行测试
1.指定类mvn test -D test=com.manning.junitbook.ch02.dependencyinjection.TestInfoTest2.指定方法mvn test -D test=com.manning.junitbook.ch02.dependencyinjection.TestInfoTest#setUp#原创 2021-10-03 11:37:28 · 476 阅读 · 0 评论 -
java maven利用profile实现多运行环境切换和war文件打包
使用编辑器eclipse的maven项目,要实现开发环境和生产环境的切换运行,以及两种情形的war文件打包。思路:利用pom.xml中配置节,然后在节中的中的和, 结合中的利用${package.environment}获得打包命令参数(如Pdev或Ptest等),从而在命令mvn install时选择复制需要的文件到对应的文件夹中。下面是pom.xml配置详情:<build>...原创 2019-09-29 16:54:33 · 362 阅读 · 0 评论