Maven cannot pull jars in snap builds

Bug #1598193 reported by Evan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Colin Watson

Bug Description

I'm trying to build a snap of Jenkins (https://code.launchpad.net/~ev/jenkins-snap/master) but it's failing when Maven tries to pull the jars (`mvn dependency:resolve`) in snapcraft pull:

[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for http://repo.jenkins-ci.org/public/ via snap-proxy.launchpad.net:3128

[FATAL] Non-resolvable parent POM for org.jenkins-ci.main:pom:2.8: Could not transfer artifact org.jenkins-ci:jenkins:pom:1.36 from/to repo.jenkins-ci.org (http://repo.jenkins-ci.org/public/): Not authorized by proxy , ReasonPhrase:Proxy Authentication Required. and 'parent.relativePath' points at wrong local POM @ line 28, column 11

The full logs are here:
https://launchpadlibrarian.net/270062518/buildlog_snap_ubuntu_xenial_amd64_jenkins_BUILDING.txt.gz

I don't think this is snapcraft's fault. I tried fetching a jar using urllib inside snapcraft pull, which worked fine.

I asked foli to pull any 417 errors from the proxy logs:
https://pastebin.canonical.com/160015/

Revision history for this message
Evan (ev) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

This is in fact a snapcraft bug: its maven plugin is not handling the authenticated proxy case correctly. It's really not relevant whether urllib works when the maven plugin is explicitly decomposing the proxy URL and turning it into a maven configuration file.

affects: rutabaga → snapcraft
Changed in snapcraft:
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Colin Watson (cjwatson) wrote :
Changed in snapcraft:
status: New → Fix Committed
milestone: none → 2.13
importance: Undecided → Medium
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.