I'm getting the following error using javancss-maven-plugin (version
2.0) on my Java 7 project...seems it can't handle try-with-resources?

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.0:site (default-cli) on
project dashboard-core: Error during page generation: Error rendering
Maven report: Error while JavaNCSS was executing: Encountered " "(" "(
"" at line 51, column 13.

where source is:
try (final InputStream inputStream =
getClass().getResourceAsStream("/some resource")) {
}

Seems it doesn't like the ( after the try.

Is there a fix or work around for this?

Thanks,
-Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to