I value Maven 3 at work. For a few sample projects, I have to deploy them to the server (without a repository), but this is not a problem.
In my current project example, I am trying to load only "jar-with-dependencies". and this is exactly the problem.
Everything works fine, except that the main artifact and jar-with-dependencies (created by the plug-in assembly) are loaded.
How to prevent Maven, or rather the deployment phase, from loading the main jar and downloading only the given or specified file (in this case, the assembly file is "jar-with-dependencies")?
Turning to the question Create only executable jar-with-dependencies in Maven , I cannot just change the packaging setting to pom, because it will also prevent the collector plugin from adding my classes to the JAR file. It creates only a JAR file with dependency files.
I hope I am clear about my problem and you can help me;)
source share