You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Arnaud Heritier (JIRA)" <ji...@codehaus.org> on 2009/03/11 18:53:12 UTC

[jira] Created: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
---------------------------------------------------------------------------------------

                 Key: MRM-1136
                 URL: http://jira.codehaus.org/browse/MRM-1136
             Project: Archiva
          Issue Type: Bug
          Components: remote proxy
    Affects Versions: 1.2-M1, 1.1.3, 1.1.1, 1.2-M2
         Environment: I have the problem in production (Linux + archiva 1.1.1)
I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
            Reporter: Arnaud Heritier
            Priority: Blocker
         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml

Use case : 
* I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
* In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
* When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
* But it creates an empty maven-metadata.xml
* Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.

I attach :
* A minimal project which uses a local archiva
* The achiva config file (be careful to deactivate/change the network proxy)
* maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170278#action_170278 ] 

Maria Odea Ching commented on MRM-1136:
---------------------------------------

This also happens even without a repository group configured.

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.2-M2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Odea Ching closed MRM-1136.
---------------------------------

    Resolution: Fixed

Fixed in trunk -r756559.

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.2-M2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arnaud Heritier updated MRM-1136:
---------------------------------

    Attachment: maven-metadata-codehaus-snapshots.xml

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Priority: Blocker
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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] Assigned: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Odea Ching reassigned MRM-1136:
-------------------------------------

    Assignee: Maria Odea Ching

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.2-M2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170369#action_170369 ] 

Maria Odea Ching commented on MRM-1136:
---------------------------------------

I've traced the problem to be at the XMLReader when the contents of the proxied metadata (maven-metadata-codehaus-snapshots.xml) is retrieved. The nodes are returning 'null' even if the xpath expression seems correct.

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.2-M2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170416#action_170416 ] 

Maria Odea Ching commented on MRM-1136:
---------------------------------------

It seems the following attributed of the <metadata> tag is what's causing the nodes not to be retrieved. When I removed them from the sample metadata file I was using in the test case, I was able to retrieve the child nodes with the correct values.

xsi:schemaLocation="http://maven.apache.org/METADATA/1.0.0 http://maven.apache.org/xsd/metadata-1.0.0.xsd" xmlns="http://maven.apache.org/METADATA/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.2-M2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170481#action_170481 ] 

Maria Odea Ching commented on MRM-1136:
---------------------------------------

Ok, thanks for all the input Arnaud :) 
As for the fix in -r756559, I first cleared out the namespaces in the document object before retrieving the child nodes of the metadata element.

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.2-M2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Odea Ching updated MRM-1136:
----------------------------------

    Fix Version/s:     (was: 1.2-M2)
                   1.2

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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] Issue Comment Edited: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170416#action_170416 ] 

Maria Odea Ching edited comment on MRM-1136 at 3/20/09 9:54 AM:
----------------------------------------------------------------

It seems that the following attributes of the <metadata> tag is what's causing the nodes not to be retrieved. When I removed them from the sample metadata file I was using in the test case, I was able to retrieve the child nodes with the correct values.

xsi:schemaLocation="http://maven.apache.org/METADATA/1.0.0 http://maven.apache.org/xsd/metadata-1.0.0.xsd" xmlns="http://maven.apache.org/METADATA/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      was (Author: oching):
    It seems the following attributed of the <metadata> tag is what's causing the nodes not to be retrieved. When I removed them from the sample metadata file I was using in the test case, I was able to retrieve the child nodes with the correct values.

xsi:schemaLocation="http://maven.apache.org/METADATA/1.0.0 http://maven.apache.org/xsd/metadata-1.0.0.xsd" xmlns="http://maven.apache.org/METADATA/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  
> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.2-M2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170544#action_170544 ] 

Maria Odea Ching commented on MRM-1136:
---------------------------------------

Yeah, I think we should. I've opened MRM-1152 to track it for 1.1.x

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

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

Brett Porter updated MRM-1136:
------------------------------

    Fix Version/s: 1.2-M2

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Priority: Blocker
>             Fix For: 1.2-M2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170516#action_170516 ] 

Arnaud Heritier commented on MRM-1136:
--------------------------------------

Do you think we could backport this change in 1.1.X ? All our 1.1.x will have this issue each time someone will deploy an artifact with maven 2.1 :-(

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.2-M2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170439#action_170439 ] 

Arnaud Heritier commented on MRM-1136:
--------------------------------------

I probably deployed this snapshot with maven 2.1.0. Brett is investigating why metadata have this schema now.
This could explains why it occurs with many archiva versions but that we didn't see this error before.

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.2-M2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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] Work started: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on MRM-1136 started by Maria Odea Ching.

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.2-M2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

-- 
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: (MRM-1136) Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=169061#action_169061 ] 

Arnaud Heritier commented on MRM-1136:
--------------------------------------

This morning I noticed that archiva has a maven-metadata.xml which is my yesterday's maven-metadata-codehaus-snapshots.xml
And my maven-metadata-codehaus-snapshots.xml is updated from the one in codehaus repo.
There's a problem of sync between the main maven-metadata.xml and the remote one (maven-metadata-codehaus-snapshots.xml)
I didn't have a look at the code but I think that the merge process isn't call after having update a remote copy...

> Archiva don't want to download a snapshot of a maven plugin (merged metadata are empty)
> ---------------------------------------------------------------------------------------
>
>                 Key: MRM-1136
>                 URL: http://jira.codehaus.org/browse/MRM-1136
>             Project: Archiva
>          Issue Type: Bug
>          Components: remote proxy
>    Affects Versions: 1.1.1, 1.1.3, 1.2-M1, 1.2-M2
>         Environment: I have the problem in production (Linux + archiva 1.1.1)
> I reproduced it on my laptop (XP with archiva 1.1.1, 1.1.3, 1.2-M1 and trunk)
>            Reporter: Arnaud Heritier
>            Priority: Blocker
>             Fix For: 1.2-M2
>
>         Attachments: archiva.xml, maven-metadata-codehaus-snapshots.xml, maven-metadata.xml, pom.xml
>
>
> Use case : 
> * I want to use idl-maven-plugin 1.1-SNPASHOt from codehaus
> * In archiva I have a group (snapshots) with behind a managed repository (snapshots-proxy) which proxify http://snapshots.repository.codehaus.org/
> * When I launch the build of the project, archiva download metadata for 1.1-SNAPSHOT from codehaus in maven-metadata-codehaus-snapshots.xml which is fine
> * But it creates an empty maven-metadata.xml
> * Maven receive this empty file and try to download 1.1-SNAPSHOT artifacts instead of the last timestamp.
> I attach :
> * A minimal project which uses a local archiva
> * The achiva config file (be careful to deactivate/change the network proxy)
> * maven-metadata-codehaus-snapshots.xml and maven-metadata.xml

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