This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 411321 - build fails with unusual resolution errors
Summary: build fails with unusual resolution errors
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: 4.4 M1   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-20 18:00 EDT by David Williams CLA
Modified: 2013-08-07 14:59 EDT (History)
5 users (show)

See Also:


Attachments
end of log showing resolution errors (10.43 KB, text/plain)
2013-06-20 18:00 EDT, David Williams CLA
no flags Details
patch for jface (2.08 KB, patch)
2013-06-20 21:04 EDT, David Williams CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2013-06-20 18:00:49 EDT
Created attachment 232624 [details]
end of log showing resolution errors

I was trying a test build, and saw the build fail ... I don't think the failure was related to my tests ... but, lots has been changing ... JRE's, etc, so could be due to lots of things .... but, thought I'd post here, in case looks familiar to anyone.
Comment 1 David Williams CLA 2013-06-20 21:01:41 EDT
The MANIFEST.MF file was changed to require J2SE-1.5, but the pom.xml will has custom build section that says execution environment should be J2SE-1.4. 

I'd just delete that entire <build> section in its POM. Should no longer be required. 

(Also, I'd update to .settings to be more in line with typical J2SE-1.5 settings ... they still specify 1.4 source and 1.2 class files. Both should be 1.5 now.
Comment 2 David Williams CLA 2013-06-20 21:04:10 EDT
Created attachment 232626 [details]
patch for jface

Sorry, meant to attach patch mentioning JFace is the problematic bundle.
Comment 3 David Williams CLA 2013-06-20 22:33:16 EDT
The original bug for this change in JFace is bug 395213.
Comment 4 Lars Vogel CLA 2013-06-21 03:45:50 EDT
Sorry David for missing that. We should have tried a local build before, thanks for patching that.
Comment 5 Dani Megert CLA 2013-06-21 03:56:37 EDT
Bug 395213 is fixed now. Please give the build another try.
Comment 6 Lars Vogel CLA 2013-06-21 07:16:12 EDT
If I run a local build I get a similar error in org.eclipse.equinox.p2.core

[INFO] --- tycho-compiler-plugin:0.18.0:compile (default-compile) @ org.eclipse.equinox.p2.core ---
[WARNING] Effective compiler target 1.5 is incompatible with OSGi profile 'CDC-1.1/Foundation-1.1' { source level: 1.3, target level: 1.2} @ MavenProject: org.eclipse.equinox:org.eclipse.equinox.p2.core:2.3.0-SNAPSHOT @ /home/vogella/platform/eclipse.platform.releng.aggregator/rt.equinox.p2/bundles/org.eclipse.equinox.p2.core/pom.xml
[INFO] ------------------------------------------------------------------------
Comment 7 Lars Vogel CLA 2013-06-21 07:18:10 EDT
If I remove "CDC-1.1/Foundation-1.1" from the MANIFEST.MF of org.eclipse.equinox.p2.core I get the following error:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.18.0:compile (default-compile) on project org.eclipse.equinox.p2.core: useJDK = BREE configured, but no toolchain of type 'jdk' with id 'J2SE-1.5' found. See http://maven.apache.org/guides/mini/guide-using-toolchains.html -> [Help 1]
Comment 8 Thomas Watson CLA 2013-06-21 08:31:27 EDT
Lars I think your build issues are related bug 409790.  The poms in p2 repo now require us to configure a toolchains.xml file.
Comment 9 David Williams CLA 2013-06-21 10:27:22 EDT
The contradictory pom setting has been fixed.
Comment 10 Paul Webster CLA 2013-08-07 13:18:51 EDT
What was the final resolution of this bug?  I searched for 411321 in the git log in eclipse.platform.ui and can't find a commit.

PW
Comment 11 David Williams CLA 2013-08-07 14:59:40 EDT
I think commented with bug 395213 ...

git log --grep 395213 --full-diff -p -- bundles/org.eclipse.jface/pom.xml

(which, had a few other changes with the removal of the <build> section in pom).