tags:

views:

29

answers:

1

Hi All

I have multimodule project.

Can I make it somehow work that when calling compile it would ignore a module, but in all other cases include it ?

Thanks

+1  A: 

Like the comments, i too do not know why? One possible solution: Make a profile in the parent of the module the you will exclude when compiling.

mvn -Pexclude-profile compile //will exclude

mvn compile //will include

This assume that you do not need any thing else from the module, all other life-cycles are excluded too.

Peter Andersen