Hi,

I am trying to add Apache HttpClient OSGI(present on nexus) jar as
dependency in ODL project based on beryllium. Have added lines as mentioned
below to xmls:

*lines added to  **Module and feature poms:*
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient-osgi</artifactId>
            <version>4.5</version>
        </dependency>

*lines added to Module pom:*
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>

<Export-Package>org.apache.http.*,net.sf.ehcache.*,net.spy.*,javax.net.*</Export-Package>
            <Import-Package>*</Import-Package>
            <Embed-Dependency>
                org.apache.http.*,net.*,javax.*;type=!pom;inline=false
            </Embed-Dependency>
            <Embed-Transitive>
                true
            </Embed-Transitive>
          </instructions>
        </configuration>
      </plugin>

and below line to my features.xml

<bundle>mvn:org.apache.httpcomponents/httpclient-osgi/4.5</bundle>

But still seeing below missing constraints related error while installing
feature:


*could not be resolved. Reason: Missing Constraint: Import-Package:
net.sf.ehcache; version="0.0.0"*

What is the correct way to add pom and features xml.

Thanks and Regards,
Sameer
_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to