You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Benoit Decherf <de...@yahoo-inc.com> on 2008/03/05 16:31:03 UTC

URLs in artifact page

Hi,

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 ?

Benoit

Re: URLs in artifact page

Posted by Benoit Decherf <de...@yahoo-inc.com>.
done : http://jira.codehaus.org/browse/MRM-731

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 ?

Benoit

Brett Porter wrote:
> Since that's something Maven does - Archiva should be doing it too. If
> not, that can be considered a bug and filed in JIRA.
>
> - Brett
>
> On 06/03/2008, Benoit Decherf <de...@yahoo-inc.com> wrote:
>   
>> Hi,
>>
>>  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 ?
>>
>>
>>  Benoit
>>
>>     
>
>
>   


Re: URLs in artifact page

Posted by Brett Porter <br...@gmail.com>.
Since that's something Maven does - Archiva should be doing it too. If
not, that can be considered a bug and filed in JIRA.

- Brett

On 06/03/2008, Benoit Decherf <de...@yahoo-inc.com> wrote:
> Hi,
>
>  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 ?
>
>
>  Benoit
>


-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/