Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] m2e-core sources in Eclipse

I started from clean eclipse install and fresh checkout and I got exactly the same problem.

I tried to investigate it a bit I think I see where it is coming from:

org.eclipse.m2e.editor bundle is using class org.eclipse.swt.widgets.Control class. It lists org.eclipse.swt in it's Require-Bundle manifest header. org.eclipse.swt bundle is resolved to org.eclipse.swt_3.8.0.v3816.jar from my eclipse-3.8M4 installation. org.eclipse.swt bundle declares that it exports org.eclipse.swt.widgets package but it does not contain any of it's classes. It only serves as the host for org.eclipse.swt.gtk.linux.x86_64 bundle. org.eclipse.swt.gtk.linux.x86_64.v3816.jar bundle contains org.eclipse.swt.widgets.Control class needed to compile org.eclipse.m2e.editor, but it does not appear in 'Plugin dependencies' classpath container generated by m2e/Tycho.

Can I / should I somehow influence the resolution process to consider platform specific fragments? Or maybe SWT bundles layout changed recently? Should I retry with Eclipse 3.8M3 or earlier?

Cheers,
Rafał


On 01/17/2012 03:15 PM, Igor Fedorenko wrote:
Everything is expected to work with default workspace created by 3.8M4,
no additional configuration should be necessary.

--
Regards,
Igor

On 12-01-17 9:10 AM, Matthew Piggott wrote:
You may need to set a target platform

2012/1/16 Rafał Krzewski <Rafal.Krzewski@xxxxxxxxx
<mailto:Rafal.Krzewski@xxxxxxxxx>>

    Okaaay, that's embarassing :) I was looking at the new wiki, at
    http://wiki.eclipse.org/Category:M2E and I couldn't see the
    developers guide entry. Sure enough it is in there.
    It did not occur to me to look at the old wiki, I thought all m2e
    documentation was migrated to Eclipse.

    Back to the build problem - I think I did pretty much the same
    thing, but I've installed Tycho connector before importing m2e-core.
    Shouldn't make a difference, but who knows...
    I'll start from a clean slate and follow the dev guide to be sure.

    Cheers,
    Rafał



    On 01/16/2012 11:39 PM, Igor Fedorenko wrote:
    What do you mean by "m2e core developer's guide appears to be gone
    from
    the wiki"? The old wiki is still in place [1] and it there is a
    link to
    the new wiki [2] right at the top.

    [1] https://docs.sonatype.org/display/M2ECLIPSE/Developer+Guide
    [2] http://wiki.eclipse.org/M2E_Development_Environment

    --
    Regards,
    Igor

    On 12-01-16 4:52 PM, Rafał Krzewski wrote:
    Hi,

    I've imported current m2e-core sources to use as reference, but I
    have a
    problem to get the to compile cleanly.
    I am getting a bunch of classpath errors saying that SWT classes
    cannot
    be found on the classpath:

The project was not built since its build path is incomplete. Cannot
    find the class file for org.eclipse.swt.graphics.Image. Fix the
    build
    path then try building this project
    The type org.eclipse.swt.graphics.Image cannot be resolved. It is
    indirectly referenced from required .class files
    ...

    Command line build works fine.

    Am I missing something obvious?

    My environment:

    JDK 1.6.0_26, Linux/GTK x86_64
    Eclipse SDK 3.8.0.I20111209-1447 (3.8M4)
    m2e - Maven Integration for Eclipse 1.1.0.20111210-1509
m2e - Extensions Development Support (Optional) 1.1.0.20111210-1509
    Tycho Project Configurators 0.6.0.201112050222
    m2e connector for modello 0.14.0.201109270543

    I've checked out m2e-core master, at
    69bf9f4d8b656318084aa69fee2a7f9abb4531cf
I did git clean -fdx and imported all project using 'Import existing
    Maven projects'

    I wouldn't be bothering you, but m2e core developer's guide
    appears to
    be gone from the wiki ;)

    Cheers,
    Rafał
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-dev



Back to the top