maven 插件和资源过滤
来源:互联网 发布:茉莉茶软化宫颈 知乎 编辑:程序博客网 时间:2024/06/11 05:32
<build> <resources> <resource> <!--要进行替换的资源目录--> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <!--指定打包的描述--> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest> <mainClass>Main</mainClass> </manifest> </archive> </configuration> <executions> <execution> <!--插件目标跟生命周期进行绑定--> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <!--指定jdk版本--> <configuration> <source>1.8</source> <target>1.8</target> </configuration> <executions> <execution> <id>compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin> </plugins></build><!--定义properties的多种环境--><profiles> <profile> <id>dev</id> <activation> <activeByDefault>true</activeByDefault> </activation> <build> <filters> <filter>dev.properties</filter> </filters> </build> </profile> <profile> <id>online</id> <build> <filters> <filter>online.properties</filter> </filters> </build> </profile></profiles>
参考资料1
参考资料2
0 0
- maven 插件和资源过滤
- 利用maven中resources插件的copy-resources目标进行资源copy和过滤
- 利用maven中resources插件的copy-resources目标进行资源copy和过滤
- Maven资源过滤
- Maven 资源过滤
- maven的资源过滤
- maven中静态资源和字节码文件的过滤
- maven:资源过滤的介绍
- maven:资源过滤的介绍
- Maven properties属性进阶--资源过滤
- Maven和Maven插件
- Maven和Maven插件
- Maven和Maven插件
- Maven内置了三大特性:属性、Profile和资源过滤来支持构建的灵活性。
- Maven内置了三大特性:属性、Profile和资源过滤来支持构建的灵活性。
- Maven内置了三大特性:属性、Profile和资源过滤来支持构建的灵活性。
- maven的maven-resource-plugin资源插件
- Maven-生命周期和插件
- 塔防大战unity5.5版本系列(part4)
- 关于...的使用
- python爬虫之urllib模块和requests模块学习
- 软件测试学习笔记3-软件测试手段
- Painter
- maven 插件和资源过滤
- py2exe打包步骤
- <Android开源库> Realm For Android~ Migrations & Encryption & Working With Android(译文)
- python的range()函数用法
- CSS权值
- 【android知识必备】内存泄漏全解析,从此拒绝ANR,让OOM远离你的身边,跟内存泄漏say byebye【转】
- 【大话数据结构】——-线性表之链式存储
- FFMPEG 最简滤镜filter使用实例(实现视频缩放,裁剪,水印等)
- js 限制IE 文件上传大小