You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bob Fields (JIRA)" <ji...@codehaus.org> on 2009/02/03 00:30:19 UTC

[jira] Created: (MNG-4019) Unrecognised association "exclude" in pom parsing in 2.0.10-RC10

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

                 Key: MNG-4019
                 URL: http://jira.codehaus.org/browse/MNG-4019
             Project: Maven 2
          Issue Type: Bug
          Components: POM
    Affects Versions: 2.0.10
         Environment: XP SP3, Java 1.5.0_12-b04, Maven 2.0.10-RC10 2/1/09.
            Reporter: Bob Fields
            Priority: Critical
         Attachments: 209Debug.log, 210Debug.log, pom.xml

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.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4019) Unrecognised association "exclude" in pom parsing in 2.0.10-RC10

Posted by "Bob Fields (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163619#action_163619 ] 

Bob Fields commented on MNG-4019:
---------------------------------

Oops, I meant to say 2.0.10-RC8, built on 2/1/09, downloaded from http://people.apache.org/~brianf/staging-repository2/org/apache/maven/apache-maven/2.0.10-RC8.

> Unrecognised association "exclude" in pom parsing <resource><directory><excludes> in 2.0.10-RC10
> ------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4019
>                 URL: http://jira.codehaus.org/browse/MNG-4019
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 2.0.10
>         Environment: XP SP3, Java 1.5.0_12-b04, Maven 2.0.10-RC10 2/1/09.
>            Reporter: Bob Fields
>            Priority: Critical
>         Attachments: 209Debug.log, 210Debug.log, pom.xml
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4019) Unrecognised association "exclude" in pom parsing in 2.0.10-RC10

Posted by "Bob Fields (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163748#action_163748 ] 

Bob Fields commented on MNG-4019:
---------------------------------

Thank you for pointing that out, I'll fix the file on AndroMDA. I guess it was just a simple mistake from the previous developers that I didn't notice. A warning in the previous maven version would have been nice, I guess it just ignored the configuration information it didn't understand.

This issue can be closed.

> Unrecognised association "exclude" in pom parsing <resource><directory><excludes> in 2.0.10-RC10
> ------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4019
>                 URL: http://jira.codehaus.org/browse/MNG-4019
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 2.0.10
>         Environment: XP SP3, Java 1.5.0_12-b04, Maven 2.0.10-RC10 2/1/09.
>            Reporter: Bob Fields
>            Priority: Critical
>         Attachments: 209Debug.log, 210Debug.log, pom.xml, pom.xml
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4019) Unrecognised association "exclude" in pom parsing in 2.0.10-RC10

Posted by "Bob Fields (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163714#action_163714 ] 

Bob Fields commented on MNG-4019:
---------------------------------

All I did was change 3.4-SNAPSHOT to 3.4.1-SNAPSHOT locally, in order to prevent my custom local extensions from being overwritten automatically by the AndroMDA 3.4-SNAPSHOT downloaded version. I would think you would see the same problem from the pom.xml downloaded from the web site, but I haven't tried yet, I can try it today.

Attached top level parent pom.xml.

> Unrecognised association "exclude" in pom parsing <resource><directory><excludes> in 2.0.10-RC10
> ------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4019
>                 URL: http://jira.codehaus.org/browse/MNG-4019
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 2.0.10
>         Environment: XP SP3, Java 1.5.0_12-b04, Maven 2.0.10-RC10 2/1/09.
>            Reporter: Bob Fields
>            Priority: Critical
>         Attachments: 209Debug.log, 210Debug.log, pom.xml, pom.xml
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-4019) Unrecognised association "exclude" in pom parsing in 2.0.10-RC10

Posted by "Bob Fields (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Fields updated MNG-4019:
----------------------------

    Attachment: pom.xml

> Unrecognised association "exclude" in pom parsing <resource><directory><excludes> in 2.0.10-RC10
> ------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4019
>                 URL: http://jira.codehaus.org/browse/MNG-4019
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 2.0.10
>         Environment: XP SP3, Java 1.5.0_12-b04, Maven 2.0.10-RC10 2/1/09.
>            Reporter: Bob Fields
>            Priority: Critical
>         Attachments: 209Debug.log, 210Debug.log, pom.xml, pom.xml
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4019) Unrecognised association "exclude" in pom parsing in 2.0.10-RC10

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163696#action_163696 ] 

Benjamin Bentmann commented on MNG-4019:
----------------------------------------

Bob, could you also attach the parent POM of the one you already provided, i.e. andromda-uml-metafacades:3.4.1-SNAPSHOT. In CVS, I only found [3.4-SNAPSHOT|http://andromda.cvs.sourceforge.net/viewvc/andromda/metafacades/uml/pom.xml?revision=1.7.2.10&view=markup&pathrev=V3_x_HEAD] which apparently isn't the same.

> Unrecognised association "exclude" in pom parsing <resource><directory><excludes> in 2.0.10-RC10
> ------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4019
>                 URL: http://jira.codehaus.org/browse/MNG-4019
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 2.0.10
>         Environment: XP SP3, Java 1.5.0_12-b04, Maven 2.0.10-RC10 2/1/09.
>            Reporter: Bob Fields
>            Priority: Critical
>         Attachments: 209Debug.log, 210Debug.log, pom.xml
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MNG-4019) Unrecognised association "exclude" in pom parsing in 2.0.10-RC10

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-4019.
-----------------------------

      Assignee: Benjamin Bentmann
    Resolution: Not A Bug

> Unrecognised association "exclude" in pom parsing <resource><directory><excludes> in 2.0.10-RC10
> ------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4019
>                 URL: http://jira.codehaus.org/browse/MNG-4019
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 2.0.10
>         Environment: XP SP3, Java 1.5.0_12-b04, Maven 2.0.10-RC10 2/1/09.
>            Reporter: Bob Fields
>            Assignee: Benjamin Bentmann
>            Priority: Critical
>         Attachments: 209Debug.log, 210Debug.log, pom.xml, pom.xml
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4019) Unrecognised association "exclude" in pom parsing in 2.0.10-RC10

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163718#action_163718 ] 

Benjamin Bentmann commented on MNG-4019:
----------------------------------------

>From the [immediate parent POM|http://andromda.cvs.sourceforge.net/viewvc/*checkout*/andromda/metafacades/uml/pom.xml?revision=1.7.2.10&content-type=text%2Fplain&pathrev=V3_x_HEAD] of the POM you provided first:
{code:xml}
<testResource>
  <directory>src/test/java</directory>
  <excludes>
    <excludes>**/*.java</excludes>  <!-- Note the plural here, it should however be <exclude> -->
  </excludes>
</testResource>
{code}
i.e. the POM is indeed invalid, cf. the [XSD|http://maven.apache.org/xsd/maven-4.0.0.xsd].

> Unrecognised association "exclude" in pom parsing <resource><directory><excludes> in 2.0.10-RC10
> ------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4019
>                 URL: http://jira.codehaus.org/browse/MNG-4019
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 2.0.10
>         Environment: XP SP3, Java 1.5.0_12-b04, Maven 2.0.10-RC10 2/1/09.
>            Reporter: Bob Fields
>            Priority: Critical
>         Attachments: 209Debug.log, 210Debug.log, pom.xml, pom.xml
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira