我正在使用maven-ear-plugin构建一个带有瘦骨w w战争的ear文件。SkinnyWars导入冲突的快照
我与另一支球队提供每日快照和我 得到什么工作的情况是,如果我还没有建立快照,本地然后
EAR文件具有每日构建(这是很好)和战争文件 有我最近的快照(这是不好的)。
例如EAR文件将有 imported1-2017-010101.jar
和战争文件将有 imported1-SNAPSHOT.jar
看来,这是因为在他们的名日期戳,而快照不会每日构建发生。
如果我在构建ear文件之前构建导入库的快照。 例如耳文件将有 imported1-SNAPSHOT.jar
和战争文件将不会有库。
这是耳朵配置
<profile>
<id>skinny</id>
<activation>
<property>
<name>!skinny</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>my.library</groupId>
<artifactId>war-1</artifactId>
<type>pom</type>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>my.library</groupId>
<artifactId>war-2</artifactId>
<type>pom</type>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<defaultLibBundleDir>/lib</defaultLibBundleDir>
<skinnyWars>true</skinnyWars>
</configuration>
</plugin>
</plugins>
</build>
</profile>
有我有什么不对或不插件只是没有在这种情况下工作吗?