I wanted to export a project from Eclipse with the Maven plugin with The project has several dependencies, one from my workspace, and several fom e.g. Apache. The export took place, the .jar file was created. I added the main file entry to manifest.mf manually.
When i tried to run the jar, i got an error message:
I think you are looking for the assembly plugin. It exports the dependencies in addition to your jar. It doesn't place the dependencies inside the jar though. Instead it creates a file you can unzip that has all the dependencies.
Thanks. I checked out the plugin from the Apache repository, built it, put it to the Eclipse plugins folder, restarted Eclipse. Then i tried to Run as / Maven build... for my project with single goal. But i got an error:
I think it was a naive way what i have done.
Since then i have downloaded maven-assembly-plugin-2.4.jar, put it to the Eclipse plugins folder, restarted Eclipse, but it did not recognise the single goal.
What is the correct way to use (install?) this plugin?