Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Problems building Eclipse Platform from the R4_3_maintance branch

Hi David,

 

> Could it be -Dtycho.localArtifacts=ignore ?

 

This doesn’t seem to be enough on its own, I still get the “empty zip file” failure.

 

> What platform are you using? Linux is what I build on.

 

I’m building on RHEL5 (though the tools like Java and Maven, are not the default versions).

 

> I create my own "tmp" repo and local maven repo.

 

Are these the same repo each time or are they cleaned out in between builds?

 

I’m working with your script, trying to modify it in the minimum way required so that it will run on my systems, so far I have only had the same failure. I’m still waiting for a couple of builds to complete though so I can’t be sure it doesn’t contain the clue I’m looking for. I’ll get back to you in the morning.

 

I've attached an updated version of the building script I was using and my toolchain.xml. This version uses a temporary folder for the .m2/repository folder (so it should be clean before each build) and takes an argument for what to checkout and it fails with both R4_3 and R4_3_maintenance. The only thing that should need changing is some paths in the toolchains.xml file (or simply replace it with the one from your ~/.m2).

 

I think this script follows pretty closely the platform building instructions here

 

http://wiki.eclipse.org/Platform-releng/Platform_Build

 

Are you able to run this and see if it fails for you?

 

Thanks in advance if you are.

 

All the best

 

Phil

 

 

From: cbi-dev-bounces@xxxxxxxxxxx [mailto:cbi-dev-bounces@xxxxxxxxxxx] On Behalf Of David M Williams
Sent: 21 February 2014 3:41 AM
To: Common-build Developers discussion
Subject: Re: [cbi-dev] Problems building Eclipse Platform from the R4_3_maintance branch

 

I must admit, I've tried 3 or 4 times, and always works for me. The type of scripts I use I put in repo just so others can see them as examples ...  
http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/tree/scripts/dwExamples?h=david_williams/testbranch
in case they help someone see the "key differences".
Could it be -Dtycho.localArtifacts=ignore ?
Notice I "unset" a lot of variables and set minimal path to make sure nothing else is "influencing" the build.
I create my own "tmp" repo and local maven repo.
But I've tried R4_3_maintenance (twice), master, and the tag R4_3_1 and all built to completion.
What platform are you using? Linux is what I build on.
Hope the scripts gives you some ideas.
Good luck,






From:        Thanh Ha <thanh.ha@xxxxxxxxxxx>
To:        cbi-dev@xxxxxxxxxxx,
Date:        02/20/2014 02:28 PM
Subject:        Re: [cbi-dev] Problems building Eclipse Platform from the R4_3_maintance branch
Sent by:        cbi-dev-bounces@xxxxxxxxxxx





So it failed again with "org.eclipse.platform-feature" but then after
this failure the build succeeded for me.

Unfortunately I don't know what the problem is (maybe others on the
mailing list might know) but it seems if you keep rerunning the build
again without cleaning up eventually it'll succeed.


Thanh



