[ 
http://jira.codehaus.org/browse/MRM-687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brett Porter updated MRM-687:
-----------------------------

    Fix Version/s:     (was: 1.0.2)
                   1.0.x

> Project model cannot be added to database if it inherits groupId and/or 
> version from parent POM
> -----------------------------------------------------------------------------------------------
>
>                 Key: MRM-687
>                 URL: http://jira.codehaus.org/browse/MRM-687
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Linux Fedora Core 5 / Windows XP
> Java 5
>            Reporter: Dário Oliveros
>             Fix For: 1.0.x
>
>         Attachments: archiva-repository-layer.patch
>
>
> Adding to database a project model (B) that contains no groupId and/or 
> version, by assuming it inherits them from parent POM, causes an error if 
> another artifact (A) with same artifactId but different version had been 
> added previously.
> That's because the effect cache key on this particular case is always 
> _null:<artifactId>:null_ making the latter (B) fetch information, such as 
> version, from the former (A) during the artifact processing (please see 
> _processArchivaArtifact_ method from _ProjectModelToDatabaseConsumer_ class 
> for more information).
> Below is an example of this particular error:
> {quote}
> File redback-users-api-1.0-alpha-4.pom has an invalid project model 
> [groupId:org.codehaus.plexus.redback|artifactId:redback-users-api|version:1.0-alpha-3|packaging:null];
>  The model version [1.0-alpha-3] does not match the version portion of the 
> filename: 1.0-alpha-4
> {quote}
> This issue may be related to http://jira.codehaus.org/browse/MRM-608.

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


Reply via email to