[ 
https://issues.apache.org/jira/browse/WW-5864?focusedWorklogId=1054730&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1054730
 ]

ASF GitHub Bot logged work on WW-5864:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Nov/26 09:07
            Start Date: 14/Nov/26 09:07
    Worklog Time Spent: 10m 
      Work Description: sonarqubecloud[bot] commented on PR #2143:
URL: https://github.com/apache/struts/pull/2143#issuecomment-6874974445

   ## [![Quality Gate 
Failed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-failed-20px.png
 'Quality Gate 
Failed')](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=2143) 
**Quality Gate failed**  
   Failed conditions  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/failed-16px.png
 '') [79.4% Coverage on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=2143&metric=new_coverage&view=list)
 (required ≥ 80%)  
     
   <!

Issue Time Tracking
-------------------

    Worklog Id:     (was: 1054730)
    Time Spent: 20m  (was: 10m)

> struts:watch Maven goal to push resource changes into target/classes during 
> development
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-5864
>                 URL: https://issues.apache.org/jira/browse/WW-5864
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Build Management
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Major
>             Fix For: 7.6.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> With {{struts.devMode=true}}, Struts reloads {{struts.xml}} and message 
> bundles when the files it loaded change. Under {{mvn jetty:run}} those files 
> are the copies in {{target/classes}}, and nothing updates them while the 
> server runs. Edits in {{src/main/resources}} therefore need a full server 
> restart, even though the framework's reload mechanism works.
> Add a {{struts-maven-plugin}} with a {{watch}} goal that runs alongside the 
> developer's server. It watches the module's resource directories and pushes 
> each changed file into the output directory, using the project's own 
> {{maven-resources-plugin}} filtering settings, so Struts' existing reload 
> picks it up on the next request.
> * Blocking mode ({{mvn struts:watch}}), plus a background mode bound to 
> {{process-resources}} that does nothing unless {{-Dstruts.watch}} is passed 
> ({{mvn jetty:run -Dstruts.watch}}).
> * Polling-based change detection (the JDK {{WatchService}} polls slowly on 
> macOS); deletes are mirrored.
> * Warns at startup when devMode or the reload switches are explicitly off.
> * Single module only. Run from a multi-module reactor, it fails fast and asks 
> for {{-pl <module>}}.
> * Out of scope: Java class reloading, webapp files, multi-module, Gradle, 
> Struts Boot.
> Design: 
> {{docs/superpowers/specs/2026-11-14-struts-maven-plugin-watch-design.md}}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to