Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Resolve external bundle dependencies

We solved the problem by creating our own P2 repository using available bundles from various sources.  I was not around when this was done, so I don't understand all the details, but essentially it is a Maven build (packaging = eclipse-repository) that uses the tycho-p2-publisher-plugin to create the repository.

The dependencies are specified as usual in Maven, e.g.:

	<dependency>
	    <groupId>org.apache.commons</groupId>
	    <artifactId>com.springsource.org.apache.commons.io</artifactId>
	    <version>1.4.0</version>
	</dependency>

-- 
Eduardo

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of De Backer Frederik (DBB)
Sent: Tuesday, October 18, 2011 8:30 AM
To: Tycho user list
Subject: Re: [tycho-user] Resolve external bundle dependencies

The springsource EBR is not a p2 repository (at least not that i know).
Is this necessary? Can Tycho only work with p2 repositories?

If yes, is there another way to solve the dependency?

Kr,

Frederik.

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx
[mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
Sent: dinsdag 18 oktober 2011 14:53
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] Resolve external bundle dependencies

Does springsource provide their bundles via a p2 repository?

--
Regards,
Igor

On 11-10-18 3:34 AM, De Backer Frederik (DBB) wrote:
> Dear,
>
> I am a new user to tycho and I am faced with the following problem.
>
> I have developped an OSGi bundle in Eclipse and this bundle has a 
> dependency on com.springsource.org.apache.commons.io. This is a bundle

> which is present in the SpringSource Enterprise bundle repository.
>
> In the manifest of my bundle is the following :
> *Require-Bundle*:
> com.springsource.org.apache.commons.io;/bundle-version/="1.4.0"
>
> I use tycho 0.13.0 to do the build of this bundle via maven. However I

> get the following error when doing a mvn clean install
>
> Bundle com.dexia.sample.HelloService - Missing Constraint:
> Require-Bundle: co
> m.springsource.org.apache.commons.io; bundle-version="1.4.0"
>
> What is the recommended way to resolve this dependency? I see things 
> like p2 repositories and target platform definitions but I don't quite

> understand well of any of these concepts need to be used to solve this

> problem.
>
> We are using nexus to manage our repositories and the springsource 
> bundle repositories have been added to nexus.
>
> Thx a lot for the assistance,
>
> Frederik.
>
> ----------------------------------------------------------------------
> --- Dexia
> disclaimer: http://www.dexia.com/maildisclaimer.htm
> ----------------------------------------------------------------------
> ---
>
>
>
> _______________________________________________
> 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
</pre>

-------------------------------------------------------------------------
Dexia disclaimer:

http://www.dexia.com/maildisclaimer.htm
-------------------------------------------------------------------------
<pre>

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
NOTICE: This electronic mail message and any files transmitted with it are intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.



Back to the top