Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] m2e & tycho builds in eclipse?

Can you have pom-first and manifest-first projects coexisting in the same workspace? And is it supported to have dependencies back and forth?

On 12/10/2011 8:48 AM, Igor Fedorenko wrote:
There are two fundamentally different approaches to produce OSGi bundles
with Maven.

It is possible to start with project sources, dependencies and other
metadata captured in pom.xml and generated bundle manifest during the
build. We calls this "pom-first" approach. On command line this most
commonly done using maven-bundle-plugin. Inside Eclipse IDE pom-first
projects are managed by m2e.

It is also possible to derive project dependencies and some other
aspects of build configuration from existing bundle manfiest. We call
this "manifest-first" approach. On command line manifest-first projects
and built with Tycho. Inside Eclipse workspace manifest-first projects
are managed by PDE.

Hope this helps.

--
Regards,
Igor

On 11-12-10 11:12 AM, Matthew O'Connor wrote:
Ah, got it. Does Tycho support projects that are fully managed by
m2e-tycho then?

On Sat, Dec 10, 2011 at 6:35 AM, Igor Fedorenko <igor@xxxxxxxxxxxxxx
<mailto:igor@xxxxxxxxxxxxxx>> wrote:

    This project is fully managed by m2e, PDE is not involved.

    --
    Regards,
    Igor


    On 11-12-10 1:57 AM, Matthew O'Connor wrote:

        I don't know exactly how to explain it.

        Perhaps the attached POM will help. When I import that project
        into the
        PDE using m2e, the dependency on Jetty is resolved to my local
        Maven repo.

        Maybe I don't understand what m2e is doing differently regarding
        dependency resolution than Tycho.

        On Fri, Dec 9, 2011 at 11:48 PM, Igor Fedorenko
<igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>
<mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>>> wrote:

I am not sure what you mean. Inside eclipse workspace dependency
            management is implemented by PDE, which supports only subset
        of Tycho
            features.

            In order to support all Tycho features, PDE will need to be
        modified or
            a brand new tooling will need to be developed. Both of these
        two options
            are theoretically possible, but require significant effort
        to implement.

            --
            Regards,
            Igor


            On 11-12-10 1:39 AM, Matthew O'Connor wrote:

                Igor,

                I just ran into this on a non-Tycho Maven project.
        (Specifically
                Sitebricks.) I imported the Maven projects into Eclipse
        and as
                it did
                so, m2e created a "Maven Dependencies" folder that
        pointed to the
third-party libraries it depends upon. It seems like this is
                what Tycho
wants to be able to do. Or is there something I'm missing?

                Thanks,
                Matt

                On Fri, Dec 2, 2011 at 9:57 AM, Igor Fedorenko
<igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>
<mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>>
<mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>
<mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>>>> wrote:

                    You already have m2e-tycho installed, so it should
        be doing
                its thing
                    already.

To the best of my knowledge PDE does not provide API to
                allow resolution
                    of dependencies from Maven repositories and I do not
        know if
                there are
                    plans to introduce such API. Please talk to PDE
        developers
                if you want
                    to know their official answer.

                    --
                    Regards,
                    Igor




                    On 11-12-02 11:49 AM, Matthew O'Connor wrote:

                        Should m2e-tycho just show up on the list?
        Because I'm not
                        seeing it.

                        So there's no way for the Maven plugins to
        somehow add
                        dependencies to
                        external jars? That's too bad. Is this under
                consideration for
                        change in
                        Eclipse?

                        Matt

                        On Thu, Dec 1, 2011 at 5:41 PM, Igor Fedorenko
<igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>
<mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>>
<mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>
<mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>>>
<mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>
<mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>>
<mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>
<mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>>>>__>
        wrote:

Can you post your eclipse installation details


          (about_eclipse->installation_________details->configuration)?


                        There were

                            several
                            reports about problems with automatic
        discovery of
                m2e-tycho
                            configurator, but I was never able to
        reproduce the
                problem.

In the meantime, you can install m2e-tycho from
                            Preferences->Maven->Discovery.

                            Also, make sure to import all pom-first
        dependencies in
                        workspace, PDE
                            does not provide API to resolve dependencies
        from Maven
                        repositories.

                            --
                            Regards,
                            Igor


                            On 11-12-01 6:27 PM, Matthew O'Connor wrote:

                                Hello all,

                                I have an Eclipse application I can
        compile on
                the CLI
                        with Maven &
                                Tycho. When I import the "Existing Maven
                Projects" into
                        Eclipse,
                                they
