Hi, I'm trying to define a profile that will allow a specific javac version to be used. In particular, one projects I'm working on (MyFaces) needs to be compiled using java 1.3 for official releases, though maven requires java 1.4. Note that using the <target> tag of the compiler plugin is NOT quite the same!
I'm trying to use a profile to do this, so that people can run: # use default compiler mvn install or # use specified compiler mvn -Dcompiler.path=/home/simon/java1.3/bin install I've got a parent pom with multiple child modules, and have defined the following profile in the parent pom: <profiles> <profile> <id>release</id> <activation> <property> <name>compiler.path</name> </property> </activation> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <executable>${compiler.path}</executable> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> </profiles> However I'm not getting the results I expect; passing a bad jdk path for example should cause compilation problems but everything just works fine. Using "mvn -Dcompiler.path=/foo/bar help:active-profiles" shows that the profile is active for the parent pom but not for child poms. Any idea why this is not working, or suggestions for a better approach? Thanks in advance, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]