Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Another unexpected error

https://bugs.eclipse.org/bugs/show_bug.cgi?id=393686 

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Krzysztof Daniel
Sent: Mittwoch, 7. November 2012 08:36
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Another unexpected error

Hey Tycho masters,

My Fedora use case assumes that I generate a P2 repo which contains all
bundles packaged in Fedora and then run an *offline* CBI platform build
with this repo, ignoring versions.

This works very well except one case - tycho-eclipserun-plugin. The
documentation is not generated nor indexed, because of:

[INFO] Expected eclipse log
file: /home/kdaniel/workspace-fedora/eclipse/R4_platform-aggregator/eclipse.platform.common/bundles/org.eclipse.platform.doc.user/target/work/data/.metadata/.log
[INFO] Command line:
	/bin/sh -c
cd /home/kdaniel/workspace-fedora/eclipse/R4_platform-aggregator/eclipse.platform.common/bundles/org.eclipse.platform.doc.user && /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre/bin/java -Dhelp.lucene.tokenizer=standard -jar /home/kdaniel/workspace-fedora/eclipse/R4_platform-aggregator/rt.equinox.framework/bundles/org.eclipse.equinox.launcher -install /home/kdaniel/workspace-fedora/eclipse/R4_platform-aggregator/eclipse.platform.common/bundles/org.eclipse.platform.doc.user/target/work -configuration /home/kdaniel/workspace-fedora/eclipse/R4_platform-aggregator/eclipse.platform.common/bundles/org.eclipse.platform.doc.user/target/work/configuration -application org.eclipse.ant.core.antRunner -buildfile customBuildCallbacks.xml build.index
Error: Invalid or corrupt
jarfile /home/kdaniel/workspace-fedora/eclipse/R4_platform-aggregator/rt.equinox.framework/bundles/org.eclipse.equinox.launcher


The launcher jar file comes from the reactor. If I run a second build,
it uses the version stored in the .m2 repo and works fine, but Platform
builds are pretty expensive, so I'd like to stay with first run only...

Since the only change that we did to platform resolver was to ignore
remote dependencies and use a locally generated repo in a first line,
I can't explain how it is possible that eclipserun uses the reactor
version of the project.

On the other hand, the EclipseRunMojo has a method  private
EquinoxInstallation createEclipseInstallation(boolean
includeReactorProjects,
            List<ReactorProject> reactorProjects) throws
MojoExecutionException 
but the potentially relevant parameter includeReactorProjects is never
used (which looks like a bug).

What do you think?

-- 
Krzysztof Daniel <kdaniel@xxxxxxxxxx>
Red Hat

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


Back to the top