我知道这有很多线索,但我的问题非常简单。
感谢您的帮助。
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
</plugin>
答案 0 :(得分:0)
您可以使用maven install命令在maven存储库中安装jar,如下所示
mvn install:install-file -Dfile=<jar-file-path> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=jar
然后你可以在你的pom.xml中使用它,就像使用groupid,artifact id和version
的常规maven依赖一样