You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Manfred Geiler (JIRA)" <ji...@codehaus.org> on 2007/05/22 15:25:58 UTC

[jira] Created: (MASSEMBLY-212) Assembly Descriptor Schemas (XSD) have wrong targetNamespace

Assembly Descriptor Schemas (XSD) have wrong targetNamespace
------------------------------------------------------------

                 Key: MASSEMBLY-212
                 URL: http://jira.codehaus.org/browse/MASSEMBLY-212
             Project: Maven 2.x Assembly Plugin
          Issue Type: Bug
    Affects Versions: 2.2-beta-1, 2.1, 2.2-beta-2, 2.2
            Reporter: Manfred Geiler
            Priority: Minor


There are two versions of Assembly XSDs on the website:
http://maven.apache.org/plugins/maven-assembly-plugin/

Both define a targetNamespace "http://maven.apache.org/POM/4.0.0" which is wrong because those XSDs define the Schema for the Assembly Descriptor and not the POM.

Proposed fix for assembly-1.0.0.xsd:
Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.0.0"

Proposed fix for assembly-1.1.0-SNAPSHOT.xsd:
Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.1.0"

Regards,
Manfred


-- 
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: (MASSEMBLY-212) Assembly Descriptor Schemas (XSD) have wrong targetNamespace

Posted by "Manfred Geiler (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_112215 ] 

Manfred Geiler commented on MASSEMBLY-212:
------------------------------------------

*PING*

Just searched, but have no idea, where those XSDs are located in the SVN repo.
If someone points me to them I can provide a patch.

Regards,
Manfred



> Assembly Descriptor Schemas (XSD) have wrong targetNamespace
> ------------------------------------------------------------
>
>                 Key: MASSEMBLY-212
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-212
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.2-beta-1, 2.2-beta-2, 2.2
>            Reporter: Manfred Geiler
>            Priority: Minor
>             Fix For: 2.2
>
>
> There are two versions of Assembly XSDs on the website:
> http://maven.apache.org/plugins/maven-assembly-plugin/
> Both define a targetNamespace "http://maven.apache.org/POM/4.0.0" which is wrong because those XSDs define the Schema for the Assembly Descriptor and not the POM.
> Proposed fix for assembly-1.0.0.xsd:
> Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.0.0"
> Proposed fix for assembly-1.1.0-SNAPSHOT.xsd:
> Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.1.0"
> Regards,
> Manfred

-- 
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: (MASSEMBLY-212) Assembly Descriptor Schemas (XSD) have wrong targetNamespace

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey updated MASSEMBLY-212:
---------------------------------

    Fix Version/s: 2.2

> Assembly Descriptor Schemas (XSD) have wrong targetNamespace
> ------------------------------------------------------------
>
>                 Key: MASSEMBLY-212
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-212
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.2-beta-1, 2.2-beta-2, 2.2
>            Reporter: Manfred Geiler
>            Priority: Minor
>             Fix For: 2.2
>
>
> There are two versions of Assembly XSDs on the website:
> http://maven.apache.org/plugins/maven-assembly-plugin/
> Both define a targetNamespace "http://maven.apache.org/POM/4.0.0" which is wrong because those XSDs define the Schema for the Assembly Descriptor and not the POM.
> Proposed fix for assembly-1.0.0.xsd:
> Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.0.0"
> Proposed fix for assembly-1.1.0-SNAPSHOT.xsd:
> Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.1.0"
> Regards,
> Manfred

-- 
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: (MASSEMBLY-212) Assembly Descriptor Schemas (XSD) have wrong targetNamespace

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MASSEMBLY-212.
--------------------------------

    Resolution: Fixed

this is resolved for the 1.1.0 target namespace (for 2.2-beta-2), but needs a more permanent solution to support automatic filtering of the target version into the mdo files...

> Assembly Descriptor Schemas (XSD) have wrong targetNamespace
> ------------------------------------------------------------
>
>                 Key: MASSEMBLY-212
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-212
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>            Reporter: Manfred Geiler
>            Assignee: John Casey
>            Priority: Minor
>             Fix For: 2.2-beta-2
>
>
> There are two versions of Assembly XSDs on the website:
> http://maven.apache.org/plugins/maven-assembly-plugin/
> Both define a targetNamespace "http://maven.apache.org/POM/4.0.0" which is wrong because those XSDs define the Schema for the Assembly Descriptor and not the POM.
> Proposed fix for assembly-1.0.0.xsd:
> Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.0.0"
> Proposed fix for assembly-1.1.0-SNAPSHOT.xsd:
> Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.1.0"
> Regards,
> Manfred

