Discussion:
[tycho-user] How to include 3rd party non osgi-sources in p2 repository.
Frank Hoffmann
2018-02-22 15:28:10 UTC
Permalink
Hello,

I am trying to build a p2 repository containing 3rd party libs, which used
by our application target platfrom.

Unfortunately you cannot find always osgi source bundles at maven central,
e.g. apache commons lang is missing now.



I found an old mailing list entry[1], which points to another article[2].

Through which I managed to generate the source bundle for apache commons
lang, but now my problem is how to include this bundle in my build
repository. When maven tries to create the feature
(com.tp.releng.3rdparty.repo.shared.feature) the source bundle cannot be
found. Please see attached sample project, describing the problem.

I would appreciate any help or tip.


Kind regards,

Frank Hoffmann


[1] https://dev.eclipse.org/mhonarc/lists/tycho-user/msg04665.html

[2]
https://codeiseasy.wordpress.com/2012/07/22/convert-a-maven-source-bundle-to-an-eclipse-source-bundle/
Mickael Istria
2018-02-22 15:35:05 UTC
Permalink
Hi,

Did you look at the content of the Orbit p2 repository:
http://download.eclipse.org/tools/orbit/downloads/drops/R20170919201930/ ?
It may already contain some OSGi-ified/p2-ified libs you're looking for.

HTH
Roland Grunberg
2018-02-22 15:42:12 UTC
Permalink
I think the final step you're missing is using pomDependencies=consider
in the tycho target platform configuration.

https://wiki.eclipse.org/Tycho/How_Tos/Dependency_on_pom-first_artifacts

should take you through the whole process, in the event that what you
seek can't be found on the Orbit project.

Cheers,
--
Roland Grunberg
Sandra Parsick
2018-02-23 08:22:20 UTC
Permalink
Hi Frank,

I wrote a blog about it. Maybe it helps you

https://blog.sandra-parsick.de/2017/09/22/generate-p2-repository-from-maven-artifacts-in-2017/

Best regards,

Sandra
Post by Frank Hoffmann
Hello,
I am trying to build a p2 repository containing 3rd party libs, which
used by our application target platfrom.
Unfortunately you cannot find always osgi source bundles at maven
central, e.g. apache commons lang is missing now.
 
I found an old mailing list entry[1], which points to another article[2].
Through which I managed to generate the source bundle for apache commons
lang, but now my problem is how to include this bundle in my build
repository. When maven tries to create the feature
(com.tp.releng.3rdparty.repo.shared.feature) the source bundle cannot be
found. Please see attached sample project, describing the problem.
I would appreciate any help or tip.
Kind regards,
Frank Hoffmann
[1] https://dev.eclipse.org/mhonarc/lists/tycho-user/msg04665.html
[2]
https://codeiseasy.wordpress.com/2012/07/22/convert-a-maven-source-bundle-to-an-eclipse-source-bundle/
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
Frank Hoffmann
2018-02-27 11:41:20 UTC
Permalink
Hi,
thanks for the responses. We looked into them and switched to the
p2-maven-plugin suggested by Sandra Parsick. This solved out problem.
Kind regards,
Frank Hoffmann
Post by Sandra Parsick
Hi Frank,
I wrote a blog about it. Maybe it helps you
https://blog.sandra-parsick.de/2017/09/22/generate-p2-repository-from-maven-artifacts-in-2017/
Best regards,
Sandra
Post by Frank Hoffmann
Hello,
I am trying to build a p2 repository containing 3rd party libs, which
used by our application target platfrom.
Unfortunately you cannot find always osgi source bundles at maven
central, e.g. apache commons lang is missing now.
I found an old mailing list entry[1], which points to another article[2].
Through which I managed to generate the source bundle for apache commons
lang, but now my problem is how to include this bundle in my build
repository. When maven tries to create the feature
(com.tp.releng.3rdparty.repo.shared.feature) the source bundle cannot be
found. Please see attached sample project, describing the problem.
I would appreciate any help or tip.
Kind regards,
Frank Hoffmann
[1] https://dev.eclipse.org/mhonarc/lists/tycho-user/msg04665.html
[2]
https://codeiseasy.wordpress.com/2012/07/22/convert-a-maven-source-bundle-to-an-eclipse-source-bundle/
Post by Frank Hoffmann
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
Post by Frank Hoffmann
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
Loading...