Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do you know the Maven profile for mvnrepository.com?

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?

like image 220
user786045 Avatar asked Jul 08 '11 14:07

user786045


People also ask

How do I find my Maven URL?

Maven local repository is located in your local system. It is created by the maven when you run any maven command. By default, maven local repository is %USER_HOME%/. m2 directory.

What is Mvnrepository com?

mvnrepository.com isn't a repository. It's a search engine. It might or might not tell you what repository it found stuff in if it's not central; since you didn't post an example, I can't help you read the output. Follow this answer to receive notifications.

Is Mvnrepository safe?

Downloading a jar from a Maven repository is not less safe than downloading a jar from another location. In other words, Maven repositories don't really introduce a problem, the problem is your dependency on an external library.

What is Maven user settings?

Maven provides a settings file, settings. xml, which allows us to specify which local and remote repositories it will use. We can also use it to store settings that we don't want in our source code, such as credentials.


2 Answers

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

like image 142
Tristan Avatar answered Sep 21 '22 01:09

Tristan


mvnrepository.com isn't a repository. It's a search engine. It might or might not tell you what repository it found stuff in if it's not central; since you didn't post an example, I can't help you read the output.

like image 40
bmargulies Avatar answered Sep 21 '22 01:09

bmargulies