You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Benoit Decherf (JIRA)" <ji...@codehaus.org> on 2008/03/06 09:37:31 UTC

[jira] Created: (MRM-731) variable in url pom are not replaced.

variable in url pom are not replaced.
-------------------------------------

                 Key: MRM-731
                 URL: http://jira.codehaus.org/browse/MRM-731
             Project: Archiva
          Issue Type: Bug
            Reporter: Benoit Decherf


In my pom, the url of the project is :
  <url>http://<server>/docs/${project.groupId}/${project.artifactId}/${project.version}</url>

So I expect that archiva replace the ${} variables of this URL, but it
doesn't  :( .


-- 
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-731) variable in url pom are not replaced.

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126320 ] 

Wendy Smoak commented on MRM-731:
---------------------------------

Quoting from related thread:  http://www.nabble.com/URLs-in-artifact-page-td15852639.html

Benoit wrote:
> I have a little problem with artifact page in archiva:
> In my pom, the url of the project is :
>  
> <url>http://mavenrepo.dev.kelkoo.net/docs/${project.groupId}/${project.artifactId}/${project.version}</url>
> 
> So I expect that archiva replace the ${} variables of this URL, but it doesn't :(.
> is there a way to correct this ? Or should I set the complete URL in all my poms ? 

... and later:

> I check the archiva code. The problem is in the class:
> ./archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/project/readers/ProjectModel300Reader.java
> Why don't you use the MavenXpp3Reader class to parse the pom ?


> variable in url pom are not replaced.
> -------------------------------------
>
>                 Key: MRM-731
>                 URL: http://jira.codehaus.org/browse/MRM-731
>             Project: Archiva
>          Issue Type: Bug
>            Reporter: Benoit Decherf
>
> In my pom, the url of the project is :
>   <url>http://<server>/docs/${project.groupId}/${project.artifactId}/${project.version}</url>
> So I expect that archiva replace the ${} variables of this URL, but it
> doesn't  :( .

-- 
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] Reopened: (MRM-731) variable in url pom are not replaced.

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

Benoit Decherf reopened MRM-731:
--------------------------------


Ok, It now works for variable in pom, but it still fails to replace variable that are defined in the parent pom. 

> variable in url pom are not replaced.
> -------------------------------------
>
>                 Key: MRM-731
>                 URL: http://jira.codehaus.org/browse/MRM-731
>             Project: Archiva
>          Issue Type: Bug
>            Reporter: Benoit Decherf
>            Assignee: Joakim Erdfelt
>             Fix For: 1.0.x
>
>
> In my pom, the url of the project is :
>   <url>http://<server>/docs/${project.groupId}/${project.artifactId}/${project.version}</url>
> So I expect that archiva replace the ${} variables of this URL, but it
> doesn't  :( .

-- 
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-731) variable in url pom are not replaced.

Posted by "Joakim Erdfelt (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126363 ] 

Joakim Erdfelt commented on MRM-731:
------------------------------------

Which url line in the pom is that specified in?

We have a TestCase setup for expression evaluation (as a result of MRM-487 and MRM-488), I'd like to use your pom.xml to further the testing.

See the following test case.
http://svn.apache.org/viewvc/maven/archiva/branches/archiva-1.0.x/archiva-base/archiva-repository-layer/src/test/java/org/apache/maven/archiva/repository/project/filters/ProjectModelExpressionExpanderTest.java?view=markup

{code}
/**
 * [MRM-487] pom version is not resolved
 * [MRM-488] properties in pom are not resolved (at least while browsing)
 * 
 * This is to ensure that any expression within the pom is evaluated properly.
 */
public void testExpressionHell()
{code}

> variable in url pom are not replaced.
> -------------------------------------
>
>                 Key: MRM-731
>                 URL: http://jira.codehaus.org/browse/MRM-731
>             Project: Archiva
>          Issue Type: Bug
>            Reporter: Benoit Decherf
>
> In my pom, the url of the project is :
>   <url>http://<server>/docs/${project.groupId}/${project.artifactId}/${project.version}</url>
> So I expect that archiva replace the ${} variables of this URL, but it
> doesn't  :( .

-- 
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-731) variable in url pom are not replaced.

Posted by "Joakim Erdfelt (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126317 ] 

Joakim Erdfelt commented on MRM-731:
------------------------------------

Where do you see this lack of expression evaluation?

Apparently the ProjectModelExpressionFilter isn't being applied somewhere.

> variable in url pom are not replaced.
> -------------------------------------
>
>                 Key: MRM-731
>                 URL: http://jira.codehaus.org/browse/MRM-731
>             Project: Archiva
>          Issue Type: Bug
>            Reporter: Benoit Decherf
>
> In my pom, the url of the project is :
>   <url>http://<server>/docs/${project.groupId}/${project.artifactId}/${project.version}</url>
> So I expect that archiva replace the ${} variables of this URL, but it
> doesn't  :( .

-- 
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-731) variable in url pom are not replaced.

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

Joakim Erdfelt reassigned MRM-731:
----------------------------------

    Assignee: Joakim Erdfelt

> variable in url pom are not replaced.
> -------------------------------------
>
>                 Key: MRM-731
>                 URL: http://jira.codehaus.org/browse/MRM-731
>             Project: Archiva
>          Issue Type: Bug
>            Reporter: Benoit Decherf
>            Assignee: Joakim Erdfelt
>
> In my pom, the url of the project is :
>   <url>http://<server>/docs/${project.groupId}/${project.artifactId}/${project.version}</url>
> So I expect that archiva replace the ${} variables of this URL, but it
> doesn't  :( .

-- 
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-731) variable in url pom are not replaced.

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

Joakim Erdfelt reassigned MRM-731:
----------------------------------

    Assignee:     (was: Joakim Erdfelt)

> variable in url pom are not replaced.
> -------------------------------------
>
>                 Key: MRM-731
>                 URL: http://jira.codehaus.org/browse/MRM-731
>             Project: Archiva
>          Issue Type: Bug
>            Reporter: Benoit Decherf
>             Fix For: 1.0.x
>
>
> In my pom, the url of the project is :
>   <url>http://<server>/docs/${project.groupId}/${project.artifactId}/${project.version}</url>
> So I expect that archiva replace the ${} variables of this URL, but it
> doesn't  :( .

-- 
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-731) variable in url pom are not replaced.

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

Joakim Erdfelt closed MRM-731.
------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.x

Fix committed in Archiva-1.0.x branch revision 634361.

> variable in url pom are not replaced.
> -------------------------------------
>
>                 Key: MRM-731
>                 URL: http://jira.codehaus.org/browse/MRM-731
>             Project: Archiva
>          Issue Type: Bug
>            Reporter: Benoit Decherf
>            Assignee: Joakim Erdfelt
>             Fix For: 1.0.x
>
>
> In my pom, the url of the project is :
>   <url>http://<server>/docs/${project.groupId}/${project.artifactId}/${project.version}</url>
> So I expect that archiva replace the ${} variables of this URL, but it
> doesn't  :( .

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