On Feb 21, 2013, at 11:53 PM, "Bleeker, Troy C." <[email protected]> wrote:
> The command
> mvn clean compile package
> is now in the doc for command line build however I was wondering if that is 
> really doing two things. If a developer just wants to run code and not 
> package up all the deliverables is this sufficient:
> mvn clean compile

That's correct - `mvn compile` should be sufficient if you just want to compile 
everything.

And in fact, you probably never want to run `mvn compile package` either - `mvn 
package` will do the compiling as well, so if you run `mvn compile package`, 
you're actually compiling everything twice.

In general, Maven understands what phases are prerequisites for other phases, 
so you only need to specify the last phase that you want executed.

Steve

Reply via email to