maven build fails due to networking problems

Bug #1265988 reported by Magosányi Árpád
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpad-buildd
Invalid
Undecided
Unassigned

Bug Description

My package builds with maven. It fails on launchpad buildd because name resolver problems.
repo.maven.apache.org: Name or service not known

Relevant parts of the log:
mvn -Pno-unit-tests install
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/org/eclipse/tycho/tycho-maven-plugin/0.19.0/tycho-maven-plugin-0.19.0.pom

[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.rulez.magwas.zenta:parent:2.4.0.qualifier (/build/buildd/zenta-2.4.0saucy25/pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.eclipse.tycho:tycho-maven-plugin:0.19.0 or one of its dependencies could not be resolved: Failed to collect dependencies for org.eclipse.tycho:tycho-maven-plugin:jar:0.19.0 (): Failed to read artifact descriptor for org.eclipse.tycho:tycho-maven-plugin:jar:0.19.0: Could not transfer artifact org.eclipse.tycho:tycho-maven-plugin:pom:0.19.0 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known: Unknown host repo.maven.apache.org: Name or service not known -> [Help 2]

full build log:
https://launchpadlibrarian.net/161491434/buildlog_ubuntu-saucy-amd64.zenta_2.4.0saucy25_FAILEDTOBUILD.txt.gz

Revision history for this message
William Grant (wgrant) wrote :

For security and reproducibility reasons, Launchpad builds have no access to the Internet. They can only depend on code in the Ubuntu primary archive and the PPA itself.

Changed in launchpad-buildd:
status: New → Invalid
Revision history for this message
Magosányi Árpád (mag-magwas) wrote :

Understood. But this answer without any further info excludes a whole class of software (java built with maven) from launchpad.
Please propose a way to build with maven in launchpad.

Changed in launchpad-buildd:
status: Invalid → New
Revision history for this message
William Grant (wgrant) wrote :

https://wiki.debian.org/Java/Packaging describes techniques for packaging Java applications. One would conventionally package the dependencies like any other piece of software, and then Build-Depend on them as with any non-Java software.

Changed in launchpad-buildd:
status: New → Invalid
Revision history for this message
Magosányi Árpád (mag-magwas) wrote :

thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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