I am missing the point here. So can i use fay's suggestion:
toplevel/pom.xml (modules a, b, c) toplevel/a/pom.xml (no dependencies) toplevel/b/pom.xml (depends on a) toplevel/c/pom.xml (depends on b) How can i implement toplevel/pom.xml? Thanks. A. On 4/12/07, franz see <[EMAIL PROTECTED]> wrote:
Good day, After a quick browse to [1], [2], [3], [4], and [5] - I think they are compiled all at once. I think it's like doing javac -classpath <source locations> ... If you want to do one java on each source location, you may have to run the maven-compiler-plugin and provide each their own classpath via the compiler arguments ( see [6] and [7] ). Cheers, Franz [1] http://svn.codehaus.org/mojo/trunk/mojo/build-helper-maven-plugin/src/main/java/org/codehaus/mojo/buildhelper/AddSourceMojo.java [2] http://maven.apache.org/ref/current/maven-project/apidocs/org/apache/maven/project/MavenProject.html#getCompileSourceRoots() [3] http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java [4] http://svn.codehaus.org/plexus/tags/plexus-compiler-1.5.3/plexus-compiler-api/src/main/java/org/codehaus/plexus/compiler/CompilerConfiguration.java [5] http://svn.codehaus.org/plexus/tags/plexus-compiler-1.5.3/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java [6] http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerArgument [7] http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerArguments Baz-6 wrote: > > Fay, Frank thanks for the replies. > > Frank, I checked the first example of the link you sent. The example > demonstrated how to add sources, what about the order of compilation? > Is it sequential? > > Thanks. A. > > On 4/11/07, franz see <[EMAIL PROTECTED]> wrote: >> >> Good day, >> >> Try [1]. >> >> Cheers, >> Franz >> >> [1] http://mojo.codehaus.org/build-helper-maven-plugin/howto.html >> >> >> Wayne Fay wrote: >> > >> > Ideally you would just make multiple poms ie: >> > >> > toplevel/pom.xml (modules a, b, c) >> > toplevel/a/pom.xml (no dependencies) >> > toplevel/b/pom.xml (depends on a) >> > toplevel/c/pom.xml (depends on b) >> > >> > Wayne >> > >> > On 4/11/07, Baz <[EMAIL PROTECTED]> wrote: >> >> All, >> >> >> >> If I have a directory "src" and subdirectories "a", "b" and "c". Each >> >> subdirectories have their own pom.xml files. Output of a depends on b, >> >> and b on c. >> >> >> >> Is it possible to have a pom.xml in src directory and start >> >> compilation in directory c, then b then a? >> >> >> >> Thanks. >> >> >> >> A. >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/how-can-i-compile-a-multiple-directories-with-pom.xml--tf3563309s177.html#a9953345 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/how-can-i-compile-a-multiple-directories-with-pom.xml--tf3563309s177.html#a9973455 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
