Bug 11584

Summary: Maven fails when trying to download remote repository
Product: Mageia Reporter: Joseph Wang <joequant>
Component: RPM PackagesAssignee: D Morgan <dmorganec>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal Keywords: Triaged
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: maven-3.1.0-11.mga4.src.rpm CVE:
Status comment:
Attachments: maven stack trace
proposed fix for 11584

Description Joseph Wang 2013-11-02 14:12:00 CET
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:
Comment 1 Joseph Wang 2013-11-02 14:13:09 CET
Created attachment 4468 [details]
maven stack trace
Manuel Hiebel 2013-11-03 00:01:19 CET

Keywords: (none) => Triaged
Assignee: bugsquad => dmorganec

Comment 2 Joseph Wang 2013-11-03 16:13:12 CET
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.
Comment 3 Joseph Wang 2013-11-03 16:46:20 CET
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.
Comment 4 Joseph Wang 2013-11-03 19:22:29 CET
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.
Comment 5 D Morgan 2013-11-13 14:44:50 CET
would be nice to know where you patch.

Please provide a real patch
Comment 6 Joseph Wang 2013-11-13 15:00:16 CET
Created attachment 4504 [details]
proposed fix for 11584

Fix to Maven
Comment 7 Joseph Wang 2013-11-13 15:00:36 CET
Patch added.
Comment 8 Joseph Wang 2014-01-03 10:14:45 CET
mark as fixed

Status: NEW => RESOLVED
Resolution: (none) => FIXED