Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Maven plugins are not retrieved by Nexus 1.6

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any hint how to solve the following issue is welcome.
I use Maven 2.2.1 with Nexus 1.6.0 as an internal repository manager (configured for central repo as a proxy).
The local Maven settings.xml file contains a mirror config as follows:

Nexus has a Proxy repository configured for Maven central repo with the id "central" (Nexus default settings) and a repository group named "public" with "central" assigned.

Execution of the maven goal
>mvn site
causes an error while Maven is generating the site report:

...
[INFO] Error building POM (may not be this project's POM).

Project ID: org.apache.maven.plugins:maven-javadoc-plugin

Reason: Error getting POM for 'org.apache.maven.plugins:maven-javadoc-plugin' from the repository: Failed to resolve artifact, possibly due to a repository list that is not appropriately equipped for this artifact's metadata.
org.apache.maven.plugins:maven-javadoc-plugin:pom:2.8-SNAPSHOT

from the specified remote repositories:
nexus-local (http://localhost:8080/nexus/content/groups/public)

for project org.apache.maven.plugins:maven-javadoc-plugin


The download of the required dependencies is working as expected. Only the plugins are not retrieved from the internal repository. Any ideas?

 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you read the excellent free online guides for Nexus and Maven by Sonatype? I suspect you'll spot the answer in there (hint: I think it's to do with setting up the pluginRepository correctly)
 
Torsten Friebe
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Martijn Verburg wrote:Have you read the excellent free online guides for Nexus and Maven by Sonatype? I suspect you'll spot the answer in there (hint: I think it's to do with setting up the pluginRepository correctly)


Sure. And I found what I was looking for. In the Nexus reference book (http://www.sonatype.com/books/nexus-book/reference/), chap. 4.2 gives the answer.
Some more information about plugin Repositories is in the "Maven reference book" (http://www.sonatype.com/books/mvnref-book/reference/public-book.html), chap. 2.9.
Thanks.
 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great to hear!
 
Talk sense to a fool and he calls you foolish. -Euripides A foolish tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!