Uploaded image for project: 'Maven WAR Plugin'
  1. Maven WAR Plugin
  2. MWAR-26

Do not overwrite target unless source is modified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • None
    • None

    Description

      I thought MWAR-8 had fixed my issue but it seems to still exist. Correct me if I'm wrong but doing incremental builds with this war plugin is not possible. All the web app sources get overwritten regardless if they have been modified or not. Incremental build were possible in Maven 1 because it was ANT based. This version uses plexus FileUtils which overwrites without regard to if the target file exists or older than the source. Besides the time issue, overwriting the web.xml each time makes my context reload since the context runs on tomcat from the target location. I think this is a reasonable configuration but if there is a better way, let me know. Building inplace wars is not an option as it dirties the source.

      If we are in agreement, I may be able to provide a patch.

      Attachments

        1. MWAR-26-maven-war-plugin.diff
          9 kB
          Ernesto S. Tolentino Jr.

        Activity

          People

            jtolentino Ernesto S. Tolentino Jr.
            dres1011 Andres March
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 8h 40m
                8h 40m