Description of problem: Maven and wagon seems to have problems downloading a remote repository. My maven builds are failing on two independent projects. Version-Release number of selected component (if applicable): How reproducible: consistent Steps to Reproduce: git clone https://github.com/OpenGamma/OG-Platform.git cd OG-Platform mvn build fails with INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.opengamma.platform:og-platform:2.1.0 (/home/joe/git/OG-Platform/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not transfer artifact com.opengamma:corporate-parent:pom:1.1.4 from/to og-public (http://maven.opengamma.com/nexus/content/groups/public): Cannot access http://maven.opengamma.com/nexus/content/groups/public with type default using the available connector factories: BasicRepositoryConnectorFactory and 'parent.relativePath' points at no local POM @ line 8, column 11: Cannot access http://maven.opengamma.com/nexus/content/groups/public using the registered transporter factories: WagonTransporterFactory: java.util.NoSuchElementException [ERROR] role: org.apache.maven.wagon.Wagon [ERROR] roleHint: http [ERROR] -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. Full stack trace is attached. This also happens with iris http://www.usvao.org/science-tools-services/iris-sed-analysis-tool/ Reproducible: Steps to Reproduce:
Created attachment 4468 [details] maven stack trace
Keywords: (none) => TriagedAssignee: bugsquad => dmorganec
Also, the build works fine in Mageia 3. I'll try to track down the problem in M4, since this is blocking me from generating RPM's for several Java packages. Feel free to stop me if someone else is working this issue.
It looks like Maven on M4 is missing /usr/share/maven/lib/maven-wagon_http-lightweight.jar I'll do a local rpm build to see why.
I got it to work if I add http-lightweight to the list of packages to be packaged maven-wagon/file \ maven-wagon/http-shared \ + maven-wagon/http-lightweight \ maven-wagon/provider-api \ It's not longer blocking me locally, but I'll leave it to someone else to fix/check-in the change.
would be nice to know where you patch. Please provide a real patch
Created attachment 4504 [details] proposed fix for 11584 Fix to Maven
Patch added.
mark as fixed
Status: NEW => RESOLVEDResolution: (none) => FIXED