<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help with maven/osgi build issue! in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6681535#M1663</link>
    <description>&lt;P&gt;To anybody else that was having the same issue, the solution I found is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.) Include any third-party jars as maven dependencies in each sub-project as needed (normal Maven procedure).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.) In the pom.xml in the XXXXXX-root project, add the following line as shown below into the maven-bundle-plugin plugin section&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;plugin&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;org.apache.felix&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;maven-bundle-plugin&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;2.3.6&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;extensions&amp;gt;true&amp;lt;/extensions&amp;gt;&lt;BR /&gt;&amp;lt;configuration&amp;gt;&lt;BR /&gt;&amp;lt;instructions&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Bundle-SymbolicName&amp;gt;${project.groupId}.${project.artifactId}&amp;lt;/Bundle-SymbolicName&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----ADD THIS LINE BELOW ----&lt;BR /&gt;&amp;lt;Embed-Dependency&amp;gt;YOUR_MAVEN_ARTIFICAT_NAMES_SEPERATED_BY_COMMAS&amp;lt;/Embed-Dependency&amp;gt;&lt;/P&gt;&lt;P&gt;--------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;/instructions&amp;gt;&lt;BR /&gt;&amp;lt;/configuration&amp;gt;&lt;BR /&gt;&amp;lt;/plugin&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The third party maven&amp;nbsp;dependencies will then be automatically included and you can deploy the project now. Good luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;</description>
    <pubDate>Fri, 05 Dec 2014 02:39:06 GMT</pubDate>
    <dc:creator>NewToSDNProgram</dc:creator>
    <dc:date>2014-12-05T02:39:06Z</dc:date>
    <item>
      <title>Help with maven/osgi build issue!</title>
      <link>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6671140#M1656</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not being too familiar with maven, and even less so with how to package stuff properly for osgi bundles i've been hitting a dead-end trying to include another third-party jar dependency in my project. I have followed the standard project template for the 2.3.5 controller and have the various maven projects setup correctly (api, app, bl, model, root, rs, ui). Now, the problem is that I have included another external dependency in my &lt;STRONG&gt;&lt;EM&gt;bl&lt;/EM&gt;&lt;/STRONG&gt; project. The project compiles and even builds fine. In the "app" pom.xml I have even included the third-party maven jar to be copied from my local maven repository to the bundle. However, whenever I try to deploy to the SDN Controller I receive the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Error uploading application archive;cause: No matching artifact for ...."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the problem now lies in that I need to tell osgi about this jar. I know that I need to include this information somehow in the maven build plugin&amp;nbsp;named 'maven-bundle-plugin' of the pom.xml in &lt;STRONG&gt;&lt;EM&gt;root&lt;/EM&gt;&lt;/STRONG&gt; project. Can any gurus with osgi bundling help me out? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2014 02:27:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6671140#M1656</guid>
      <dc:creator>NewToSDNProgram</dc:creator>
      <dc:date>2014-11-14T02:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maven/osgi build issue!</title>
      <link>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6672962#M1657</link>
      <description>&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment I am researching your issue with our engineering department. Once I get an answer from our team I will contact you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;P&gt;CSC CoE SDN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2014 14:54:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6672962#M1657</guid>
      <dc:creator>Carlos</dc:creator>
      <dc:date>2014-11-17T14:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maven/osgi build issue!</title>
      <link>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6675269#M1658</link>
      <description>&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;Have you tried building a simple skeleton app to see if it loads?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Putting detail in here for any/all to see]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;./bin/gen-sdn-app --template skeleton --directory ~/sdn-hm/&amp;nbsp; --app hm --company mango --subject DeviceHealth --app-name "Device Health Monitor" --company-name "Mango Networks" --description "Application for controlling a network of devices." --rest-path health&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cd ~/sdn-hm/hm-root&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mvn clean install&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cd ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;load the file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;./hm-app/target/hm-1.0.0-SNAPSHOT.zip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;into the controller and see if it loads/deploys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also: have you tried building/loading without the additional external dependency?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just trying to isolate the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2014 17:05:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6675269#M1658</guid>
      <dc:creator>ScottReeve</dc:creator>
      <dc:date>2014-11-19T17:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maven/osgi build issue!</title>
      <link>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6675334#M1659</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no problems building my app (based on the template maven apps) without the external dependency, I can even compile everything in Eclipse without any problems and the maven build runs without errors. The problem comes when I need to include the third-party dependency and deploy to the Virgo server, then it launches the previous error. I need to figure out how to tell that maven-bundle-plugin to include the third-party dependency (which is already mavenized btw) in the osgi bundle descriptors/system. Thanks for any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2014 18:27:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6675334#M1659</guid>
      <dc:creator>NewToSDNProgram</dc:creator>
      <dc:date>2014-11-19T18:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maven/osgi build issue!</title>
      <link>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6677292#M1660</link>
      <description>&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any luck with this? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 18:18:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6677292#M1660</guid>
      <dc:creator>NewToSDNProgram</dc:creator>
      <dc:date>2014-11-24T18:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maven/osgi build issue!</title>
      <link>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6677323#M1661</link>
      <description>&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scott is already working on this forum. He will address any questions you have in regards to maven/osgi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CoE SDN&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 19:58:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6677323#M1661</guid>
      <dc:creator>Carlos</dc:creator>
      <dc:date>2014-11-24T19:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maven/osgi build issue!</title>
      <link>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6681535#M1663</link>
      <description>&lt;P&gt;To anybody else that was having the same issue, the solution I found is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.) Include any third-party jars as maven dependencies in each sub-project as needed (normal Maven procedure).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.) In the pom.xml in the XXXXXX-root project, add the following line as shown below into the maven-bundle-plugin plugin section&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;plugin&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;org.apache.felix&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;maven-bundle-plugin&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;2.3.6&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;extensions&amp;gt;true&amp;lt;/extensions&amp;gt;&lt;BR /&gt;&amp;lt;configuration&amp;gt;&lt;BR /&gt;&amp;lt;instructions&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Bundle-SymbolicName&amp;gt;${project.groupId}.${project.artifactId}&amp;lt;/Bundle-SymbolicName&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----ADD THIS LINE BELOW ----&lt;BR /&gt;&amp;lt;Embed-Dependency&amp;gt;YOUR_MAVEN_ARTIFICAT_NAMES_SEPERATED_BY_COMMAS&amp;lt;/Embed-Dependency&amp;gt;&lt;/P&gt;&lt;P&gt;--------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;/instructions&amp;gt;&lt;BR /&gt;&amp;lt;/configuration&amp;gt;&lt;BR /&gt;&amp;lt;/plugin&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The third party maven&amp;nbsp;dependencies will then be automatically included and you can deploy the project now. Good luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 02:39:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/help-with-maven-osgi-build-issue/m-p/6681535#M1663</guid>
      <dc:creator>NewToSDNProgram</dc:creator>
      <dc:date>2014-12-05T02:39:06Z</dc:date>
    </item>
  </channel>
</rss>

