Lines 1-11 of http://pkgs.fedoraproject.org/cgit/eclipse.git/tree/eclipse-set-1.6-bree.patch?id=01bdabeb6879f69927f15b65a231c926db479bd0 are still required to properly build Eclipse. Without that patch, the build fails during packaging phase that one of the dependencies has unsatisfied imports that should be in 1.6 BREE. To reproduce, checkout the latest eclipse and remove %patch2 line. Or comment it (#%%patch2). org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.apache.geronimo.specs.geronimo-annotation_1.1_spec 1.0.0 to package javax.lang.model 0.0.0.", "Unable to satisfy dependency from org.apache.geronimo.specs.geronimo-annotation_1.1_spec 1.0.0 to package javax.lang.model.element 0.0.0.", "Unable to satisfy dependency from org.apache.geronimo.specs.geronimo-annotation_1.1_spec 1.0.0 to package javax.lang.model.util 0.0.0.", "Unable to satisfy dependency from org.apache.geronimo.specs.geronimo-annotation_1.1_spec 1.0.0 to package javax.tools 0.0.0.", "Unable to satisfy dependency from org.apache.log4j 1.2.17 to package javax.management 0.0.0.", "Unable to satisfy dependency from org.glassfish.web.javax.servlet.jsp 2.2.5 to package javax.tools 0.0.0.", "No solution found because the problem is unsatisfiable."]
I think the problem is that when the execution environment is defined in the pom's target-platform configuration, it overrides the values from anywhere else. It should be possible to just override the target-platform setting in the same way that Tycho does for the Target Environment.
I've tested out the following Tycho (http://rgrunber.fedorapeople.org/tycho-0.16.0-5.1.df2c35.fc19.noarch.rpm) and it seems to build eclipse cbi on rawhide without the need for Patch2. If you can confirm this is the case, I'll go ahead and commit to rawhide, f18, and f17 as well. The change ensures that projects of type 'eclipse-repository', 'eclipse-application', 'eclipse-update-site' get bumped to JavaSE-1.6 as well.
tycho-0.16.0-6.df2c35.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/tycho-0.16.0-6.df2c35.fc18
Package tycho-0.16.0-6.df2c35.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing tycho-0.16.0-6.df2c35.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-12647/tycho-0.16.0-6.df2c35.fc18 then log in and leave karma (feedback).
Package tycho-0.16.0-7.df2c35.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing tycho-0.16.0-7.df2c35.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-12647/tycho-0.16.0-7.df2c35.fc18 then log in and leave karma (feedback).
tycho-0.16.0-7.df2c35.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.