0

I have standard maven project with standard dependency type:

<dependencies>
    <dependency>
        <groupId>com.ogp</groupId>
        <artifactId>com.pt.core.messages.api</artifactId>
        <version>${coreVersion}</version>
    </dependency>
</dependencies>

The issue is that above dependency is of type p2. Adding p2 repository in "repositories" section and using tycho does not help. How can I use p2 dependencies in standard maven projects (with jar packaging type, not eclipse-plugin type)?

vetalok
  • 173
  • 1
  • 12
  • when you say p2, you mean a different repository? – OhadR Jul 10 '15 at 16:19
  • The artifact from the dependency above is in the p2 repository (such repositories is used for updating Eclipse components, for example). Just want to understand how to use artifacts from that repositories in standard maven projects (not Eclipse plugins) – vetalok Jul 10 '15 at 20:21
  • add the repo to your settings.xml – OhadR Jul 11 '15 at 08:51
  • repositories are added but tycho and maven are ignoring them – vetalok Jul 13 '15 at 07:02

1 Answers1

0

Solved by creating simple osgi bundle that will build first, and produce big jar with all the OSGI bundles unpacked as described here: Use dependencies from Eclipse p2 repository in a regular Maven build?. That jar will be used in standard maven projects.

Community
  • 1
  • 1
vetalok
  • 173
  • 1
  • 12