After building a sample mvn project, I added my org.restlet
dependencies & Java code.
Then, I successfully built my JAR via mvn install
. Finally, I ran into an error when trying to run the JAR.
vagrant$ java -jar target/my-app-1.0-SNAPSHOT.jar
Failed to load Main-Class manifest attribute from
target/my-app-1.0-SNAPSHOT.jar
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…