Note that as a general rule do not look at JIRA to understand how a plugin should be configured. Look at the doc, which actually seems correctly up to date: http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html
Cheers Le 8 avr. 2013 16:06, "Matthew Adams" <[email protected]> a écrit : > It's worth noting that the property to control skipping the compilation of > main sources is "maven.main.skip" (like "maven.test.skip"), not > "maven.compiler.main.skip", > despite what the title of the issue says. It was changed during the course > of discussion. > > Further, the plugin configuration boolean parameter is called "skipMain": > <skipMain>true</skipMain> > > -matthew > > > On Mon, Apr 8, 2013 at 5:15 AM, Olivier Lamy <[email protected]> wrote: > > > The Apache Maven team is pleased to announce the release of the Maven > > Compiler Plugin, version 3.1 > > > > The Compiler Plugin is used to compile the sources of your project. > > The default compiler is javac and is used to compile Java sources. > > Also note that at present the default source setting is 1.5 and the > > default target setting is 1.5, independently of the JDK you run Maven > > with. > > > > http://maven.apache.org/plugins/maven-compiler-plugin/ > > > > You should specify the version in your project's plugin configuration: > > > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-compiler-plugin</artifactId> > > <version>3.1</version> > > </plugin> > > > > Release Notes - Apache Maven 2.x Compiler Plugin - Version 3.1 > > > > ** Bug > > * [MCOMPILER-178] - can't specify -Xlint:-path option without > > violation of XML well-formness > > * [MCOMPILER-187] - incremental stuff detect changes even if > > nothing has changed means too much compilation > > * [MCOMPILER-190] - No compile errors with plexus-compiler-eclipse > > * [MCOMPILER-192] - No error reporting with forked compiler when > > Compiler includes non java files > > * [MCOMPILER-198] - Some parameters introduced in version 3.0 are > > annoted with since 2.6 > > * [MCOMPILER-199] - Plugin 3.0 does not compile src/main/groovy if > > neither src/main/java nor src/main/resources folders exist > > > > ** Improvement > > * [MCOMPILER-188] - Add a flag to be able to disable incremental > > feature > > > > ** New Feature > > * [MCOMPILER-132] - Provide general "maven.compiler.main.skip" > > attribute > > > > > > Have Fun, > > -- > > The Apache Maven team > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > > -- > mailto:[email protected] <[email protected]> > skype:matthewadams12 > googletalk:[email protected] > http://matthewadams.me > http://www.linkedin.com/in/matthewadams >
