【发布时间】:2016-07-17 13:24:55
【问题描述】:
我有一点用 Kotlin 写的 project。当我运行clean compile assembly:single install 时,我收到以下错误消息:
Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single
(default-cli) on project alma-econsim: Error reading assemblies: No assembly
descriptors found. -> [Help 1]
我的jar-with-dependencies.xml 位于src/main/assembly 并在pom.xml 中引用,如下所示:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<executions>
<execution>
<id>assembly</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptors>
<descriptor>src/main/assembly/jar-with-dependencies.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
但我仍然收到错误消息。如何更正我的项目以便能够将其打包为具有依赖项的 jar?
【问题讨论】:
标签: java maven maven-3 kotlin maven-assembly-plugin