I finally found a solution for my problem, so I want to share it :) I added this to my pom file, and now the warnings appear during compilation with maven, and I was able to include them in jenkins using the warning plugin. The important thing I missed in my first attempts was that plugins should be under the Management plugin.
Warnings are generated by a specific compiler in order to prevent the error "there is no such compiler: eclipse" that the plexor-compiler dependency is included.
Hope this works for others too :)
<build> <pluginManagement> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerId>eclipse</compilerId> <source>1.6</source> <target>1.6</target> </configuration> <dependencies> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-compiler-eclipse</artifactId> <version>1.8.6</version> </dependency> </dependencies> </plugin> </plugins> </pluginManagement> </build>
source share