According to the web page [1], this should be:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArguments>
<verbose />
<bootclasspath>${java.home}\lib\rt.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>
</plugins>
So can you try that?
Hth,
Nick Stolwijk
[1]
http://maven.apache.org/plugins/maven-compiler-plugin/examples/pass-compiler-arguments.html
-----Original Message-----
From: Jeff Jensen [mailto:[EMAIL PROTECTED]
Sent: Mon 11/26/2007 3:32 PM
To: 'Maven Users List'
Subject: RE: Not able to pass multiple arguments to javac
Try this approach:
<configuration>
<fork>true</fork>
<maxmem>1024m</maxmem>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
....etc...
</configuration>
To know element names to use, use the Name found in the Optional Parameters
section of this page:
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Sahoo
> Sent: Monday, November 26, 2007 8:25 AM
> To: Maven Users List
> Subject: Re: Not able to pass multiple arguments to javac
>
> Ignore my earlier email. The suggestion actually does *not* work. When I
> run with -X option, it shows only the last compilerArgument. See the
> following output:
>
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile' -->
> [DEBUG] (f) basedir = /tmp/my-app
> [DEBUG] (f) buildDirectory = /tmp/my-app/target
> [DEBUG] (f) classpathElements = [/tmp/my-app/target/classes]
> [DEBUG] (f) compileSourceRoots = [/tmp/my-app/src/main/java]
> [DEBUG] (f) compilerArgument = -verbose
> [DEBUG] (f) compilerId = javac
> [DEBUG] (f) debug = true
> [DEBUG] (f) failOnError = true
> [DEBUG] (f) fork = false
> [DEBUG] (f) optimize = false
> [DEBUG] (f) outputDirectory = /tmp/my-app/target/classes
> [DEBUG] (f) outputFileName = my-app-1.0-SNAPSHOT
> [DEBUG] (f) projectArtifact = com.mycompany.app:my-app:jar:1.0-SNAPSHOT
> [DEBUG] (f) showDeprecation = false
> [DEBUG] (f) showWarnings = false
> [DEBUG] (f) staleMillis = 0
> [DEBUG] (f) verbose = false
> [DEBUG] -- end configuration --
>
> Thanks,
> Sahoo
>
> Sahoo wrote:
> > Thanks, that works.
> >
> > Sahoo
> >
> > Wayne Fay wrote:
> >> Try this, Sahoo:
> >>
> >> <plugin>
> >> <groupId>org.apache.maven.plugins</groupId>
> >> <artifactId>maven-compiler-plugin</artifactId>
> >> <configuration>
> >> <compilerArgument>-nowarn</compilerArgument>
> >> <compilerArgument>-verbose</compilerArgument>
> >> </configuration>
> >> </plugin>
> >>
> >> On 11/22/07, Sahoo <[EMAIL PROTECTED]> wrote:
> >>
> >>> As suggested in [1], I tried configuring maven-compiler-plugin like
> >>> this:
> >>>
> >>> <compilerArgument>-nowarn -verbose</compilerArgument>
> >>>
> >>> But it causes compilation failure. Details given below:
> >>>
> >>> Failure executing javac, but could not parse the error:
> >>> javac: invalid flag: -nowarn -verbose
> >>>
> >>> How can I pass multiple arguments to javac?
> >>>
> >>> Thanks,
> >>> Sahoo
> >>> [1]
> >>> http://maven.apache.org/plugins/maven-compiler-plugin/examples/pass-
> compiler-arguments.html
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> 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]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]