How to generate one jar with different executable classes in maven2?

Posted by GuidoMB on Stack Overflow See other posts from Stack Overflow or by GuidoMB
Published on 2010-06-11T22:10:50Z Indexed on 2010/06/11 22:12 UTC
Read the original article Hit count: 194

Filed under:
|

I have a big project that uses maven and I'm creating the project's jar. The problems is that the project has several classes that can be executed. How can I accomplish this?

Every time that I try to execute a class I get this message

java -jar library.jar ExecutableClass1 Failed to load Main-Class manifest attribute from library.jar

© Stack Overflow or respective owner

Related posts about java

Related posts about maven-2