A couple of questions:

1) Why don't you specify
https://www.soa-knowledge.net/projects/<https://www.soa-knowledge.net/projects/$%7BurlGroup%7D/$%7BurlId%7D/$%7Bproje>as
a property?
2) Why did you redefine the groupId and artifact id?

I think (unfortunately) that the groupId and artifact id are resolved to the
pom where they are declared.  You may have to re-define it in all the
sub-projects (which was your original question).

It could be something like:
<url>${serverUrl}${project.groupId}/${project.artifactId}/${project.version
}/${project.artifactId}</url>

:-/

On 12/5/07, Andreas Gies <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
>
>
> i am managing multiple projects form y company using maven 2.0.7. For
> that purpose I have created a master pom, that contains the following
> section: (Pom A)
>
>
>
> ...
>
>   <modelVersion>4.0.0</modelVersion>
>
>   <groupId>com.sonicsw.pso</groupId>
>
>   <artifactId>sonic-maven-parent</artifactId>
>
>   <version>1.0</version>
>
>   <packaging>pom</packaging>
>
>   <name>Maven Definitions for all Sonic PSO projects</name>
>
>
> <url>https://www.soa-knowledge.net/projects/${urlGroup}/${urlId}/${proje
> ct.version}/${urlId}</url>
>
>
>
>   <properties>
>
>     <urlGroup>${project.groupId}</urlGroup>
>
>     <urlId>${project.artifactId}</urlId>
>
>   </properties>
>
> ...
>
>
>
>
>
> >From that I have inherited another pom (POM B), that does not specify
> anything for an URL and serves as a base for a part of my projects. That
> pom has the following coordinates:
>
>
>
> ...
>
>   <modelVersion>4.0.0</modelVersion>
>
>   <groupId>com.sonicsw.pso</groupId>
>
>   <artifactId>services-maven-parent</artifactId>
>
>   <version>1.0</version>
>
>   <packaging>pom</packaging>
>
>   <name>Maven Definitions for all Sonic ESB Services</name>
>
>
>
>   <parent>
>
>     <groupId>com.sonicsw.pso</groupId>
>
>     <artifactId>sonic-maven-parent</artifactId>
>
>     <version>1.0</version>
>
>   </parent>
>
> ...
>
>
>
> My project now inherits from POM B, which in turn inherits from POM A.
>
>
>
>      <parent>
>
>        <groupId>com.sonicsw.pso</groupId>
>
>        <artifactId>services-maven-parent</artifactId>
>
>        <version>1.0</version>
>
>      </parent>
>
>
>
>      <groupId>com.sonicsw.pso.services</groupId>
>
>      <artifactId>WSMQService</artifactId>
>
>      <packaging>jar</packaging>
>
>      <version>1.0-SNAPSHOT</version>
>
>      <name>Websphere MQ connectivity services</name>
>
>
>
> My problem is now in the definition of URLS (for automatically
> generating web urls, scm urls, ftp urls etc...)
>
>
>
> When I define no url in my project, the generated url is:
>
>
>
> https://www.soa-knowledge.net/projects/com.sonicsw.pso.services/WSMQServ
> ice/1.0-SNAPSHOT/WSMQService/services-maven-parent/WSMQService
>
>
>
> However, if I add the url definition into my project
>
>
>
>      <parent>
>
>        <groupId>com.sonicsw.pso</groupId>
>
>        <artifactId>services-maven-parent</artifactId>
>
>        <version>1.0</version>
>
>      </parent>
>
>
>
>      <groupId>com.sonicsw.pso.services</groupId>
>
>      <artifactId>WSMQService</artifactId>
>
>      <packaging>jar</packaging>
>
>      <version>1.0-SNAPSHOT</version>
>
>      <name>Websphere MQ connectivity services</name>
>
>
> <url>https://www.soa-knowledge.net/projects/${urlGroup}/${urlId}/${proje
> ct.version}/${urlId}</url>
>
>
>
> the url is
>
>
>
> https://www.soa-knowledge.net/projects/com.sonicsw.pso.services/WSMQServ
> ice/1.0-SNAPSHOT/WSMQService
>
>
>
> which is what I intended.
>
>
>
>
>
> I would like to avoid repeating the URL definitions in each sub project
> since this is what I had created the masters for in the first place.
>
> Could somebody explain the behaviour here ? - Can the append be avoided
> ?
>
>
>
>
>
> Thank you very much in advance
>
>
>
> Andreas
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to