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

Unrecognised association "exclude" in pom parsing <resource><directory><excludes> in 2.0.10-RC10

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Not A Problem
    • Affects Version/s: 2.0.10
    • Fix Version/s: None
    • Component/s: POM
    • Labels:
      None
    • Environment:
      XP SP3, Java 1.5.0_12-b04, Maven 2.0.10-RC10 2/1/09.

      Description

      Fails in Maven 2.0.10-RC10, works in 2.0.8 and 2.0.9. pom.xml containing the following:
      <resources>
      <resource>
      <directory>src/java</directory>
      <excludes>
      <exclude>*/.java</exclude>
      </excludes>
      </resource>

      Fails with:
      org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. Reason: Unrecognised association: 'excludes' (position: START_TAG seen ...<excludes>\
      <excludes>... @138:31) for project unknown:andromda-metafacades-uml at C:\workspaces\A34\andromda34\metafacades\uml\pom.xml

      Caused by: org.apache.maven.project.InvalidProjectModelException: Parse error reading POM. Reason: Unrecognised association: 'excludes' (position: START_TAG seen ...<excludes>\r\n <excludes>... @138:31) for project unknown:andromda-metafacades-uml at C:\workspaces\A34\andromda34\metafacades\uml\pom.xml
      at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1591)

      Not sure if this is related to http://jira.codehaus.org/browse/MNG-3680

      pom.xml and mvn -X output from 2.0.9 and 2.0.10 attached. Pom file is from AndroMDA: http://team.andromda.org/docs/source-repository.html under directory metafacades\uml.

        Attachments

        1. 209Debug.log
          192 kB
        2. 210Debug.log
          4 kB
        3. pom.xml
          7 kB
        4. pom.xml
          25 kB

          Issue Links

            Activity

              People

              • Assignee:
                bentmann Benjamin Bentmann
                Reporter:
                bfields Bob Fields
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: