why build for trusty works fine but for precise not

Asked by Jeroen Baten

I try building the LibrePlan packages on launchpad. For ubunty trusty this works fine. Building my package for ubuntu precise fails with missing maven-site-plugin. That plugin is never in my pom and not even in my maven dependency tree. Anybody got an idea where this is coming from? Any and all help is greatly appreciated.

Question information

Language:
German Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
Daniel Edit question
Solved by:
Colin Watson
Solved:
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

Can you link to the failing builds, please?

Revision history for this message
Jeroen Baten (jbaten) said :
#2
Revision history for this message
Jeroen Baten (jbaten) said :
#3
Revision history for this message
Jeroen Baten (jbaten) said :
#4
Revision history for this message
Jeroen Baten (jbaten) said :
#5

The build log is filles with unknownhost exceptions. This seems to be a dns lookup issue on the build host.

" Caused by: java.net.UnknownHostException: gettext-commons.googlecode.com"

There seem to be some issues with libdns on ubuntu. Maybe they are related to this?

https://mail-archives.apache.org/mod_mbox/maven-users/201007.mbox/%<email address hidden>%3E

http://stackoverflow.com/questions/3145896/what-could-be-causing-error-transferring-file-in-maven

Can someone please attent to this? Thank you.

Revision history for this message
Best Colin Watson (cjwatson) said :
#6

You aren't allowed access to any external network resources on Launchpad hosts; this is by design and not a bug. For maven, the trick is always to build-depend on sufficient packaged versions of the relevant libraries that you don't need to go out to the network to get them.

I expect that the difference between precise and trusty is because one of the libraries you're build-depending on gained support for something you're relying on in trusty, while in precise maven finds that it's lacking something and so goes to the network. However, I have very little Java experience; all that Launchpad admins can do is tell you about the constraints in place, but you really need a Java packaging expert to help you track this down.

Revision history for this message
Jeroen Baten (jbaten) said :
#7

Thanks Colin Watson, that solved my question.