You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Xander <xt...@ap400.nl> on 2007/03/20 10:46:22 UTC
Master -> Child POM
Hi everyone,
I created several projects with maven. To make some default company stuff
general, i created a master pom, which contains settings about repositories
and issue management and so on.
This system works great as long as i have the master pom in my local
repository (stored on my computer). When i clean my local repository the sub
project isn't able to find the master pom in my company's repository, even
when i add that company repository to my settings.xml file. Maven tries to
locate the Master pom only on my mirror of "central"-repository.
Any help would be appriciated.
- Xander
Attachments:
----------------------------------------------------------
master pom contains:
----------------------------------------------------------
<repositories>
<repository>
<id>AP400 Local</id>
<url>http://sv006.ap400.lan/maven-repos</url>
</repository>
</repositories>
----------------------------------------------------------
child pom contains:
----------------------------------------------------------
<parent>
<groupId>nl.ap400</groupId>
<artifactId>master</artifactId>
<version>1.0</version>
</parent>
----------------------------------------------------------
settings.xml contains:
----------------------------------------------------------
<mirrors>
<mirror>
<id>AP400 Internal</id>
<url>http://sv006.ap400.lan/maven-repos/</url>
</mirror>
<mirror>
<id>skynet.be</id>
<url>http://maven2.mirrors.skynet.be/pub/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
--
View this message in context: http://www.nabble.com/Master--%3E-Child-POM-tf3432285s177.html#a9568171
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Master -> Child POM
Posted by Xander <xt...@ap400.nl>.
Hi Thorsten,
that fixed my problem...
Greetz Xander
Thorsten Heit-3 wrote:
>
> Hi,
>
>> ----------------------------------------------------------
>> settings.xml contains:
>> ----------------------------------------------------------
>> <mirrors>
>> <mirror>
>> <id>AP400 Internal</id>
>> <url>http://sv006.ap400.lan/maven-repos/</url>
>> </mirror>
>
> If that's your local repository should should put that in a <repositories>
> section, not in <mirrors>:
>
> <profiles>
> <profile>
> <repositories>
> <repository>
> <id>AP400 Internal</id>
> <url>http://sv006.ap400.lan/maven-repos/</url>
> <snapshots>
> <enabled>{true or false, depending on your settings}</enabled>
> </snapshots>
> <releases>
> <enabled>{true or false, depending on your settings}</enabled>
> </releases>
> </repository>
> </repositories>
> ...
> </profile>
> </profiles>
>
>
> HTH
>
> Thorsten
>
--
View this message in context: http://www.nabble.com/Master--%3E-Child-POM-tf3432285s177.html#a9572171
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Master -> Child POM
Posted by Thorsten Heit <th...@gmx.de>.
Hi,
> ----------------------------------------------------------
> settings.xml contains:
> ----------------------------------------------------------
> <mirrors>
> <mirror>
> <id>AP400 Internal</id>
> <url>http://sv006.ap400.lan/maven-repos/</url>
> </mirror>
If that's your local repository should should put that in a <repositories> section, not in <mirrors>:
<profiles>
<profile>
<repositories>
<repository>
<id>AP400 Internal</id>
<url>http://sv006.ap400.lan/maven-repos/</url>
<snapshots>
<enabled>{true or false, depending on your settings}</enabled>
</snapshots>
<releases>
<enabled>{true or false, depending on your settings}</enabled>
</releases>
</repository>
</repositories>
...
</profile>
</profiles>
HTH
Thorsten
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org