我们的 pom.xml 在 maven-jar-plugin 中有多个执行,目的是创建三个单独的 jar 文件。调用 mvn 并构建三个 jar 的方法是什么?
目前
mvn compile jar:jar
仍然只创建一个罐子。
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<executions>
<execution>
<id>UDFCommon</id>
<goals><goal>jar</goal></goals>
<phase>package</phase>
<configuration>
<forceCreation>true</forceCreation>
<classifier>UDFCommon</classifier>
<includes>
<include>**/pafcommon/*</include>
</includes>
</configuration>
</execution>
<execution>
<id>UDFOne</id>
<goals><goal>jar</goal></goals>
<phase>package</phase>
<configuration>
<classifier>UDFOne</classifier>
<includes>
<include>**/dqm/*</include>
</includes>
</configuration>
</execution>
<execution>
<id>UDFTwo</id>
<goals><goal>jar</goal></goals>
<phase>package</phase>
<configuration>
<classifier>UDFTwo</classifier>
<includes>
<include>**/ciview/*</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>