You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Steve (JIRA)" <ji...@codehaus.org> on 2008/10/23 18:03:19 UTC

[jira] Commented: (MRM-925) Access to maven-metadata.xml without "groupId" fails when accessed via a repository group

    [ http://jira.codehaus.org/browse/MRM-925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=151710#action_151710 ] 

Steve commented on MRM-925:
---------------------------

I am also facing this issue. If you are seeing the following error in your browser: 
"Adding text to an XML document must not be null" please vote for this issue!


> Access to maven-metadata.xml without "groupId" fails when accessed via a repository group
> -----------------------------------------------------------------------------------------
>
>                 Key: MRM-925
>                 URL: http://jira.codehaus.org/browse/MRM-925
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser, WebDAV interface
>    Affects Versions: 1.1.1
>            Reporter: Maik Ebert
>             Fix For: 1.2
>
>         Attachments: stacktrace.txt
>
>
> One of our repositories contains the following maven-metadata.xml
> {code}
> <metadata>
> <plugins>
> <plugin>
> <name>Maven CDM Plugin</name>
> <prefix>cdm</prefix>
> <artifactId>maven-cdm-plugin</artifactId>
> </plugin>
> <plugin>
> <name>Maven CDM Flex Plugin</name>
> <prefix>cdm-flex</prefix>
> <artifactId>maven-cdm-flex-plugin</artifactId>
> </plugin>
> </plugins>
> </metadata>
> {code}
> Notice that there is *no* "groupId" element.
> This file will be delivered correctly when it is requested via the URL /archiva/repository/continous-integration/com/icw/cdm/plugins/maven-metadata.xml from the containing repository "continous-integration".
> Now I tried to use the new feature of repository groups creating a new group named "overall" containing the repository "continous-integration" and others. None of the other repositories contains the above artifacts.
> When Maven or a request from a browser is done to the URL /archiva/repository/overall/com/icw/cdm/plugins/maven-metadata.xml the attached stack trace is shown in the browser.
> I searched the source code and at the location RepositoryMetadataWriter.java:77 the following code is executed:
> {code}
> root.addElement( "groupId" ).setText( metadata.getGroupId() );
> {code}
> This must fail, because the maven-metadata.xml does *not* contain a "groupId".
> How can I use the repository group feature with such a maven-metadata.xml file?

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