A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
Ant, Maven and Other Build Tools
Compiling package by package in Maven
Joined: May 12, 2010
Nov 22, 2011 13:01:02
I really like the way you can compile package by package and thus enforce dependencies between your packages. If a developer breaks the dependencies the code won't compile.
How is this achieved in Maven?
Joined: May 14, 2008
Nov 25, 2011 10:54:27
Make each package its own project. In effect, that is what you were doing in Ant. Then if you still want all of the classes packaged into a single JAR file you can use the Assembly plugin.
JBoss In Action
I agree. Here's the link:
subject: Compiling package by package in Maven
Maven : deploy libraries to WEB-INF/lib
exporting complete WAR bundle after build in M2/eclipse wtp project
config spring in eclipse
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015