I'm using maven for building my jar (Intellij IDEA IDE). It is app built using Apache Camel. An excerpt from my pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>MainDriver</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
I'm able to retrieve a jar file from maven but upon running all I got are the NoClassDeFFound errors.
Finally, I've tried using the one-jar plugin (http://one-jar.sourceforge.net/) . And I've got it working. My question is can I achieve the same without using one-jar? I'm not liking the packaging of one-jar, what it does is when you extract the jar from one-jar, you will find your app jar within it, so you'll need to do an extra extraction on your jar to get to your classes/resources. My configuration files are on resources and from time to time, I'll be needing to modify it.
Thanks!