You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Marc L. Veary" <ma...@mlveary.demon.co.uk> on 2006/08/25 09:39:59 UTC

RE: [m2] copy of Central Repository

Hi.

We started using mvn deploy:deploy-file, but then realised that if we did a
full build on the box that hosts our internal repo - this would do the job -
and it does.

However, I would like to know if there is a better or 'proper' solution to
this.

Kind regards,
--
Marc

-----Original Message-----
From: Lakshman Srilakshmanan
[mailto:lakshman.srilakshmanan@tradingpost.com.au]
Sent: 25 August 2006 07:54
To: Maven Users List
Subject: [m2] copy of Central Repository


Hi All,

In maven 1.x I could execute maven once on a project and build my local
repository. I could then copy it on to my company's central server and
get all the developers to refer to this for updates.

When I needed a new plugin or dependency, I could run maven 1.x against
ibiblio and follow the above process.

The above strategy ensured that we had only the plugins & dependencies
we needed and not the whole central repository of 5G. I am not going
into the details of how I kept this up-to-date as it would side track
the main issue that I wish to discuss.


Now, in maven 2 I did the same process as described above. The build
started breaking, with errors such as -- plugin 'xxx' does not exist or
no valid version could be found --. 

Further investigation revealed this problem was due to two missing files
in my repository.
   a) maven-metadata.xml
   b) maven-metadata.xml.sha1

In my local repository these files are named as 
   a) maven-metadata-central.xml 
   b) maven-metadata-central.xml.sha1

so when I copied my local repository to my company's central repository
the above files caused the problem.

When I renamed the files as required, maven 2 was happy and everything
started to work again.


So my question is, is there a easier way of getting the required
components from maven central repository copied to my company's central
server without having to take a full copy ?

Well, an alternative is to create a script to traverse the repository
and rename the files as required.

I would much appreciate to hear from anyone who has solved this problem
or is there a tool/process that I have overlooked.

Thanks in advance 

Lakshman


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org