Maven Compiler Plugin - Incremental compile problem -- because of directory structure.

2011-09-23 Thread Gupta, Narendra
All,

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.

Thanks,

Narendra Gupta

 



Re: Maven Compiler Plugin - Incremental compile problem -- because of directory structure.

2011-09-23 Thread Stanimir Stamenkov

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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Maven Compiler Plugin - Incremental compile problem -- because of directory structure.

2011-09-22 Thread Gupta, Narendra
1. I have following directory for java source code 

--lion

 --com

   -- contains pom.xml and java source code with package
com.test1

   - 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.

Thanks,

Narendra Gupta



 



Re: Maven Compiler Plugin - Incremental compile problem -- because of directory structure.

2011-09-22 Thread Manfred Moser

Do yourself  a favour and adopt the maven standard directory layout...

On 11-09-22 03:09 PM, Gupta, Narendra wrote:

1. I have following directory for java source code

--lion

  --com

--  contains pom.xml and java source code with package
com.test1

-  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.

Thanks,

Narendra Gupta









-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org