[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| 
Re: [tycho-user] m2e & tycho builds in eclipse?
 | 
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> 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>> 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>
 
            (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>
            ___________________________________________________
        <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>>
 
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.example</groupId>
  <artifactId>maven-dep-example-test</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <dependencies>
    <dependency>
      <groupId>org.mortbay.jetty</groupId>
      <artifactId>jetty</artifactId>
      <version>6.1.9</version>
    </dependency>
  </dependencies>
</project>