Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven multiple repositories

 
Chris Nikitas
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



- 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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic