aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven multiple repositories Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven multiple repositories" Watch "Maven multiple repositories" New topic
Author

Maven multiple repositories

Chris Nikitas
Greenhorn

Joined: Oct 30, 2013
Posts: 9
Hi all,

Quite confused with this one and can't get it to work.

In my settings.xml file I have set a repository using the <mirror> tag.

I want to add another two repositories.

I have tried the following (one at a time) without success and always with the error that it can't find the dependencies when performing a maven install.

- I have tried adding them to my pom file,

- I have tried to use additional <mirror> tags in settings.xml.

- I have tried to add the repositories within my <profile> in settings.xml

Any ideas on how to make it see the repositories?

Thanks,
Chris.
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 761
    
    9



- I have tried to add the repositories within my <profile> in settings.xml


Adding repositories to your pom should have worked. Maybe you have an error in your repository path?
Maybe your build is not able to connect to the repository you are trying to access?
Maybe you are not running the profile where you added the repositories? Have you tried adding them to no profile and installing with no profile selected?
Chris Nikitas
Greenhorn

Joined: Oct 30, 2013
Posts: 9
Let me try the pom again and let you know.

My entry in the settings.xml is the following:

<mirrors>
<mirror>
<id>Arepo</id>
<mirrorOf>*</mirrorOf>
<url>http://my.project.com:8481/mywebapp/arepo/</url>
</mirror>
</mirrors>

The error I am getting is the following:

[WARNING] The POM for com.my.project:myproject:jar:1 is missing, no dependency information available
 
 
subject: Maven multiple repositories
 
Similar Threads
command line maven
Many Maven repositories in pom.xml or settings.xml mirrors
Settings XML file changes
Change maven local repository in Sonatype plug for eclipse
Maven doesn't take localRepository setting