Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Deploy p2 updatesites to nexus

Hello Simon,

you could also have a look at package-drone [1].

This would allow you to upload your non-p2 (but OSGi) bundles (either
manually or using mvn:deploy) and consume them as a P2 repository.

It can also convert maven source attachments to Eclipse Source bundles
automatically.

Jens

PS: since I am working on this, just ask me when you need some help.

[1] https://github.com/ctron/package-drone#package-drone

On 01/20/2015 11:58 PM, Simon Scholz wrote:
> Dear tycho-users,
>
> I am currently trying to establish a satisfying solution to generate a
> p2 updatesite of non OSGi bundles on Nexus OSS.
> Therefore I am using the p2-maven-plugin
> (https://github.com/reficio/p2-maven-plugin) and define my non OSGi
> dependencies in the pom.xml, which uses the p2-maven-plugin.
> When building this by using "mvn p2:site", all non OSGi dependencies
> are converted to OSGi bundles and a p2 updatesite, containing these
> bundles, is created. This updatesite can be found in the "target >
> repository" folder of the project. After the creation, I want to host
> this p2 updatesite on my Nexus OSS repository, so that I can reference
> this updatesite in my target definition and in the parent pom for my
> tycho build as repository.
>
>     <repositories>
>         <repository>
>             <id>third-party-osgi</id>
> <url>http://localhost:8081/nexus/content/sites/3rd_party_p2_updatesite/</url>
>
>             <layout>p2</layout>
>         </repository>
>     </repositories>
>
> In order to archive this I am currently using a shell script, which
> traverses the "target > repository" folder und upload all updatesite's
> artifacts, which have been created by the p2-maven-plugin, to a
> certain Nexus repository by using curl and the REST API of Nexus OSS.
>
> This solution actually works, but I am wondering, if it could be
> improved or if better alternative solutions already exists.
>
> Therefore I have some questions:
> Do you have any comments concerning the solution I just explained?
> Are there any issues I could face with this solution?
> Do other, better solutions exist to provide non OSGi 3rd party
> libraries for a Tycho build?
>
> In case you like my solution and have no complains concerning it, I am
> willing blog about it so that you can get more details.
> Please also do not hesitate to ask for more details, if something is
> not clear concerning my proposed solution.
>
>
> Thanks in advance,
>
> Simon
>


-- 
IBH SYSTEMS GmbH
D-85235 Pfaffenhofen an der Glonn
Läutenring 43
Geschäftsführer / CEO: Dr. Thomas Heitzig

Amtsgericht München
Handelsregister Nummer  HRB 197959
USt ID: DE267945175

Office Munich
D 80992 München
Agnes-Pockels-Bogen 1
T +49 89 18 9 17 49 0

The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or pivileged
material. Any review, retransmission, dissemination or other use of,
or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the
material from any computer.



Back to the top