Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho build fails when Babel repo is included in the target platform

So I noticed that the tycho bug was marked FIXED today (and there was much celebration). When will it be in a build? Just for fun I tried updating my pom to specify 0.17.0-SNAPSHOT but that doesn't seem to resolve:

[ERROR]     Unresolveable build extension: Plugin org.eclipse.tycho:tycho-maven-plugin:0.17.0-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.eclipse.tycho:tycho-maven-plugin:jar:0.17.0-SNAPSHOT -> [Help 2]

So my first question is how can I consume 0.17 snapshot builds (or, are they even available)? Follow-up question is, is this fix in the build yet?

Thanks for forgiving my relative Tycho/Maven ignorance,
Eric


On 1/23/13 12:45 PM, "Jeff MAURY" wrote:

The best way is to download the version from Eclipse Gerrit, do a Mvn install or deploy and use 0.17.0-SNAPSHOT in your poms.

Regards
Jeff MAURY


On Wed, Jan 23, 2013 at 4:35 PM, Rizzo, Eric <Eric.Rizzo@xxxxxxx> wrote:
Great, at least it's comforting to know I don't have something strangely wrong in my poms or plugin manifests.
Until the patch is accepted and available (in 0.17, presumably), is there any workaround? Forgive my ignorance, but if there is no workaround how can I apply the patch locally? I'm somewhat Maven-ignorant so I don't know how to use a patch since it seems that Tycho plugins are being downloaded from Maven's central repo, no?

Thanks,
Eric

On 1/23/13 3:36 AM, "Jeff MAURY" wrote:

I've got the same problem and submitted a patch (see https://git.eclipse.org/r/#/c/8163/). It is only for Babel 4.2.

Jeff



On Tue, Jan 22, 2013 at 11:17 PM, Rizzo, Eric <Eric.Rizzo@xxxxxxx> wrote:
I'm building a product based on Eclipse 3.8. The product compiles fine in Eclipse IDEs and with our newly-constructed Tycho build. However, when I add the Babel repository () to our target platform, Tycho complains with strange compilation errors realting to not finding SWT classes. The exact same target platform applied in Eclipse 3.8 or 3.7 SDK workspaces (ie, in the IDE) produces no compilation errors.

Here is some of what Tycho spits out:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.16.0:compile (default-compile) on project com.emc.xcp.common.ui: Compilation failure: Compilation failure:
[ERROR] F:\P4_Int\depot\Platform\XCPBuilder\Int\int_XCPBLD_2.0\staging\app\bundles\com.emc.xcp.common.ui\src\com\emc\xcp\common\ui\function\FunctionPalette.java:[0,0]
[ERROR] package com.emc.xcp.common.ui.function;
[ERROR] ^
[ERROR] The type org.eclipse.swt.events.KeyEvent cannot be resolved. It is indirectly referenced from required .class files
[ERROR] F:\P4_Int\depot\Platform\XCPBuilder\Int\int_XCPBLD_2.0\staging\app\bundles\com.emc.xcp.common.ui\src\com\emc\xcp\common\ui\function\FunctionPalette.java:[20,0]
[ERROR] public class FunctionPalette extends AbstractTreePalette {
[ERROR] ^^^^^^^^^^^^^^^
[ERROR] The hierarchy of the type FunctionPalette is inconsistent

I have confirmed (twice) that simply removing the Babel bundles from the target platform restores the build to success, so I'm pretty confused about how including Babel bundles could trigger compile errors referring to SWT. I'm not even referencing any of the Babel bundles from any features or plugins.

Before you ask, no I haven't been able to construct a simple test project that demonstrates the problem. I'm not even sure if it's a Tycho problem or something in PDE that ignores a real problem, or what. At this point I'm just (desperately) looking for ideas about where to look and what to try.

Any ideas?

Thanks,
Eric


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




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury



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




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury



Back to the top