And the alternative would be using this?
But then I still get an error.. I'm using the same version for all my
dependencies and so on
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring</artifactId>
<version>${camel-version}</version>
</dependency>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>no.norsktipping.ntrouter.chain.ChainMain</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
But then I get
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/camel/spri
ng/Main
at ....ChainMain.main(ChainMain.java:15)
Caused by: java.lang.ClassNotFoundException: org.apache.camel.spring.Main
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Project-Executable-Jar-tp5763937p5763940.html
Sent from the Camel - Users mailing list archive at Nabble.com.