all seem to import correctly, but the "Setup
                Maven plugin
                                connectors"
                                (from
https://docs.sonatype.org/________display/TYCHO/Dependency+on+________pom-first+artifacts
<https://docs.sonatype.org/______display/TYCHO/Dependency+on+______pom-first+artifacts>
<https://docs.sonatype.org/______display/TYCHO/Dependency+on+______pom-first+artifacts
<https://docs.sonatype.org/____display/TYCHO/Dependency+on+____pom-first+artifacts>>

<https://docs.sonatype.org/______display/TYCHO/Dependency+on+______pom-first+artifacts
<https://docs.sonatype.org/____display/TYCHO/Dependency+on+____pom-first+artifacts>
<https://docs.sonatype.org/____display/TYCHO/Dependency+on+____pom-first+artifacts
<https://docs.sonatype.org/__display/TYCHO/Dependency+on+__pom-first+artifacts>>>

<https://docs.sonatype.org/______display/TYCHO/Dependency+on+______pom-first+artifacts
<https://docs.sonatype.org/____display/TYCHO/Dependency+on+____pom-first+artifacts>
<https://docs.sonatype.org/____display/TYCHO/Dependency+on+____pom-first+artifacts
<https://docs.sonatype.org/__display/TYCHO/Dependency+on+__pom-first+artifacts>>
<https://docs.sonatype.org/____display/TYCHO/Dependency+on+____pom-first+artifacts
<https://docs.sonatype.org/__display/TYCHO/Dependency+on+__pom-first+artifacts>
<https://docs.sonatype.org/__display/TYCHO/Dependency+on+__pom-first+artifacts
<https://docs.sonatype.org/display/TYCHO/Dependency+on+pom-first+artifacts>>>>)

isn't displayed. When I attempt to build the
                workspace,
                        none of the
                                external dependencies specified in my
        parent pom are
                        being resolved.

                                How do I go about resolving this?

                                Thanks,
                                Matthew


          _______________________________________________________


                            tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>__>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
<mailto:tycho-user@xxxxxxxxxxx
<mailto:tycho-user@xxxxxxxxxxx>__>__>__>
        https://dev.eclipse.org/________mailman/listinfo/tycho-user
<https://dev.eclipse.org/______mailman/listinfo/tycho-user>
<https://dev.eclipse.org/______mailman/listinfo/tycho-user
<https://dev.eclipse.org/____mailman/listinfo/tycho-user>>

<https://dev.eclipse.org/______mailman/listinfo/tycho-user
<https://dev.eclipse.org/____mailman/listinfo/tycho-user>
<https://dev.eclipse.org/____mailman/listinfo/tycho-user
<https://dev.eclipse.org/__mailman/listinfo/tycho-user>>>
<https://dev.eclipse.org/______mailman/listinfo/tycho-user
<https://dev.eclipse.org/____mailman/listinfo/tycho-user>
<https://dev.eclipse.org/____mailman/listinfo/tycho-user
<https://dev.eclipse.org/__mailman/listinfo/tycho-user>>
<https://dev.eclipse.org/____mailman/listinfo/tycho-user
<https://dev.eclipse.org/__mailman/listinfo/tycho-user>
<https://dev.eclipse.org/__mailman/listinfo/tycho-user
<https://dev.eclipse.org/mailman/listinfo/tycho-user>>>>







          _____________________________________________________
                        tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>__>
        https://dev.eclipse.org/______mailman/listinfo/tycho-user
<https://dev.eclipse.org/____mailman/listinfo/tycho-user>
<https://dev.eclipse.org/____mailman/listinfo/tycho-user
<https://dev.eclipse.org/__mailman/listinfo/tycho-user>>
<https://dev.eclipse.org/____mailman/listinfo/tycho-user
<https://dev.eclipse.org/__mailman/listinfo/tycho-user>
<https://dev.eclipse.org/__mailman/listinfo/tycho-user
<https://dev.eclipse.org/mailman/listinfo/tycho-user>>>

_____________________________________________________
                    tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>__>
        https://dev.eclipse.org/______mailman/listinfo/tycho-user
<https://dev.eclipse.org/____mailman/listinfo/tycho-user>
<https://dev.eclipse.org/____mailman/listinfo/tycho-user
<https://dev.eclipse.org/__mailman/listinfo/tycho-user>>
<https://dev.eclipse.org/____mailman/listinfo/tycho-user
<https://dev.eclipse.org/__mailman/listinfo/tycho-user>
<https://dev.eclipse.org/__mailman/listinfo/tycho-user
<https://dev.eclipse.org/mailman/listinfo/tycho-user>>>




                ___________________________________________________
                tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>
        https://dev.eclipse.org/____mailman/listinfo/tycho-user
<https://dev.eclipse.org/__mailman/listinfo/tycho-user>
<https://dev.eclipse.org/__mailman/listinfo/tycho-user
<https://dev.eclipse.org/mailman/listinfo/tycho-user>>

            ___________________________________________________
            tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
<mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>
        https://dev.eclipse.org/____mailman/listinfo/tycho-user
<https://dev.eclipse.org/__mailman/listinfo/tycho-user>
<https://dev.eclipse.org/__mailman/listinfo/tycho-user
<https://dev.eclipse.org/mailman/listinfo/tycho-user>>




        _________________________________________________
        tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
        https://dev.eclipse.org/__mailman/listinfo/tycho-user
<https://dev.eclipse.org/mailman/listinfo/tycho-user>

    _________________________________________________
    tycho-user mailing list
    tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
    https://dev.eclipse.org/__mailman/listinfo/tycho-user
<https://dev.eclipse.org/mailman/listinfo/tycho-user>




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




Back to the top