Maven Site Plugin
  1. Maven Site Plugin
  2. MSITE-250

Allow cleaning of the remote area or staging site

    Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When files have been removed, they are not removed from the remote deploy area or the staging site. A new goal to clean the staging or the final deploy area would be a nice addon to this plugin.

        Issue Links

          Activity

          Hide
          Anthony Whitford added a comment -

          My use case is that I deploy the site files to a file share: \\server\sites
          The sites are organized by project and version: \\server\sites\project\version

          The CI server will build the site, let's say for 1.0-SNAPSHOT: \\server\sites\project\1.0-SNAPSHOT
          Then, I will release this project, and I get a site for 1.0: \\server\sites\project\1.0

          My issue is that I am getting toxic waste buildup by not removing the old 1.0-SNAPSHOT directory.
          If I had a site:clean goal, I could build it into my release workflow.
          Better yet, the release plugin could leverage it and automatically purge the old snapshot files.

          Show
          Anthony Whitford added a comment - My use case is that I deploy the site files to a file share: \\server\sites The sites are organized by project and version: \\server\sites\project\version The CI server will build the site, let's say for 1.0-SNAPSHOT : \\server\sites\project\1.0-SNAPSHOT Then, I will release this project, and I get a site for 1.0 : \\server\sites\project\1.0 My issue is that I am getting toxic waste buildup by not removing the old 1.0-SNAPSHOT directory. If I had a site:clean goal, I could build it into my release workflow. Better yet, the release plugin could leverage it and automatically purge the old snapshot files.
          Hide
          Gordon McNair added a comment -

          Our use case is exactly the same as Anthony's. Getting the site plugin to clean up the remote site directory to prevent having to manually manage the remote disk usage would be a huge benefit for us.

          Show
          Gordon McNair added a comment - Our use case is exactly the same as Anthony's. Getting the site plugin to clean up the remote site directory to prevent having to manually manage the remote disk usage would be a huge benefit for us.

            People

            • Assignee:
              Unassigned
              Reporter:
              Wim Deblauwe
            • Votes:
              19 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

              • Created:
                Updated: