Hi all,
As per the rather excellent guide available at Sonatypes website
(http://www.sonatype.com/book/using-plugins.html#configuring_plugins):
One is told that the following two compiler plugin configurations are
synonymous:
<project>
...
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.4</source>
<target>1.4</target>
</configuration>
</plugin>
..
and
<project>
...
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
<configuration>
<source>1.4</source>
<target>1.4</target>
</configuration>
</execution>
</executions>
</plugin>
However from a number of trials using compiler plugin version 2.0.2 and
maven 2.0.7 we have been unable to get this to work.
The global style plugin configuration works, with both Mojos getting the
correct configuration.
The Goal set based configuration properly configures the 'compile' goal but
does not configure the 'testCompile' goal.
Varying where the testCompile goal is specified makes no difference.
Are we correct in thinking that, as per the Sonatype docs, the
<goals><goal>compile</goal><goal>testCompiler</goal></goals> should work and
result in both compile and testCompiler MOJOs being properly configured?
Thanks,
John
--
View this message in context:
http://www.nabble.com/Plugin-configuration-for-specific-goals---doc-error--tf4049555s177.html#a11502449
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]