dev@glassfish.java.net

Re: -Xlint:deprecated

From: Jane Young <jane.young_at_oracle.com>
Date: Fri, 08 Apr 2011 06:56:34 -0700

Which module?
If you add to artifact with "hk2-jar" packaging, add:
<compilerArgument>-Xlint:deprecated</compilerArgument>
in hk2-maven-plugin.

e.g. v3/pom.xml
<plugin>
<groupId>com.sun.enterprise</groupId>
<artifactId>hk2-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
*<compilerArgument>-Xlint:deprecated</compilerArgument> *
                      ...
</configuration>
</plugin>

For artifact with "jar" packaging, add the same element in
maven-compiler-plugin.


On 4/7/11 3:55 PM, Bill Shannon wrote:
> What's the simplest way to modify my build to use -Xlint:deprecated?