Maven打包,不打包pom文件
来源:互联网 发布:js数组中删除某个元素 编辑:程序博客网 时间:2024/05/19 01:10
如果是 jar 包,在 Plugin 中配置
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
</plugins>
</build>
如果是 war 包,在 Plugin 中配置
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
</plugins>
</build>
如果是 war 包,在 Plugin 中配置
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
</plugins>
</build>
0 0
- Maven打包,不打包pom文件
- Maven 打包 jar 、war 文件时,不将 pom.xml 等打包进包中
- Maven 打包 jar 、war 文件时,不将 pom.xml 等打包进包中
- Maven中Pom文件打包配置build
- maven手动打包pom文件配置
- Maven中Pom文件打包配置build
- maven打包jar与pom文件到本地仓库例子
- Maven项目不打包*.hbm.xml文件
- Maven项目不打包*.hbm.xml文件
- maven的配置,maven构建工程,pom.xml文件配置,maven打包
- Maven 打包插件的pom.xml配置
- maven: 资源文件打包
- Maven 选择文件打包
- Maven 项目不打包 *.hbm.xml 映射文件
- Maven 项目不打包 *.xml 映射文件 的问题解决
- Maven 项目不打包 *.hbm.xml 映射文件
- Hibernate问题之Maven项目不打包*.hbm.xml文件
- Maven项目中不打包 *.hbm.xml 映射文件
- makefile编译的时候undefined reference问题总结
- RTSP介绍
- Android 对话框(Dialog)大全 建立你自己的对话框
- Jmeter
- poj1195 (二维树状数组)
- Maven打包,不打包pom文件
- db_block_checksum实质是通过flg_kcbh来控制block checksum
- 迭代分析网页内容
- JAVA Servlet的应用详解
- How to access to remote server by root directly on solaris
- select 设置发送超时发送注意事项
- C#-—判断物体会不会下沉
- USB编程研究之三(DeviceIoControl函数和控制码)
- 提高数控机床的重要性