Hello altogether,

How can I use the thirdparty artifact httpcore-4.0 as bundle and also as artifact in eclipse(and for compilation in my eclipse ide) for my OSGI project.?

My solution was:
I used pax-wrap-jar to wrap the thirdparty artifact httpcore 4.0 from httpcomponents, after started this maven command from my maven module "pax-wrap-jar -g org.apache.httpcomponents -a httpcore -v 4.0", this created a wrapped library like bundle named "org.apache.httpcomponents.httpcore". To use the wrapped jar as artifact, I just set up this in the project pom like this:

<dependency>
        <groupId>com.innoq.cutout</groupId>
        <artifactId>org.apache.httpcomponents.httpcore</artifactId>
        <optional>true</optional>
        <scope>provided</scope>
</dependency>

But this didn't solve my problem, because the artifact is missed on eclipse classpath after the "mvn pax:eclipse" command.

I appreciate any helps,
Thanks

/Serge

Reply via email to