Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.0
-
Fix Version/s: None
-
Component/s: Maven 3
-
Labels:None
-
Environment:Windows 7
-
Number of attachments :
Description
We are using dependencyManagement with "import" scope like described here:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies
Problem occurs only at site generation, not at build time, where it works perfectly.
The site plugin tries to find the imported artifacts, but searches only the central repository and ignores the repositories in settings.xml configuration. Mirror settings work, if "central" is mirrored, but dependencies need to be resolved from two repositories, so one mirror does not help here.
I try to attach the relevant parts of the stacktrace.
This problem also manifests itself for parent poms that don't exist in the build tree (i.e., not accessible via the relativePath) or in central (deployed to a repository other than central), as well as for build extensions that do not reside in central. It seems as if the maven-site-plugin ignores all repositories except central when resolving these.