This is in my pom.xml:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>tahrir.TrMain</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
You can view the entire pom.xml here.
And this is the output when I run “mvn -DskipTests=true assembly:assembly”.
Note that it seems to be buildingtahrir/target/tahrir-0.0.1-SNAPSHOT.jar
but not
tahrir/target/tahrir-0.0.1-SNAPSHOT-jar-with-dependencies.jar.
Why isn’t it building jar-with-dependencies given that this is the descriptionRef I’ve specified in the pom? This was working properly before and I don’t know what might have changed to break it…?
It looks like you are directly invoking the
assemblygoal ofassemblyplugin rather than use the maven lifecycle likeinstallorpackage.And the
proguard pluginkicks in before the assembly is complete. It looks for the jar-with-dependencies which does not exist as yet.Edit: You can try binding your assembly plugin explicitly to the
packagephase by adding the following:Then run
mvn packageormvn installskipping test as required.