Uploaded image for project: 'Maven Remote Resources Plugin'
  1. Maven Remote Resources Plugin
  2. MRRESOURCES-61

processed resources are added to main and test resources

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.5
    • Labels:
      None
    • Environment:
      Windows 7

      Description

      When <attached> is set to true, Maven Remote Resources Plugin adds processed resources to both the main and test resources directories. I see no reason to add the resources to the test directory unless explicitly specified because the test classpath by default includes the main resources as well. The disadvantage to including the resources in both the main and test directories is that you end up with duplicate files on the class path which, for example, can make logback complain about multiple "logback.xml" files.

      The code in question is on lines 533-534 of ProcessRemoteResourcesMojo.java. If you need an example project I can make one.

        Attachments

        1. mrreserouces-61-project.zip
          5 kB
          David Tombs

          Issue Links

            Activity

              People

              • Assignee:
                dennisl@apache.org Dennis Lundberg
                Reporter:
                dgtombs David Tombs
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: