maven 构建archetype 文档
2017-01-18 15:38
134 查看
知识点补充
生成jar exclude 配置文件
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.0.2</version> <configuration> <excludes> <exclude>logback.xml</exclude> <exclude>disconf.properties</exclude> </excludes> </configuration> <executions> </executions> </plugin>
maven-assembly-plugin 打包 请加上版本号
如下: 3.0.0否则打包依赖有问题,我就老实找不到httpcore最新版马老师打的4.2 其实项目依赖4.5
<plugin> <artifactId>maven-assembly-plugin</artifactId> <version>3.0.0</version> <configuration> <appendAssemblyId>false</appendAssemblyId> <outputDirectory>${project.build.directory}/releases/</outputDirectory> <descriptors> <descriptor>${project.basedir}/src/main/assembly/plugin.xml</descriptor> </descriptors> <archive> <manifest> <mainClass>com.alibaba.dubbo.container.Main</mainClass> </manifest> </archive> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin>
官网资料
骨架项目自身结构:资料:http://maven.apache.org/archetype/maven-archetype-plugin/
相关文章推荐
- maven-构建测试项目、外部依赖、项目(文档,模板)、快照、自动化、依赖管理、自动化部署
- 用myeclipse构建maven project时候出现报错:Unable to create project from archetype
- Maven是基于项目对象模型(POM),可以通过一小段描述信息来管理项目的构建,报告和文档的软件项目管理工具。
- Maven构建项目Archetype
- eclipse 构建maven-project 问题: Could not resolve archetype org.apache.maven.archetypes .
- Maven构建Hadoop(java)工程详情文档
- Maven 常用的构建命令
- maven-bundle-plugin插件, 用maven构建基于osgi的web应用
- 使用Maven为代码构建依赖包
- linux jenkins 2.89.1 安装部署 构建maven项目并部署到tomcat
- 使用MyEclipse构建MAVEN项目
- 构建多模块的Maven项目
- aliyun阿里云Maven仓库地址——加速你的maven构建
- aliyun阿里云Maven仓库地址——加速你的maven构建
- eclipse 使用maven 构建springboot+注入servlet
- 使用Jenkins配置Git+Maven的自动化构建
- 4、Jenkins 使用maven构建一个项目
- eclipse构建maven项目,以及创建完成后pom文件报错
- Spring Boot中使用Swagger2构建强大的RESTful API文档
- 使用Maven构建多模块项目