aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Compiling package by package in Maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Compiling package by package in Maven" Watch "Compiling package by package in Maven" New topic
Author

Compiling package by package in Maven

Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
Hi,
In ANT 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?
Thanks.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

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: http://aspose.com/file-tools
 
subject: Compiling package by package in Maven