<?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: Dependencies, repos and packages in pom file in ExtremeWireless (General)</title>
    <link>https://community.extremenetworks.com/t5/extremewireless-general/dependencies-repos-and-packages-in-pom-file/m-p/37429#M1901</link>
    <description>1.  Our project uses the Nexus opendaylight.release repository as well.  We haven't had any issues with it yet.&lt;BR /&gt;
&lt;BR /&gt;
2.  We use a parent pom.xml that manages all dependencies in the repository because it removes the need to specify version numbers for the dependencies.&lt;BR /&gt;
&lt;BR /&gt;
The parent can be specified as follows (version number can be replaced with other valid versions):&lt;BR /&gt;
&lt;BR /&gt;
        &lt;GROUPID&gt;org.opendaylight.controller&lt;/GROUPID&gt;&lt;BR /&gt;
        &lt;ARTIFACTID&gt;commons.opendaylight&lt;/ARTIFACTID&gt;&lt;BR /&gt;
        &lt;VERSION&gt;1.4.2-Helium&lt;/VERSION&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Once you have included the parent pom.xml, you can include dependencies as follows:&lt;BR /&gt;
&lt;BR /&gt;
&lt;DEPENDENCY&gt;&lt;BR /&gt;
        &lt;GROUPID&gt;org.opendaylight.controller&lt;/GROUPID&gt;&lt;BR /&gt;
        &lt;ARTIFACTID&gt;sal&lt;/ARTIFACTID&gt;&lt;BR /&gt;
&lt;/DEPENDENCY&gt;&lt;BR /&gt;
&lt;BR /&gt;
Note:  you can find alternate commons.opendaylight versions in the following link&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/controller/commons.parent/" target="_blank" rel="nofollow noreferrer noopener"&gt;https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/controller/commons.parent/&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Rob&lt;BR /&gt;</description>
    <pubDate>Tue, 24 Mar 2015 07:09:00 GMT</pubDate>
    <dc:creator>Rob_Gries</dc:creator>
    <dc:date>2015-03-24T07:09:00Z</dc:date>
    <item>
      <title>Dependencies, repos and packages in pom file</title>
      <link>https://community.extremenetworks.com/t5/extremewireless-general/dependencies-repos-and-packages-in-pom-file/m-p/37428#M1900</link>
      <description>My understanding is that in the pom.xml file, I can specify &lt;BR /&gt;
