Generally people override central by utilizing settings.xml:

<settings>
<mirrors>
  <mirror>
    <id>mirror-maven-central</id>
    <mirrorOf>central</mirrorOf>
    <name>local corporate repo override for central</name>
    <url>url to your local corporate repo</url>
  </mirror>
</mirrors>
</settings>

Wayne

On 3/22/07, Aravindhan Damodharan <[EMAIL PROTECTED]> wrote:
Hi,

I'm using Maven 2.0.5 for dependency management in my Ant script. The
ant script is a generic script which can be used to build multiple
projects. And the projects share a lot of API's which we have planned to
manage using an internal central repository. So I created a Parent POM
file for all the dependency API's in the central repository and a child
POM for each project to be built. The Child POM will have only the
dependencies required for a particular project.

Now though I have Parent POM and a internal repository configured while
execution Maven tries to fetch certain missing pieces from the
http://repo1.maven.org/maven2/. I learnt that this repository is
configured in the Super POM and will be inherited by all the POM files.
I need to disable this feature so that Maven should only refer to the
internal repository. I tried to get information through internet but I
wasn't able to get it.

Some one if you know how to do this or if you see that I'm missing some
thing please advice.

Thanks in Advance,
- Aravinth.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to