News Ticker

Maven compiler arguments

You can add compiler arguments to a Maven build script like so:

<build>
    <plugins
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.0</version>
            <configuration>
                 <compilerArgument>-Xlint</compilerArgument>
                 <verbose>true</verbose>
             </configuration>
         </plugin>
    </plugins>
</build>

1 Trackback / Pingback

  1. Rebuild a Maven repository in 3 steps

Leave a Reply

Discover more from Digital Transformation and Java Video Training

Subscribe now to keep reading and get access to the full archive.

Continue reading