Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.19.0 - Zip file is empty

Hi,

This is just an idea, but I hope it helps. From a quick look at package-feature mojo's source code [1], it appears that tycho is examinating a license feature jar using zip utilities. Furthermore, from the declaration of org.eclipse.e4.rcp feature [2], it seems that the license feature is called "org.eclipse.license". Can you double-check that it is available somewhere?

[1] https://github.com/eclipse/tycho/blob/master/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/PackageFeatureMojo.java
[2] https://github.com/eclipse/eclipse.platform.ui/blob/master/features/org.eclipse.e4.rcp/feature.xml

Kind regards,
Mikhail Kalkov

Eclipse Developer | Purple Scout AB | www.purplescout.com
Kyrkogatan 20-22, SE-41110 Gothenburg, Sweden


On Wed, Feb 26, 2014 at 5:14 PM, Phil Mason <phil.mason@xxxxxxxxxxxx> wrote:

Hi,

 

(I think this is a tycho problem, please point me elsewhere if I’m asking in the wrong place)

 

I’m trying to build the eclipse platform (following the instructions on http://wiki.eclipse.org/Platform-releng/Platform_Build fairly closely) and my build is failing with this message

 

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.19.0:package-feature (default-package-feature) on project org.eclipse.e4.rcp: Execution default-package-feature of goal org.eclipse.tycho:tycho-packaging-plugin:0.19.0:package-feature failed: Could not determine installation size: zip file is empty -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.19.0:package-feature (default-package-feature) on project org.eclipse.e4.rcp: Execution default-package-feature of goal org.eclipse.tycho:tycho-packaging-plugin:0.19.0:package-feature failed: Could not determine installation size

 

Running maven with -e and -X I can see that the last thing it does before the problem occurs is

 

[INFO] --- tycho-packaging-plugin:0.19.0:package-feature (default-package-feature) @ org.eclipse.e4.rcp ---

[DEBUG] Configuring mojo org.eclipse.tycho:tycho-packaging-plugin:0.19.0:package-feature from plugin realm ClassRealm[plugin>org.eclipse.tycho:tycho-packaging-plugin:0.19.0, parent: sun.misc.Launcher$AppClassLoader@2771f735]

[DEBUG] Configuring mojo 'org.eclipse.tycho:tycho-packaging-plugin:0.19.0:package-feature' with basic configurator -->

[DEBUG]   (s) addMavenDescriptor = false

[DEBUG]   (f) archive = org.apache.maven.archiver.MavenArchiveConfiguration@68fb4f1f

[DEBUG]   (f) basedir = /dev/shm/pmason/eclipse.platform.releng.aggregator/eclipse.platform.ui/features/org.eclipse.e4.rcp

[DEBUG]   (f) deployableFeature = false

[DEBUG]   (f) finalName = org.eclipse.e4.rcp-1.2.2-SNAPSHOT

[DEBUG]   (f) outputDirectory = /dev/shm/pmason/eclipse.platform.releng.aggregator/eclipse.platform.ui/features/org.eclipse.e4.rcp/target

[DEBUG]   (f) project = MavenProject: org.eclipse.e4.feature:org.eclipse.e4.rcp:1.2.2-SNAPSHOT @ /dev/shm/pmason/eclipse.platform.releng.aggregator/eclipse.platform.ui/features/org.eclipse.e4.rcp/pom.xml

[DEBUG]   (f) qualifier = v20140206-1358

[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@3a646783

[DEBUG]   (f) strictBinIncludes = false

[DEBUG]   (f) target = /dev/shm/pmason/eclipse.platform.releng.aggregator/eclipse.platform.ui/features/org.eclipse.e4.rcp/target/site

[DEBUG]   (f) useDefaultExcludes = true

[DEBUG] -- end configuration --

 

After which it reports

 

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.19.0:package-feature (default-package-feature) on project org.eclipse.e4.rcp: Execution default-package-feature of goal org.eclipse.tycho:tycho-packaging-plugin:0.19.0:package-feature failed: Could not determine installation size: zip file is empty -> [Help 1]

 

I’m trying to work out if the problem is that something hasn’t downloaded correctly (and therefore has zero size) or some part of the build has failed and hence the output has zero size.

 

Is there any way to make Tycho tell me what zip file has zero size? I couldn’t work it out from looking at the pom.xml mentioned in the trace above and the only other thing I can think of at present is to run the build with strace but that will produce a logfile that dwarfs the current 131MB log output

 

If anybody is able to offer any suggestions I’d be really grateful.

 

Thanks in advance

 

Phil

 


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top