代码改变世界

随笔分类 -  maven

maven setting 文件

2013-05-15 23:24 by java20130722, 342 阅读, 收藏,
摘要: usr/local/maven true false false org.codehaus.mojo myproxy true http proxy.somewhere.com 8080 proxyuser somepassword *.google.com|ibiblio.org server001 my_login my_password ${usr.home}/.ssh/id_dsa some_passphrase 664 775 planetmirror.com PlanetMirror Aust... 阅读全文

MVN test

2012-10-23 09:06 by java20130722, 415 阅读, 收藏,
摘要: 1. 忽略测试失败 [...] org.apache.maven.plugins maven-surefire-plugin true [...] 插件参数表达式testFailureIgnore Set this to true to ignore a failure during testing. Its use * Type: boolean* Required: No* Expression: ${maven.test.failure.ignore}这个表达式可以从命令行通过 -D 参数设置。 $ mvn test -Dmaven.test.failure.ignore... 阅读全文

maven 的一些操作

2012-09-11 14:58 by java20130722, 212 阅读, 收藏,
摘要: 1. 查看 XXX 插件的完整描述,运行:$ mvn help:describe -Dplugin=XXX -Dfull2. 浏览项目依赖$ mvn dependency:resolve3. 查看项目的整个依赖树,你可以运行 dependency:tree 目标。$ mvn dependency:tree4. 查看完整的依赖踪迹,包含那些因为冲突或者其它原因而被拒绝引入的构件,打开 Maven 的调试标记运行:$ mvn install -X5.忽略单元测试失败5.1 在pom.xml 中配置 org.apache.maven.plugins m... 阅读全文

为 pom.xml 添加组织,法律和开发人员信息

2012-09-11 11:32 by java20130722, 238 阅读, 收藏,
摘要: 转载请声明出处:http://blog.csdn.net/luhuajcdd/article/details/7966489为pom.xml添加组织,法律和开发人员信息: Xml代码4.0.0.....Apache2http://www.apache.org/licenses/LICENSE-2.0.txtrepoAbusiness-friendlyOSSlicensedanielluhualuhuazhuce@163.comhttp://blog.csdn.net/luhuajcdd/article/listdeveloper-6UTF-8junitjunit3.8.1test“为 pom. 阅读全文

创建一个简单的项目

2012-09-11 11:30 by java20130722, 263 阅读, 收藏,
摘要: 转载请声明出处: http://blog.csdn.net/luhuajcdd/article/details/79664751. 创建一个文件夹 example, 再创建一个pom.xml 放在example目录下。pom.xml 文件格式:Xml代码4.0.0com.luhua.mvn1.0mvnex-examplespomMavenbyExample,ExampleCodeExampleCodeforMaven:ByExamplejunitjunit3.8.1test2. 开始一个新的Maven项目,在命令行使用Maven Archetype插件 2.1 在命令行,进入example 目 阅读全文