[
https://issues.redhat.com/browse/WFLY-13908?page=com.atlassian.jira.plugi...
]
Richard Chan updated WFLY-13908:
--------------------------------
Description:
Eclipse m2e mapping for checkstyle uses version 8.35 (non-configurable - vs 8.5 in
pom.xml). As a result, running inside Eclipse has the error (with any checkstyle >=
8.19): TreeWalker has no cacheFile property.
This checkstyle config was updated in wildfly-config-checkstyle 1.0.8.Final to be >=
8.19 compatible.
Summary:
* pom.xml works in maven CLI
* Importing into Eclipse does not work cleanly, due to error messages from newer
checkstyle 8.35 and wildfly-checkstyle-config 1.0.7.Final
Forcing command line to use 1.0.7.Final + checkstyle 8.35 to reproduce the Ecipse error:
{code:java}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-checkstyle-plugin:3.1.1:checkstyle (default-cli) on project
helloworld: An error has occurred in Checkstyle report generation.: Failed during
checkstyle configuration: cannot initialize module TreeWalker - Property
'cacheFile' does not exist, please check the documentation -> [Help 1]
{code}
Update parent pom to use 1.0.8.Final gives a clean goal:
{code:java}
mvn clean checkstyle:checkstyle
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< org.wildfly.quickstarts:helloworld >-----------------
[INFO] Building Quickstart: helloworld 20.0.1.Final
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ helloworld ---
[INFO] Deleting /btrfs/richard.tmp/Projects.2020/Eclipse/quickstart/helloworld/target
[INFO]
[INFO] --- maven-checkstyle-plugin:3.1.1:checkstyle (default-cli) @ helloworld ---
[INFO] Starting audit...
Audit done.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.529 s
[INFO] Finished at: 2020-09-26T10:11:57+08:00
[INFO] ------------------------------------------------------------------------
{code}
was:
Eclipse m2e mapping for checkstyle uses version 8.35 (non-configurable - vs 8.5 in
pom.xml). As a result, running inside Eclipse has the error (with any checkstyle >=
8.19): TreeWalker has no cacheFile property.
This checkstyle config was updated in wildfly-config-checkstyle 1.0.8.Final to be >=
8.19 compatible.
Summary:
* pom.xml works in maven CLI
* Importing into Eclipse does not work cleanly, due to error messages from newer
checkstyle 8.35 and wildfly-checkstyle-config 1.0.7.Final
Forcing command line to use 1.0.7.Final + checkstyle 8.35 to reproduce the Ecipse error:
{code:java}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-checkstyle-plugin:3.1.1:checkstyle (default-cli) on project
helloworld: An error has occurred in Checkstyle report generation.: Failed during
checkstyle configuration: cannot initialize module TreeWalker - Property
'cacheFile' does not exist, please check the documentation -> [Help 1]
{code}
quickstart - wildfly-checkstyle-config update to 1.0.8.Final
------------------------------------------------------------
Key: WFLY-13908
URL:
https://issues.redhat.com/browse/WFLY-13908
Project: WildFly
Issue Type: Bug
Components: Quickstarts
Affects Versions: 21.0.0.Beta1
Reporter: Richard Chan
Assignee: Eduardo Martins
Priority: Trivial
Eclipse m2e mapping for checkstyle uses version 8.35 (non-configurable - vs 8.5 in
pom.xml). As a result, running inside Eclipse has the error (with any checkstyle >=
8.19): TreeWalker has no cacheFile property.
This checkstyle config was updated in wildfly-config-checkstyle 1.0.8.Final to be >=
8.19 compatible.
Summary:
* pom.xml works in maven CLI
* Importing into Eclipse does not work cleanly, due to error messages from newer
checkstyle 8.35 and wildfly-checkstyle-config 1.0.7.Final
Forcing command line to use 1.0.7.Final + checkstyle 8.35 to reproduce the Ecipse error:
{code:java}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-checkstyle-plugin:3.1.1:checkstyle (default-cli) on project
helloworld: An error has occurred in Checkstyle report generation.: Failed during
checkstyle configuration: cannot initialize module TreeWalker - Property
'cacheFile' does not exist, please check the documentation -> [Help 1]
{code}
Update parent pom to use 1.0.8.Final gives a clean goal:
{code:java}
mvn clean checkstyle:checkstyle
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< org.wildfly.quickstarts:helloworld >-----------------
[INFO] Building Quickstart: helloworld 20.0.1.Final
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ helloworld ---
[INFO] Deleting /btrfs/richard.tmp/Projects.2020/Eclipse/quickstart/helloworld/target
[INFO]
[INFO] --- maven-checkstyle-plugin:3.1.1:checkstyle (default-cli) @ helloworld ---
[INFO] Starting audit...
Audit done.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.529 s
[INFO] Finished at: 2020-09-26T10:11:57+08:00
[INFO] ------------------------------------------------------------------------
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)