Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to package my classes in a .jar, and still package as a war?
  2. mvn clean install
  3.        
  4. How can I have my classes compiled into a .jar file also?
  5.        
  6. /target/myapp/WEB-INF/classes/
  7.        
  8. myapp-1.0.jar
  9.        
  10. <packaging>war</packaging>
  11.        
  12. <packaging>jar</packaging>
  13.        
  14. <attachClasses>true</attachClasses>