Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] I need help with third party Maven repos

Hello Jeff and thank you for the reply!
Indeed I need to declare dependencies, but after days of search I'm lost in details. Could you provide me with information on how to declare these dependencies, and in which pom.xml, since I have a lot of them: for each plugin, for the feature, for the main app, and I have for aggregate.... A concrete solution would help a lot. For the second part:
" if your artifacts from your Maven repo are not OSGI compliant, then it is likely that Tycho resolution will fail", does that mean that I will not be able to use the packages from Maven-repo, except if I download them manually, then turn into plugins?

What is the Tycho good for then? If I had an isolated RCP4 application with all the plugins written in RCP, why would I need Maven at all, after all I could do the export from inside the Eclipse IDE? I am not really familiar with Maven, but I am forced to use it.

Thank you for the answer!

Csaba

2015-03-23 16:29 GMT+01:00 Jeff MAURY <jeffmaury@xxxxxxxxxxxxx>:
First, you need to declare Tycho to consider dependencies declared in POM in addition to the ones in MANIFEST.MF.
Second, it is likely that if your artifacts from your Maven repo are not OSGI compliant, then it is likely that Tycho resolution will fail.

Regards
Jeff

On Mon, Mar 23, 2015 at 2:29 PM, M. Cs. <mohareve@xxxxxxxxx> wrote:
Hello!
First: I have a defined Maven repo in my .m2/settings.xml

<repository>
                    <id>artifactory-stable-repository</id>
                    <url>http://myplace.com/build-stable</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                </repository>

These are non-OSGi Maven-projects with POJOs I need to include into my RCP.

I have created an RCP4 project with features and plugins, and I did convert them into maven project using Lars Vogel's tutorial:
http://www.vogella.com/tutorials/EclipseTycho/article.html

I did successfully build packages, but in a real-world app, I will need those packages provided by the online Maven-repo.
I have tried to include them into the pom.xml of main application, where I intend to use the as:

<dependencies>
            <dependency>
                <groupId>com.mcs.app</groupId>
                <artifactId>my-third-party</artifactId>
                <version>2.9</version>
            </dependency>
</dependencies>


But if I try to import a class MyClass.java from the my-third-party, it is not resolvable.
I really need to solve this issue, because there's no point of writing RCP application, without access to the legacy codes.
I would really appreciate some detailed solution. I have goggled a lot of examples over the internet, but non of them is right one for my case. Thank you!

Csaba

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
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
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top