Master - Child POM

2007-03-20 Thread Xander

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
idAP400 Local/id
urlhttp://sv006.ap400.lan/maven-repos/url
/repository
/repositories
--
child pom contains:
--
parent
groupIdnl.ap400/groupId
artifactIdmaster/artifactId
version1.0/version
/parent

--
settings.xml contains:
--
mirrors
mirror
idAP400 Internal/id
urlhttp://sv006.ap400.lan/maven-repos//url
/mirror
mirror
idskynet.be/id
urlhttp://maven2.mirrors.skynet.be/pub/maven2/url
mirrorOfcentral/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Master - Child POM

2007-03-20 Thread Thorsten Heit
Hi,

 --
 settings.xml contains:
 --
   mirrors
   mirror
   idAP400 Internal/id
   urlhttp://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
idAP400 Internal/id
urlhttp://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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Master - Child POM

2007-03-20 Thread Xander

Hi Thorsten,

that fixed my problem...

Greetz Xander



Thorsten Heit-3 wrote:
 
 Hi,
 
 --
 settings.xml contains:
 --
  mirrors
  mirror
  idAP400 Internal/id
  urlhttp://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
 idAP400 Internal/id
 urlhttp://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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]