Do you know the Maven profile for mvnrepository.com?

user786045 picture user786045 · Jul 8, 2011 · Viewed 98.6k times · Source

I am trying to include some dependencies in my Maven project. These dependencies are not available in the default Maven 2 repository http://repo1.maven.org/maven2/.

They are available at http://mvnrepository.com/.

But I couldn't find the profile for this site to include in my settings.xml.

Does anyone know what this repository's URL and profile is?

Answer

Tristan picture Tristan · Jul 8, 2011

Once you've found your jar through mvnrepository.com, hover the "download (JAR)" link, and you'll see the link to the repository which contains your jar (you can probably Right clic and "Copy link URL" to get the URL, what ever your browser is).

Then, you have to add this repository to the repositories used by your project, in your pom.xml :

<project>
  ...
  <repositories>
    <repository>
      <id>my-alternate-repository</id>
      <url>http://myrepo.net/repo</url>
    </repository>
  </repositories>
  ...
</project>

EDIT : now MVNrepository.com has evolved : You can find the link to the repository in the "Repositories" section :

License

Categories

HomePage

Date

Files

Repositories