Hi Thomas,

Thomas Matthijs wrote:

> Hey,
> 
> The compiler plugins states to use something like this to pass xlint
> arguments:
>            <plugin>
>                     <groupId>org.apache.maven.plugins</groupId>
>                     <artifactId>maven-compiler-plugin</artifactId>
>                     <version>2.4</version>
>                     <configuration>
>                         <compilerArguments>
>                             <Xlint:varargs/>
>                         </compilerArguments>
>                     </configuration>
>                 </plugin>
> 
> See
> http://maven.apache.org/plugins/maven-compiler-plugin/compile-
mojo.html#compilerArguments
> 
> However if you use maven-release-plugin on a pom with this it fails: The
> prefix "Xlint" for element "Xlint:varargs" is not bound.
> 
> Am i doing it wrong, is this a bug? is there a way to specify this that
> works?

starting with version 3.1 of the compiler plugin, this construct is 
deprecated - because of this problems.

You'll use in future:

 <compilerArgs>
   <compilerArg>Xlint:varargs</compilerArg>
 </compilerArgs>

Vote for 3.1 is currently running.

Cheers,
Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to