dev@glassfish.java.net

Re: Javac warnings are OFF by default in the build system!!

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Thu, 15 May 2008 16:35:51 -0700
Here's what to do to see many but not all of the warnings with JDK 1.5

edit the main v3   pom.xml

BEFORE:
            <plugin>
                <groupId>com.sun.enterprise</groupId>
                <artifactId>hk2-maven-plugin</artifactId>
                <version>${hk2.version}</version>
                <extensions>true</extensions>
            </plugin>


AFTER:

            <plugin>
                <groupId>com.sun.enterprise</groupId>
                <artifactId>hk2-maven-plugin</artifactId>
                <version>${hk2.version}</version>
                <extensions>true</extensions>
                    <configuration>
                        <compilerArgument>-Xlint</compilerArgument>
                    </configuration>
            </plugin>

Craig L Russell wrote:
Hi Byron,

On May 13, 2008, at 6:07 PM, Byron Nevins wrote:
I recently discovered that warnings from javac are squelched by maven.  I build on 3 machines.  2 of them never show warnings.  One of them does.  I have no idea why.

Shouldn't we have warnings on by default in V3 -- they are PLENTY of them -- so that we can look at getting rid of them? 

+1

It seems like fixing FindBugs issues should take a backseat to bona fide compiler warnings.

Does anyone know what magical incantation to add to settings.xml to turn on warnings -- the maven doc is kind of painful....

Here's the relevant web page...

http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html

Craig


-- 
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: dev-help@glassfish.dev.java.net

Craig Russell

Architect, Sun Java Enterprise System http://java.sun.com/products/jdo

408 276-5638 mailto:Craig.Russell@sun.com

P.S. A good JDO? O, Gasp!



-- 
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.