On 19/02/14 11:24 PM, Thanh Ha wrote:
> Hi Phil,
>
> I was able to finally reproduce the issue after doing a fresh clone
> and clearing my ~/.m2/repository. Except in my case it failed on a
> different module than what you pasted. Below is the full error output
> of what I saw on my run. It looks like tycho-packaging-plugin tries to
> open a zip file and fails thus throwing the error.
>
> What I noticed is that for the module the build fails on the /target
> directory is always empty at this state so I suspect the reason the
> zip part fails is because it's trying to check an a zip file that
> doesn't exist assuming it's looking for the file that should be in
> /target.
>
> If I run "mvn clean verify -Pbree-libs" again (without cleaning
> anything up) after getting this error the build actually gets further
> and then failed on a different module but if I build again that module
> succeeds the next time. What I've noticed is it always failes on
> "feature" modules and I'm not sure why but seems pretty odd. It seems
> as if these modules just fail on first build but succeed on 2nd build
> of them.
>
> At the moment I've run into this failure twice for 2 seperate modules
> (o.e.equinox.p2.core-feature and org.eclipse.jdt-feature) and am
> rerunning a 3rd build now. I'll see how much further it gets, it's
> late for me now so I'll check up on the build tomorrow.
>
>
> Thanh
>
>
> [ERROR] Failed to execute goal
> org.eclipse.tycho:tycho-packaging-plugin:0.19.0:package-feature
> (default-package-feature) on project
> org.eclipse.equinox.p2.rcp.feature: Execution default-package-feature
> of goal
> org.eclipse.tycho:tycho-packaging-plugin:0.19.0:package-feature
> failed: Could not determine installation size: error in opening zip
> file -> [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.equinox.p2.rcp.feature: Execution default-package-feature
> of goal
> org.eclipse.tycho:tycho-packaging-plugin:0.19.0:package-feature
> failed: Could not determine installation size
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
> default-package-feature of goal
> org.eclipse.tycho:tycho-packaging-plugin:0.19.0:package-feature
> failed: Could not determine installation size
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         ... 19 more
> Caused by: java.lang.RuntimeException: Could not determine
> installation size
>         at
> org.eclipse.tycho.packaging.FeatureXmlTransformer.getInstallSize(FeatureXmlTransformer.java:130)
>         at
> org.eclipse.tycho.packaging.FeatureXmlTransformer$1.visitPlugin(FeatureXmlTransformer.java:77)
>         at
> org.eclipse.tycho.core.osgitools.AbstractArtifactDependencyWalker.traversePlugin(AbstractArtifactDependencyWalker.java:205)
>         at
> org.eclipse.tycho.core.osgitools.AbstractArtifactDependencyWalker.traverseFeature(AbstractArtifactDependencyWalker.java:85)
>         at
> org.eclipse.tycho.core.osgitools.AbstractArtifactDependencyWalker.traverseFeature(AbstractArtifactDependencyWalker.java:62)
>         at
> org.eclipse.tycho.packaging.FeatureXmlTransformer.transform(FeatureXmlTransformer.java:47)
>         at
> org.eclipse.tycho.packaging.PackageFeatureMojo.expandVersionQualifiers(PackageFeatureMojo.java:233)
>         at
> org.eclipse.tycho.packaging.PackageFeatureMojo.execute(PackageFeatureMojo.java:116)
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         ... 20 more
> Caused by: java.util.zip.ZipException: error in opening zip file
>         at java.util.zip.ZipFile.open(Native Method)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:215)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:145)
>         at java.util.jar.JarFile.<init>(JarFile.java:153)
>         at java.util.jar.JarFile.<init>(JarFile.java:117)
>         at
> org.eclipse.tycho.packaging.FeatureXmlTransformer.getInstallSize(FeatureXmlTransformer.java:116)
>         ... 28 more
>
> _______________________________________________
> cbi-dev mailing list
> cbi-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/cbi-dev
>

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

<toolchains>

  <toolchain>
    <type>jdk</type>
    <provides>
      <id>CDC-1.0/Foundation-1.0</id>
    </provides>
    <configuration>
      <jdkHome>/dev/shm/pmason/ee/CDC-1.0_Foundation-1.0</jdkHome>
    </configuration>
  </toolchain>
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>CDC-1.1/Foundation-1.1</id>
    </provides>
    <configuration>
      <jdkHome>/dev/shm/pmason/ee/CDC-1.1_Foundation-1.1</jdkHome>
    </configuration>
  </toolchain>


  <toolchain>
    <type>jdk</type>
    <provides>
      <id>OSGi/Minimum-1.0</id>
    </provides>
    <configuration>
      <jdkHome>/dev/shm/pmason/ee/OSGi_Minimum-1.0</jdkHome>
    </configuration>
  </toolchain>
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>OSGi/Minimum-1.1</id>
    </provides>
    <configuration>
      <jdkHome>/dev/shm/pmason/ee/OSGi_Minimum-1.1</jdkHome>
    </configuration>
  </toolchain>
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>OSGi/Minimum-1.2</id>
    </provides>
    <configuration>
      <jdkHome>/dev/shm/pmason/ee/OSGi_Minimum-1.2</jdkHome>
    </configuration>
  </toolchain>

  <toolchain>
    <type>jdk</type>
    <provides>
      <id>J2SE-1.4</id>
    </provides>
    <configuration>
      <jdkHome>/tools/oss/packages/x86_64-rhel3/java/j2sdk1.4.2_04/jre</jdkHome>
    </configuration>
  </toolchain>

  <!-- Start of old JRE defintions -->
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>J2SE-1.5</id>
    </provides>
    <configuration>
      <jdkHome>/tools/oss/packages/x86_64-rhel5/java/jdk1.5.0_22/jre</jdkHome>
    </configuration>
  </toolchain>
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>JavaSE-1.6</id>
    </provides>
    <configuration>
      <jdkHome>/tools/oss/packages/x86_64-rhel5/java/jdk1.6.0_21/jre</jdkHome>
    </configuration>
  </toolchain>
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>JavaSE-1.7</id>
    </provides>
    <configuration>
      <jdkHome>/tools/oss/packages/x86_64-rhel5/java/jdk1.7.0_13/jre</jdkHome>
    </configuration>
  </toolchain>
</toolchains>

Attachment: build.sh
Description: build.sh


Back to the top