This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch feat/WW-5864-struts-maven-plugin-watch in repository https://gitbox.apache.org/repos/asf/struts.git
commit d0570f0b5bcdc8fc04e723fb8ccacbe549209231 Author: Lukasz Lenart <[email protected]> AuthorDate: Sat Nov 14 09:15:23 2026 +0100 WW-5864 docs(tools): fix README version placeholder and warning notes Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --- tools/struts-maven-plugin/README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/struts-maven-plugin/README.md b/tools/struts-maven-plugin/README.md index 48ffb639a..e4c7e6184 100644 --- a/tools/struts-maven-plugin/README.md +++ b/tools/struts-maven-plugin/README.md @@ -10,7 +10,7 @@ those. Webapp files (JSP, FTL under `src/main/webapp`) are already served from s The application must have reloading on: `struts.devMode=true` (with the reload switches not explicitly `false`), or `struts.configuration.xml.reload=true` and `struts.i18n.reload=true`. An explicit `false` wins over `devMode`. The goal -logs a warning at startup when it can see the switches are off (best effort: it reads only `struts.xml` and +logs a warning at startup when it can see the switches are off, or when `struts.devMode` is not found at all (best effort: it reads only `struts.xml` and `struts.properties` in the output directory). Declare the plugin in the application's `pom.xml`; the `struts:` prefix resolves from there, no `pluginGroups` entry @@ -20,19 +20,21 @@ is needed. <plugin> <groupId>org.apache.struts</groupId> <artifactId>struts-maven-plugin</artifactId> - <version>${struts.version}</version> + <version>X.Y.Z</version> </plugin> ``` +`X.Y.Z` is the Struts version; the plugin is released together with Struts. + ## Running it Next to a server started in another terminal, the goal blocks until Ctrl+C: -``` +```sh mvn struts:watch -pl <module> ``` -Or bound to `process-resources` in the background, switched on from the command line, together with the Jetty plugin: +Or bound to `process-resources` in the background, switched on from the command line, together with the Jetty plugin. This `<execution>` goes inside the plugin declaration above: ```xml <execution> @@ -47,7 +49,7 @@ Or bound to `process-resources` in the background, switched on from the command </execution> ``` -``` +```sh mvn jetty:run -Dstruts.watch ```
