<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<outputDirectory>${basedir}/../target</outputDirectory>
<webResources>
<resource>
<directory>${basedir}/src/main/webapp</directory>
<filtering>true</filtering>
<includes>
<include>*</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
webapp下面有个uploadify.swf文件,在linux上maven编译打包以后大小和windows上的不一致。
解决办法就是就是将
<filtering>true</filtering> 改为 false
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<outputDirectory>${basedir}/../target</outputDirectory>
<webResources>
<resource>
<directory>${basedir}/src/main/webapp</directory>
<filtering>false</filtering>
<includes>
<include>*</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
Warning: Do not filter files with binary content like images! This will most likely result in corrupt output. If you have both text files and binary files as resources, you need to declare two mutually exclusive resource sets. The first resource set defines the files to be filtered and the other resource set defines the files to copy unaltered as illustrated below:
<project> ... <build> ... <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <includes> <include>**/*.xml</include> </includes> </resource> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> <excludes> <exclude>**/*.xml</exclude> </excludes> </resource> ... </resources> ... </build> ... </project>
相关推荐
jredis源码以及maven编译后的jar文件支持redis3.0
最新maven-3.6.0包 ;里面共有四个文件,按需自取;注意src是源码文件(里面没有bin),如果你要安装环境的话记得使用bin文件,另外zip结尾是在Windows环境下使用,tar.gz是在Mac或Linux环境下使用。
eclipse 中编译、运行都正常,但是如果用maven的打包命令 mvn clean package 进行打包时会发现有类型错误
通过maven项目中的pom文件进行编译jar包。资源包包括maven3 和编译所需工具。
elasticsearch-6.4.2 IK6.4.2 plugin; maven编译后的,解压即可使用
Maven多模块项目编译速度慢,下面我们来学习下优化的方法。 mvn clean package -T 4C -Dmaven.test.skip=true -Dmaven.compile.fork=true -T 4C 代表本机4个CPU内核都参与编译工程, -Dmaven.test.skip=true 代表...
这是上传的资料的第二份资料。maven的安装二进制文件。
之前用maven开发,每修改一次代码都需要重新编译发布一次,于是后面我用了jrebel实现热编译,这样开发就方便了很多,后面开发都只需要编译一次,有代码或者页面改动,都会自动去编译,不用maven再重新编译发布一次,...
Maven配置文件Maven配置文件
jenkins和maven配置自动编译打包和发布java项目
maven编译bindead资源
Maven是一个采用纯Java编写的开源项目管理工具。Maven是很重要的,我们可以对我们所编写的代码进行预编译。
Apache Maven是一套软件工程管理和整合工具。基于工程对象模型(POM)的概念,通过一个中央信息管理模块,Maven能够管理项目的构建、报告和文档
此回购是Jetpack Compose库的快速演示,其二进制文件是从当时新发现的Maven链接中获取的。 在编译和渲染View的同时,它以微妙的方式被破坏(例如观察@Models ,这是Compose的一半)。 从那时起,Google便更新了其...
mondrian默认采用ant build,这里的war项目采用maven编译,可以直接在eclipse里运行
编译Hadoop源码需要的maven文件,编译Hadoop源码需要的maven文件.
maven 2.0 已编译 直接解压使用。
maven编译pentaho-big-data-plugin遇到的所有问题解决,pentaho6.0
云效制品仓库 Packages 致力于帮助开发者统一管理各种开发语言在开发、构建过程中的依赖,构建成果(二进制制品)以及交付过程关键信息的重要组件。 云效代码管理 Codeup 是阿里云出品的一款企业级代码管理平台,...
maven的settings文件maven的settings文件maven的settings文件maven的settings文件maven的settings文件maven的settings文件maven的settings文件maven的settings文件