• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven - compile into a jar and war the same time

 
Cristian Vrabie
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys! Anybody knows how i might compile a maven project both into a war and a jar the same time.

I would need this for a project in which i use GWT and the same java file will get compiled into a java class to use on server side (thus i need a jar as a dependency) and into js which needs to be overlay-ed with my project (thus the war dependency).

If you have an idea about how to handle this otherwise, please share.

Thanks, Cristian
[ October 28, 2008: Message edited by: Cristian Vrabie ]
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Maven paradigm is one project, one object. Usually, if you want to produce 2 objects, you'd make them sub-projects of a common project.
 
Cristian Vrabie
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
True. Anyway, when you try to do what i was trying to do you should know something is wrong
I managed to obtain the same effect by some war overlay configuration.

Thanks for the alarm signal.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic