摘要:Description Resource Path Location Type org.codehaus.plexus.archiver.jar.Manifest.write(java.io.PrintWriter) pom.xml /gs-rest-service line 1 Maven Con
阅读全文
摘要:http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html http://maven.apache.org/plugins/maven-resources-plugin/index.html http://m
阅读全文
摘要:package cn.zno.version; import java.io.File; import java.nio.charset.Charset; import cn.zno.ambi.bas.util.FileUtils; import cn.zno.ambi.bas.xml.XmlUti
阅读全文
摘要:http://maven.apache.org/guides/mini/guide-naming-conventions.html 确定是否是多模块 如果是单模块 com.zno2.项目名 如果是多模块 com.zno2.项目名.模块1 com.zno2.项目名.模块2 以人为镜 apache.or
阅读全文
摘要:1) 依赖 2)默认的classpath http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html maven.compile.classpath maven.runtime.classpath mave
阅读全文
摘要:http://maven.apache.org/plugins/maven-jar-plugin/usage.html 控制打包内容 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>
阅读全文
摘要:之前我们知道 dependency:copy-dependencies 可以将依赖拷贝到指定目录,但是不含目录结构,仅是jar列表 现在的需求是导出一个tree 依赖 import java.io.BufferedReader; import java.io.File; import java.io
阅读全文
摘要:7.1.0-M14 7.1.0-M13 7.1.0-M12 7.1.0-M11 7.1.0-M10 7.1.0-M9 7.1.0-M8 7.1.0-M7 7.1.0.M6 7.1.0 M5 7.1.0 M4 7.1.0 M3 7.1.0 M2 7.1.0 M1 (milestone) 7.0.0 S
阅读全文
摘要:<dependency> <groupId>cn.xs</groupId> <artifactId>qishi-api</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> // D:\mvnrepository\cn\xs\qis
阅读全文
摘要:mvn <plugin>:help 可以输出该插件帮助信息。 mvn help:help help:active-profiles Displays a list of the profiles which are currently active for this build. help:all-
阅读全文
摘要:首先打开 build.gradle ,加入 'maven' plugin 准备导入 gradle 项目 运行gradle install (记得完成第一步,添加 maven) 执行完毕之后如下图 找到{build.gradle 所在目录}/build/poms/pom-default.xml 完善
阅读全文
摘要:创建一个简单的maven分层项目 z-father │ pom.xml │ ├─z-child1 │ │ pom.xml ├─z-child2-withtool │ │ pom.xml └─z-tool │ pom.xml 简单说明:father 有三个modules , child2 依赖 too
阅读全文
摘要:http://davidb.github.io/yuicompressor-maven-plugin/compress-mojo.html <plugin> <groupId>net.alchim31.maven</groupId> <artifactId>yuicompressor-maven-p
阅读全文
摘要:只装父pom跳过子 命令行 mvn -N install -N,--non-recursive Do not recurse into sub-projects usage: mvn [options] [<goal(s)>] [<phase(s)>] eclipse 跳过测试 mvn instal
阅读全文
摘要:http://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html Background M2Eclipse 0.12 and earlier executed some parts of Maven build lifec
阅读全文
摘要:http://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html 这个插件定义的phase 不包含在Eclipse m2e 的生命周期内。(这种情况很正常,自己定义的插件所在的phase 可以是各种各样的) 出现这种情况除
阅读全文
摘要:http://samaxes.github.io/minify-maven-plugin/minify-mojo.html <build> <plugins> <plugin> <groupId>com.samaxes.maven</groupId> <artifactId>minify-maven
阅读全文
摘要:思路:新建一个目录用于存放各个项目源码;新建一个settings文件用于本地仓库和nexus认证配置;通过maven dependency 插件获取依赖的组件列表和坐标信息;再通过 maven deploy 插件将组件批量上传。 <?xml version="1.0" encoding="UTF-8
阅读全文
摘要:[INFO] maven-resources-plugin:2.6:resources (default-resources) @ z-test [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resource
阅读全文
摘要:http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html 1. 为什么用这个插件 想直接上传文件到仓库,而不是部署maven项目到仓库 2. 部署哪个文件?file 3. 部署到哪?url 4. 部署时权限怎么
阅读全文