maven处理资源文件
来源:互联网 发布:列车网络控制系统 编辑:程序博客网 时间:2024/06/14 23:49
有时候我们可能要过滤web资源,一般的资源的过滤使用maven-resouce
<!--资源文件 detail: http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html --><plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <configuration> <filters> <filter>src/main/webapp/filters/resource-filter.properties</filter> </filters> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> </configuration></plugin>
web资源的处理:
<!--web资源文件 detail: https://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html --><plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.4</version> <configuration> <webResources> <resource> <!-- this is relative to the pom.xml directory --> <directory>src/main/webapp</directory> <include>**/*.jsp</include> <filtering>true</filtering> </resource> </webResources> </configuration></plugin>
注意:
web资源和一般的资源的区别,web资源是在webapp目录下的资源(默认的情况下);
0 0
- maven处理资源文件
- Maven学习-处理资源文件
- maven处理和java平级的资源文件
- maven 拷贝资源文件
- maven资源文件引用
- maven: 资源文件打包
- 资源文件处理
- SharePreferences资源文件处理
- maven 类加载资源文件
- maven资源文件的引用
- Maven 资源文件的配置
- maven项目打包资源文件
- android 资源文件处理工具
- springboot处理静态资源文件
- maven资源文件.properties的引用
- maven resources资源文件的位置
- Maven打包XML等资源文件
- maven 镜像仓库与资源文件
- Vi编辑器的使用方法
- 程序员技术练级攻略
- ::在C++中是什么意思
- 防止javascript 注入攻击 js过滤特殊字符
- DedeCMS全版本通杀SQL注入漏洞利用代码及工具
- maven处理资源文件
- 服务器后台语言选型参考
- Myeclipse中如何更改jsp默认的打开方式
- 设计移动App的十大技巧
- adb devices连接不到设备的解决方式
- UVA 589 - Pushing Boxes(BFS+状态判重)
- VPN技术详解 L2TP VPN
- 数据结构之链表反转
- 一步一步教你做ios推送