【发布时间】:2012-10-02 05:05:18
【问题描述】:
我正在尝试使用 maven-remote-resources-plugin 在多模块 maven 项目中跨模块共享大量资源。不幸的是,共享的二进制资源在捆绑过程中被破坏了,大概是通过过滤。
我确信在这个阶段发生了损坏,因为从我的本地存储库中提取共享资源 jar 包含损坏的二进制文件。
有什么可以关闭 maven-remote-resources-plugin 的过滤吗?
目前我的共享资源模块中的 pom 看起来像
<build>
<plugins>
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>**/*</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
【问题讨论】:
-
你的意思是
maven-remote-resources-plugin?从您的 pom.xml 发布相关的 sn-ps 可能有助于吸引答案。 -
感谢@DuncanJones,这是正确的。我已经修正了错字并添加了 pom 的相关部分
标签: maven filtering maven-resources-plugin