&lt;BR /&gt;
1) the necessary packages my bundle refers to in &lt;I&gt;&lt;BR /&gt;
2) the repo to download the JARs under repository&amp;gt; and&lt;BR /&gt;
3) the dependencies within &lt;DEPENDENCY&gt;&lt;BR /&gt;
&lt;BR /&gt;
While I know the packages needed for my bundle, my build fails due to issues with downloading from remote repos (I use the ODL release repo in &lt;A href="https://wiki.opendaylight.org/view/Infrastructure:Nexus" target="_blank" rel="nofollow noreferrer noopener"&gt;https://wiki.opendaylight.org/view/Infrastructure:Nexus&lt;/A&gt;) most of the time. &lt;BR /&gt;
&lt;BR /&gt;
My questions are: &lt;BR /&gt;
&lt;BR /&gt;
1. What remote repository is it advisable to use? Or is it needed at all as I find the JARs I need in the plugin directory of opendaylight in our kit?&lt;BR /&gt;
&lt;BR /&gt;
2. How could I find out what version of sal to use when specifying the dependency in &lt;BR /&gt;
&lt;BR /&gt;
&lt;DEPENDENCIES&gt;&lt;BR /&gt;
        &lt;DEPENDENCY&gt;&lt;BR /&gt;
                     &lt;GROUPID&gt;org.opendaylight.controller&lt;/GROUPID&gt;&lt;BR /&gt;
                     &lt;ARTIFACTID&gt;sal&lt;/ARTIFACTID&gt;&lt;BR /&gt;
                     &lt;VERSION&gt;0.7.0&lt;/VERSION&gt;&lt;BR /&gt;
         &lt;/DEPENDENCY&gt;&lt;BR /&gt;
&lt;/DEPENDENCIES&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;/DEPENDENCY&gt;&lt;/I&gt;</description>
      <pubDate>Mon, 23 Mar 2015 02:33:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremewireless-general/dependencies-repos-and-packages-in-pom-file/m-p/37428#M1900</guid>
      <dc:creator>Chandrasekaran_</dc:creator>
      <dc:date>2015-03-23T02:33:00Z</dc:date>
    </item>
    <item>
      <title>RE: Dependencies, repos and packages in pom file</title>
      <link>https://community.extremenetworks.com/t5/extremewireless-general/dependencies-repos-and-packages-in-pom-file/m-p/37429#M1901</link>
      <description>1.  Our project uses the Nexus opendaylight.release repository as well.  We haven't had any issues with it yet.&lt;BR /&gt;
&lt;BR /&gt;
2.  We use a parent pom.xml that manages all dependencies in the repository because it removes the need to specify version numbers for the dependencies.&lt;BR /&gt;
&lt;BR /&gt;
The parent can be specified as follows (version number can be replaced with other valid versions):&lt;BR /&gt;
&lt;BR /&gt;
        &lt;GROUPID&gt;org.opendaylight.controller&lt;/GROUPID&gt;&lt;BR /&gt;
        &lt;ARTIFACTID&gt;commons.opendaylight&lt;/ARTIFACTID&gt;&lt;BR /&gt;
        &lt;VERSION&gt;1.4.2-Helium&lt;/VERSION&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Once you have included the parent pom.xml, you can include dependencies as follows:&lt;BR /&gt;
&lt;BR /&gt;
&lt;DEPENDENCY&gt;&lt;BR /&gt;
        &lt;GROUPID&gt;org.opendaylight.controller&lt;/GROUPID&gt;&lt;BR /&gt;
        &lt;ARTIFACTID&gt;sal&lt;/ARTIFACTID&gt;&lt;BR /&gt;
&lt;/DEPENDENCY&gt;&lt;BR /&gt;
&lt;BR /&gt;
Note:  you can find alternate commons.opendaylight versions in the following link&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/controller/commons.parent/" target="_blank" rel="nofollow noreferrer noopener"&gt;https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/controller/commons.parent/&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Rob&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2015 07:09:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremewireless-general/dependencies-repos-and-packages-in-pom-file/m-p/37429#M1901</guid>
      <dc:creator>Rob_Gries</dc:creator>
      <dc:date>2015-03-24T07:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Dependencies, repos and packages in pom file</title>
      <link>https://community.extremenetworks.com/t5/extremewireless-general/dependencies-repos-and-packages-in-pom-file/m-p/37430#M1902</link>
      <description>Thanks Rob. Could you tell me if you use just a single pom.xml file for your entire project? I want to know where I should place the parent pom info and I have a single pom file for my entire project. Your answer suggests you have a parent pom file and some module-related pom files that refer to the parent. &lt;BR /&gt;
&lt;BR /&gt;
I thought specifying the parent pom info within my pom file would work (see below) but it does not.  Here is my pom file:&lt;BR /&gt;
&lt;BR /&gt;
           &lt;BR /&gt;
        &lt;GROUPID&gt;org.opendaylight.controller&lt;/GROUPID&gt;&lt;BR /&gt;
        &lt;ARTIFACTID&gt;commons.opendaylight&lt;/ARTIFACTID&gt;&lt;BR /&gt;
        &lt;VERSION&gt;1.4.2-Helium&lt;/VERSION&gt;&lt;BR /&gt;
    &lt;BR /&gt;
    &lt;MODELVERSION&gt;4.0.0&lt;/MODELVERSION&gt;&lt;BR /&gt;
    &lt;GROUPID&gt;org.odl.myapp&lt;/GROUPID&gt;&lt;BR /&gt;
    &lt;ARTIFACTID&gt;sampleapp&lt;/ARTIFACTID&gt;&lt;BR /&gt;
    &lt;VERSION&gt;0.1&lt;/VERSION&gt;&lt;BR /&gt;
  &lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
....build config info goes here......       &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I get an error with this file that says "...1.4.2-Helium in &lt;A href="http://repo.maven.apache.org/maven2" target="_blank" rel="nofollow noreferrer noopener"&gt;http://repo.maven.apache.org/maven2&lt;/A&gt; was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 2, column 10"&lt;BR /&gt;
&lt;BR /&gt;&lt;/B&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:49:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremewireless-general/dependencies-repos-and-packages-in-pom-file/m-p/37430#M1902</guid>
      <dc:creator>Chandrasekaran_</dc:creator>
      <dc:date>2015-03-24T08:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: Dependencies, repos and packages in pom file</title>
      <link>https://community.extremenetworks.com/t5/extremewireless-general/dependencies-repos-and-packages-in-pom-file/m-p/37431#M1903</link>
      <description>Never mind! I got it working by writing up my pom file in a different way.  My parent info in the file above is wrong.  &lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:49:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremewireless-general/dependencies-repos-and-packages-in-pom-file/m-p/37431#M1903</guid>
      <dc:creator>Chandrasekaran_</dc:creator>
      <dc:date>2015-03-24T08:49:00Z</dc:date>
    </item>
  </channel>
</rss>

