I wonder how to write pom dependancies to access maven 1 and 2 both.
Hope my objective is clear to you.
Joined: Jun 03, 2008
Firstly I need to look up my projects (xyz) server repository (which is bulit on maven 1). If not available, pull it from maven 2 central repository.
The link has the configuration for older repositories I see, but I am not sure on how to configue any kind of specific order of preference for repositries lookup; something like looking up in repo1 first and then repo2 like you mentioned.
It might be worth-while upgrading to a maven repository manager like Archiva or Nexus which can act as your local mirror for both Maven1 and Maven2 repos.
Joined: Aug 20, 2008
Finally i got to access maven 1 repository in maven 2 projects. The thing here is: we need to put group id and artifact id same since maven 1 is not having artifiact id. put the version number that you need to pull from. It creates poms structure to access maven 1.x repo (need to add repository as snapshot (true) and type = legacy.