Skip to content

WW-5864 Add struts:watch Maven goal for resource hot reload under jetty:run - #2143

Draft
lukaszlenart wants to merge 22 commits into
mainfrom
feat/WW-5864-struts-maven-plugin-watch
Draft

lukaszlenart wants to merge 22 commits into
mainfrom
feat/WW-5864-struts-maven-plugin-watch

WW-5864 chore(tools): mark the Struts Maven Plugin as experimental

bdebab4
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 14, 2026 in 1m 8s

Quality Gate failed

Annotations

Check failure on line 136 in tools/struts-maven-plugin/src/test/java/org/apache/struts2/maven/watch/WatchMojoTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=apache_struts&issues=AaHZT86xMjp1Ei8xLkCb&open=AaHZT86xMjp1Ei8xLkCb&pullRequest=2143

Check warning on line 117 in tools/struts-maven-plugin/src/main/java/org/apache/struts2/maven/watch/ResourcesPluginSettings.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

The return type of this method should be an interface such as "Set" rather than the implementation "LinkedHashSet".

See more on https://sonarcloud.io/project/issues?id=apache_struts&issues=AaHZT864Mjp1Ei8xLkCg&open=AaHZT864Mjp1Ei8xLkCg&pullRequest=2143

Check failure on line 107 in tools/struts-maven-plugin/src/test/java/org/apache/struts2/maven/watch/WatchMojoTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=apache_struts&issues=AaHZT86xMjp1Ei8xLkCa&open=AaHZT86xMjp1Ei8xLkCa&pullRequest=2143

Check failure on line 230 in tools/struts-maven-plugin/src/test/java/org/apache/struts2/maven/watch/ResourceWatcherTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=apache_struts&issues=AaHZT847Mjp1Ei8xLkCZ&open=AaHZT847Mjp1Ei8xLkCZ&pullRequest=2143

Check warning on line 118 in tools/struts-maven-plugin/src/main/java/org/apache/struts2/maven/watch/WatchMojo.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch Exception instead of Error.

See more on https://sonarcloud.io/project/issues?id=apache_struts&issues=AaHZT860Mjp1Ei8xLkCd&open=AaHZT860Mjp1Ei8xLkCd&pullRequest=2143

Check warning on line 172 in tools/struts-maven-plugin/src/main/java/org/apache/struts2/maven/watch/WatchMojo.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch Exception instead of Throwable.

See more on https://sonarcloud.io/project/issues?id=apache_struts&issues=AaHZT860Mjp1Ei8xLkCe&open=AaHZT860Mjp1Ei8xLkCe&pullRequest=2143

Check warning on line 82 in tools/struts-maven-plugin/src/main/java/org/apache/struts2/maven/watch/WatchMojo.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=apache_struts&issues=AaHZT860Mjp1Ei8xLkCc&open=AaHZT860Mjp1Ei8xLkCc&pullRequest=2143

Check failure on line 66 in tools/struts-maven-plugin/src/main/java/org/apache/struts2/maven/watch/ResourceWatcher.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=apache_struts&issues=AaHZT863Mjp1Ei8xLkCf&open=AaHZT863Mjp1Ei8xLkCf&pullRequest=2143

Check failure on line 63 in tools/struts-maven-plugin/src/main/java/org/apache/struts2/maven/watch/ResourcesPluginSettings.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "false" 3 times.

See more on https://sonarcloud.io/project/issues?id=apache_struts&issues=AaHZT864Mjp1Ei8xLkCh&open=AaHZT864Mjp1Ei8xLkCh&pullRequest=2143