You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Anders Kr. Andersen (JIRA)" <ji...@codehaus.org> on 2009/01/26 11:06:20 UTC

[jira] Commented: (MRM-686) 'Unable to find project model' when artifactId contains property placeholders e.g. ${project.parent.artifactId}

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

Anders Kr. Andersen commented on MRM-686:
-----------------------------------------

Unable to find project model for [ggg:aaa:vvv]

I see the problem when "Browse Repository"

The page will contain a red line with the text Unable to find project model for [ggg:aaa:vvv] 

I have studied that the pom.xml can be downloaded just fine, so it is "only" a browse problem.
"only" is in this case also important, because it is very time consuming to find out that the artifact really works..

In my case I have been maintaining with the <scm> <url> in my poms. Because the url will be ...aaa/trunk/ for SNAPSHOTS 
but it will be aaa/tags/aaa-vvv/ for releases.

Here I tried to make it ${project.artifactId}/tags/${project.artifactId}-${project.version}/ 
AND THIS GAVE THE ERROR ****

Therefore my conclusion is that the viewer has problems. 

I have tested all this in 1.1.2, but looking at the release notes it shown no work in this area for 1.1.3
I am going to install 1.1.3 a little later, then I can see if the problem remains.
And I can do a comment here.




> 'Unable to find project model' when artifactId contains property placeholders e.g. ${project.parent.artifactId}
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MRM-686
>                 URL: http://jira.codehaus.org/browse/MRM-686
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser
>    Affects Versions: 1.0
>            Reporter: Geert Pante
>             Fix For: 1.2
>
>
> We frequently use property placeholders in our poms to have generic POM templates,
> e.g.
> <project>
>          <parent>
> 		<groupId>be.javaserver.tst</groupId>
> 		<artifactId>eCommonOrderHandling</artifactId>
>     	        <version>2.8-SNAPSHOT</version>
> 	</parent>
>         <artifactId>${project.parent.artifactId}-module-sTst8128</artifactId>
> </project>
>    
> 283836 [SocketListener0-0] WARN  org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:update-db-project  - File eCommonOrderHandling-module-sTst8128-1.5-20080131.102935-1.pom has an invalid project model [groupId:be.javaserver.tst|artifactId:${project.parent.artifactId}-module-sTst8128|version:1.5
> -20080131.102935-1|packaging:jar]: The model artifactId [${project.parent.artifactId}-module-sTst8128] does not match the artifactId portion of the filename: 
> eCommonOrderHandling-module-sTst8128
> 284107 [SocketListener0-0] WARN  org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:update-db-project  - Invalid or corrupt pom. 
> Project model not added to database - be.javaserver.tst:${project.parent.artifactId}-module-sTst8128:1.5-20080131.102935-1

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