Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-811

Resource Plugin overwrites default excludes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-1
    • 2.0-beta-1
    • None
    • None

    Description

      As soon as you use excludes in your resources, the default excludes are overwritten. So you have to add them all "by hand" in your pom.
      I think this is due to a wrong call order in the resource plugin:
      DirectoryScanner scanner = new DirectoryScanner();
      scanner.addDefaultExcludes();
      ...
      if (excludes)
      scanner.setExcludes(...) <!-- This overwrites the defaults -->

      Moving scanner.addDefaultExcludes() at the end of this code block solves the problem.
      Of course in this case you don't have a change to not use the default excludes

      Attachments

        Activity

          People

            brett Brett Porter
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: