On Tue, Nov 13, 2012 at 12:50 AM, Brett Walker
<[email protected]> wrote:
> Hi All,
>
> I'm using the Maven Checkstyle plugin in a new Java 7 project.
>
> The latest version of the plugin (v2.9.1) has a dependency of Checkstyle
> v5.5. This has been fine until I tried using the new Java 7
> try-with-resource; when it reported an inner assignment warning.
>
> I have found that this issue, reported as a bug, has been fixed in Checkstyle
> v5.6. When is it likely that a new version of the Checkstyle plugin will be
> available that has a dependency of Checkstyle v5.6?
>
> I tried building the plugin myself with an updated dependency. It did not
> work.
Have you tried overriding the plugin dependency with checkstyle:5.6?
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.9.1</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>5.6</version>
</dependency>
</dependencies>
</plugin>
--
Thomas Broyer
/tɔ.ma.bʁwa.je/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]