-- 
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: (MASSEMBLY-212) Assembly Descriptor Schemas (XSD) have wrong targetNamespace

Posted by "Manfred Geiler (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_114766 ] 

Manfred Geiler commented on MASSEMBLY-212:
------------------------------------------

Hmm, no idea how modello generates the "targetNamespace".
Is it derived from the rootElement class definition?
Any modello expert here?
I would guess that the following "patch" could do the job:

    <class rootElement="true" xml.tagName="assembly">
      <name>Assembly</name>
      <description>
        <![CDATA[
        An assembly defines a collection of files usually distributed in an
        archive format such as zip, tar, or tar.gz that is generated from a
        project.  For example, a project could produce a ZIP assembly which
        contains a project's JAR artifact in the root directory, the
        runtime dependencies in a lib/ directory, and a shell script to launch
        a stand-alone application.
        ]]>
      </description>
-     <version>1.0.0+</version>
+     <version>1.1.0+</version>
      <fields>

But perhaps that could have the sideeffect that 1.0.0 assemblies could not longer be read?


> Assembly Descriptor Schemas (XSD) have wrong targetNamespace
> ------------------------------------------------------------
>
>                 Key: MASSEMBLY-212
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-212
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.2-beta-1, 2.2-beta-2, 2.2
>            Reporter: Manfred Geiler
>            Priority: Minor
>             Fix For: 2.2
>
>
> There are two versions of Assembly XSDs on the website:
> http://maven.apache.org/plugins/maven-assembly-plugin/
> Both define a targetNamespace "http://maven.apache.org/POM/4.0.0" which is wrong because those XSDs define the Schema for the Assembly Descriptor and not the POM.
> Proposed fix for assembly-1.0.0.xsd:
> Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.0.0"
> Proposed fix for assembly-1.1.0-SNAPSHOT.xsd:
> Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.1.0"
> Regards,
> Manfred

-- 
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: (MASSEMBLY-212) Assembly Descriptor Schemas (XSD) have wrong targetNamespace

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_114725 ] 

Dennis Lundberg commented on MASSEMBLY-212:
-------------------------------------------

The xsd file is generated by Modello. The source file that is fed into Modello can be found here:
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-assembly-plugin/src/main/mdo/descriptor.mdo

> Assembly Descriptor Schemas (XSD) have wrong targetNamespace
> ------------------------------------------------------------
>
>                 Key: MASSEMBLY-212
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-212
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.2-beta-1, 2.2-beta-2, 2.2
>            Reporter: Manfred Geiler
>            Priority: Minor
>             Fix For: 2.2
>
>
> There are two versions of Assembly XSDs on the website:
> http://maven.apache.org/plugins/maven-assembly-plugin/
> Both define a targetNamespace "http://maven.apache.org/POM/4.0.0" which is wrong because those XSDs define the Schema for the Assembly Descriptor and not the POM.
> Proposed fix for assembly-1.0.0.xsd:
> Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.0.0"
> Proposed fix for assembly-1.1.0-SNAPSHOT.xsd:
> Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.1.0"
> Regards,
> Manfred

-- 
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: (MASSEMBLY-212) Assembly Descriptor Schemas (XSD) have wrong targetNamespace

Posted by "Olve Sæther Hansen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=152452#action_152452 ] 

Olve Sæther Hansen commented on MASSEMBLY-212:
----------------------------------------------

I just ran into this problem, and I cant see that this is fixed for the 1.1.0.. 
http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd (as in the actual URL) still points to 

{{targetNamespace="http://maven.apache.org/POM/4.0.0" xmlns="http://maven.apache.org/POM/4.0.0"}}

Will it be fixed only in the final release, and not in the snapshot? 

> Assembly Descriptor Schemas (XSD) have wrong targetNamespace
> ------------------------------------------------------------
>
>                 Key: MASSEMBLY-212
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-212
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>            Reporter: Manfred Geiler
>            Assignee: John Casey
>            Priority: Minor
>             Fix For: 2.2-beta-2
>
>
> There are two versions of Assembly XSDs on the website:
> http://maven.apache.org/plugins/maven-assembly-plugin/
> Both define a targetNamespace "http://maven.apache.org/POM/4.0.0" which is wrong because those XSDs define the Schema for the Assembly Descriptor and not the POM.
> Proposed fix for assembly-1.0.0.xsd:
> Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.0.0"
> Proposed fix for assembly-1.1.0-SNAPSHOT.xsd:
> Change targetNamespace and xmlns to something like "http://maven.apache.org/Assembly/1.1.0"
> Regards,
> Manfred

-- 
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