Fri, 23 Sep 2011 14:12:00 -0400, /Gupta, Narendra/:
1. I have following directory for java source code--lion --com test1 --> contains pom.xml and java source code with package com.test1 test2 -> contains pom.cml and java source code with pakage com.test2 when compiler plugin compiles it does directory scanning and compiles only java code that are modified from previous build. But In above directory structure case it is recompiles the all source code in subsequent builds. How to overcome this ? I found that it is because of basedirectory do not follow maven standard direcotry layout. Please advise.
It is not a recommended practice but we use it as workaround for one of our core modules which has multiple source directories and we haven't yet retrofitted to a standard Maven layout.
Set the source directory to "test1" and then add "test2" using the Build Helper Maven Plugin:
http://mojo.codehaus.org/build-helper-maven-plugin/ http://mojo.codehaus.org/build-helper-maven-plugin/usage.html -- Stanimir --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
