1 回答
TA贡献1836条经验 获得超4个赞
我用了你的 pom,问题是插件试图解压一个 pom。
解压 d:\Profiles\aclaudel.m2\repository\club\minnced\opus-java\1.0.4\opus-java-1.0.4.pom 到 D:\tmp\target\classes 包含“”并排除“”
[错误] [...] 未知的存档器类型:没有这样的存档器:'pom'。
解决方法是在插件配置中排除工件:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>package</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<excludeArtifactIds>opus-java</excludeArtifactIds>
<excludeScope>system</excludeScope>
<excludeGroupIds>junit,org.mockito,org.hamcrest</excludeGroupIds>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
添加回答
举报