Maven doesn't incude dependencies into the jar
This question already has an answer here:
What do you mean it got rid of the jars? were they ever in the final artifact?? Because based on your pom I don't see how that was the case. You need to use the maven-assembly-plugin to create an uberjar with all the dependencies inside. If the jars were at some point packaged then please provide more information with the changes you did when the dependencies stopped being packaged
You can see this answer for more info on how to create an uberjar, but basically, you need to add this to your pom
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>fully.qualified.MainClass</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</build>
链接地址: http://www.djcxy.com/p/29642.html
下一篇: Maven不会将依赖关系添加到jar中