<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:48:27 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[YANGIDE-16] Can&apos;t find Yang models for import in Bundle artifacts, have to change it to jar</title>
                <link>https://jira.opendaylight.org/browse/YANGIDE-16</link>
                <project id="10187" key="YANGIDE">yangide</project>
                    <description>&lt;p&gt;Many of the available public Yang models for import, like &quot;ietf-yang-types&quot; and &quot;ietf-inet-types&quot; are in artifacts that default to type &quot;Bundle&quot;.  When YangIDE indexes the available imports using that artifact, it doesn&apos;t find any.  If I just edit the properties of the dependency, changing the type from &quot;bundle&quot; to &quot;jar&quot;, it will then find the available import files.&lt;/p&gt;

&lt;p&gt;It&apos;s awkward to have users perform the additional step to make the import files available.&lt;/p&gt;

&lt;p&gt;When YangIDE indexes artifacts, it checks for multiple different artifact types.  When the artifact is of type &quot;Bundle&quot;, it may not properly deal with it.&lt;/p&gt;

&lt;p&gt;For instance, a dependency search for &quot;ietf-inet-types&quot; finds artifacts in groupId &quot;org.opendaylight.mdsal.model&quot; which are of type &quot;bundle&quot; and also &quot;xml, p2artifacts&quot;, whatever that means.  There are also older artifacts in groupId &quot;org.opendaylight.yangtools.model&quot; that are of type &quot;jar&quot;.&lt;/p&gt;

&lt;p&gt;If I select the old &quot;jar&quot; artifacts, the import files are found.  If I select the newer &quot;Bundle&quot; artifact, it doesn&apos;t find the files.  However, if I edit the dependency and change the type from &quot;Bundle&quot; to &quot;jar&quot;, then it can find the import files.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27235">YANGIDE-16</key>
            <summary>Can&apos;t find Yang models for import in Bundle artifacts, have to change it to jar</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="dkarr">David M. Karr</reporter>
                        <labels>
                    </labels>
                <created>Sat, 21 May 2016 16:01:00 +0000</created>
                <updated>Thu, 19 Oct 2017 21:25:00 +0000</updated>
                            <resolved>Thu, 2 Jun 2016 16:30:51 +0000</resolved>
                                    <version>unspecified</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="54982" author="davidmichaelkarr@gmail.com" created="Wed, 25 May 2016 21:44:37 +0000"  >&lt;p&gt;I now understand this problem a little better, and see a potential mitigation for it.&lt;/p&gt;

&lt;p&gt;In the &quot;Add&quot; dialog, the search results will list artifacts of type &quot;bundle&quot; if the &quot;packaging&quot; property is set to &quot;bundle&quot;.  It doesn&apos;t matter if the jar artifact has a valid OSGi manifest.&lt;/p&gt;

&lt;p&gt;The problem is, although m2e knows what a bundle is, compared to a jar, Maven only knows about bundles if the &quot;maven-bundle-plugin&quot; is enabled (with the &quot;extensions&quot; property set to &quot;true&quot;, apparently).  If that&apos;s not in place, Maven has no idea what to do with the artifact, so it says it can&apos;t find it.&lt;/p&gt;

&lt;p&gt;So, if we add the following to the pom.xml for the project, Maven will properly handle artifacts of type bundle:&lt;br/&gt;
-----------------&lt;br/&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.4.0&amp;lt;/version&amp;gt;&lt;br/&gt;
    &amp;lt;extensions&amp;gt;true&amp;lt;/extensions&amp;gt;&lt;br/&gt;
  &amp;lt;/plugin&amp;gt;&lt;br/&gt;
---------------&lt;/p&gt;

&lt;p&gt;I&apos;d like to do more research about the &quot;extensions&quot; property, and I&apos;d like to see if the parent pom has a default version of the plugin that will work properly.&lt;/p&gt;</comment>
                            <comment id="54983" author="davidmichaelkarr@gmail.com" created="Thu, 2 Jun 2016 16:30:51 +0000"  >&lt;p&gt;The fix for this was merged with &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/39456/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/39456/&lt;/a&gt; .&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5940</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=5940]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02y8v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>