On Thu, 2006-03-09 at 11:15 +1300, Simon Kitching wrote: > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <executable>${compiler.path}</executable> > </configuration> > </plugin>
First of all, it looks from the plexus sourcecode like fork must be set to true before the executable option is used; ok that makes sense. However even with this, things don't work. I'm not able to get the "executable" option set on the compiler. With: <executable>${compiler.path}</executable> <compilerId>javad</compilerId> <fork>true</fork> Running mvn --debug install gives: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0:compile' --> [DEBUG] (f) basedir = /mnt/hda12/simon/apache/commons-svn/proper/logging/contrib/simon/jcl2/simple [DEBUG] (f) buildDirectory = /mnt/hda12/simon/apache/commons-svn/proper/logging/contrib/simon/jcl2/simple/target [DEBUG] (f) classpathElements = [/mnt/hda12/simon/apache/commons-svn/proper/logging/contrib/simon/jcl2/simple/target/classes, /home/simon/.m2/repository/org/apache/commons/logging/commons-logging-core/0.1-SNAPSHOT/commons-logging-core-0.1-SNAPSHOT.jar] [DEBUG] (f) compileSourceRoots = [/mnt/hda12/simon/apache/commons-svn/proper/logging/contrib/simon/jcl2/simple/java] [DEBUG] (f) compilerId = javad [DEBUG] (f) debug = true [DEBUG] (f) fork = true [DEBUG] (f) optimize = false [DEBUG] (f) outputDirectory = /mnt/hda12/simon/apache/commons-svn/proper/logging/contrib/simon/jcl2/simple/target/classes [DEBUG] (f) outputFileName = commons-logging-simple-0.1-SNAPSHOT [DEBUG] (f) projectArtifact = org.apache.commons.logging:commons-logging-simple:jar:0.1-SNAPSHOT [DEBUG] (f) staleMillis = 0 [DEBUG] (f) verbose = false [DEBUG] -- end configuration -- This shows clearly that config options "compilerId" and "fork" are being set from my pom. However option "executable" is just not being configured. The source for AbstractCompilerMojo seems to correctly declare executable as a configurable property: /** * The executable of the compiler to use. * * @parameter expression="${maven.compiler.executable}" */ private String executable; Any ideas?? Cheers, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]