Java – why does “MVN assembly: single” use only assemblies to create a fat jar instead of my code?
•
Java
I have a maven project created with spring roo When I run MVN assembly: single, I get a fat jar containing all the dependencies, but not the actual code I write This is my POM Maven assembly plugin configuration in XML:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.2.1</version> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest> <mainClass>net.justaprogrammer.poi.cleanser.Cleanser</mainClass> </manifest> </archive> </configuration> </plugin>
What on earth did I do wrong?
Solution
I'd say you've done enough Instead of compiling: single, do:
mvn clean compile assembly:single
You should go well
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码