<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:56:29 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>[CONTROLLER-1799] Archetype should self test during Maven build</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1799</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1728&quot; title=&quot;startup archetype upgrade to karaf 4&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1728&quot;&gt;&lt;del&gt;CONTROLLER-1728&lt;/del&gt;&lt;/a&gt;&#160;at the time did not manage to get the archetype &quot;self testing&quot; to work.&lt;/p&gt;

&lt;p&gt;It&apos;s currently disabled by&#160;&amp;lt;archetype.test.skip&amp;gt;true in&#160;controller/opendaylight/archetypes/pom.xml.&lt;/p&gt;

&lt;p&gt;The goal of this issue is to make that work.&lt;/p&gt;</description>
                <environment></environment>
        <key id="28904">CONTROLLER-1799</key>
            <summary>Archetype should self test during Maven build</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <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="vorburger">Michael Vorburger</assignee>
                                    <reporter username="vorburger">Michael Vorburger</reporter>
                        <labels>
                    </labels>
                <created>Mon, 27 Nov 2017 17:43:31 +0000</created>
                <updated>Tue, 30 Jan 2018 13:51:30 +0000</updated>
                            <resolved>Tue, 30 Jan 2018 13:51:30 +0000</resolved>
                                                    <fixVersion>Oxygen</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="60223" author="vorburger" created="Mon, 27 Nov 2017 17:52:38 +0000"  >&lt;p&gt;As per &lt;a href=&quot;https://lists.opendaylight.org/pipermail/controller-dev/2017-September/013889.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/controller-dev/2017-September/013889.html&lt;/a&gt; :&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;this is how to repro. the problem we saw on Jenkins locally:&lt;/p&gt;&lt;/blockquote&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;rm -rf ~/.m2/repository/org/opendaylight/odlparent
mvn -Dmaven.repo.local=/tmp/Bug8741-archetype-repo clean install&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and it will fail like this:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;[INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default) @ odl-basic-api ---
[INFO] [INFO] Surefire report directory: /home/vorburger/dev/ODL/git/controller/opendaylight/archetypes/opendaylight-startup/target/test-classes/projects/basic/project/basic/features/odl-X-api/target/surefire-reports
[INFO] 
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.opendaylight.odlparent.featuretest.SingleFeatureTest
[INFO] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.693 sec &amp;lt;&amp;lt;&amp;lt; FAILURE! - in org.opendaylight.odlparent.featuretest.SingleFeatureTest
[INFO] installFeatureCatchAndLog(org.opendaylight.odlparent.featuretest.SingleFeatureTest)[repoUrl: file:/home/vorburger/dev/ODL/git/controller/opendaylight/archetypes/opendaylight-startup/target/test-classes/projects/basic/project/basic/features/odl-X-api/target/feature/feature.xml, Feature: odl-basic-api 0.0.1.SNAPSHOT] Time elapsed: 6.311 sec &amp;lt;&amp;lt;&amp;lt; ERROR!
[INFO] shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Error resolving artifact org.opendaylight.odlparent:opendaylight-karaf-empty:zip:2.0.5
[INFO] at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
[INFO] at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
[INFO] at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
[INFO] at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
[INFO] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:705)
[INFO] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:659)
[INFO] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:600)
[INFO] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:567)
[INFO] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:557)
[INFO] at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123)
[INFO] at java.net.URL.openStream(URL.java:1045)
[INFO] at org.ops4j.pax.exam.karaf.container.internal.ArchiveExtractor.extractZipDistribution(ArchiveExtractor.java:88)
[INFO] at org.ops4j.pax.exam.karaf.container.internal.ArchiveExtractor.extract(ArchiveExtractor.java:67)
[INFO] at org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer.start(KarafTestContainer.java:155)
[INFO] at org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactor.invoke(AllConfinedStagedReactor.java:79)
[INFO] at org.ops4j.pax.exam.junit.impl.ProbeRunner$2.evaluate(ProbeRunner.java:267)
[INFO] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
[INFO] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
[INFO] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
[INFO] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
[INFO] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
[INFO] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
[INFO] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
[INFO] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
[INFO] at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
[INFO] at org.ops4j.pax.exam.junit.impl.ProbeRunner.run(ProbeRunner.java:98)
[INFO] at org.ops4j.pax.exam.junit.PaxExam.run(PaxExam.java:93)
[INFO] at org.opendaylight.odlparent.featuretest.PerFeatureRunner.run(PerFeatureRunner.java:72)
[INFO] at org.opendaylight.odlparent.featuretest.PerRepoTestRunner.runChild(PerRepoTestRunner.java:153)
[INFO] at org.opendaylight.odlparent.featuretest.PerRepoTestRunner.runChild(PerRepoTestRunner.java:28)
[INFO] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
[INFO] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
[INFO] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
[INFO] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
[INFO] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
[INFO] at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
[INFO] at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
[INFO] at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
[INFO] at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
[INFO] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
[INFO] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
[INFO] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
[INFO] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
[INFO] 
[INFO] 
[INFO] Results :
[INFO] 
[INFO] Tests in error: 
[INFO] Error resolving artifact org.opendaylight.odlparent:opendaylight-karaf-empty:zip:2.0.5
[INFO] 
[INFO] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] 
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Summary:
[INFO] [INFO] 
[INFO] [INFO] ODL :: archetype.it :: basic-api ................... SUCCESS [ 20.375 s]
[INFO] [INFO] ODL :: archetype.it :: basic-impl .................. SUCCESS [ 8.691 s]
[INFO] [INFO] OpenDaylight :: basic :: API [Karaf Feature] ....... FAILURE [ 14.891 s]
[INFO] [INFO] ODL :: archetype.it :: features-basic .............. SKIPPED
[INFO] [INFO] ODL :: archetype.it :: basic-karaf ................. SKIPPED
[INFO] [INFO] OpenDaylight :: basic :: Impl [Karaf Feature] ...... SKIPPED
[INFO] [INFO] ODL :: archetype.it :: basic-cli ................... SKIPPED
[INFO] [INFO] OpenDaylight :: basic :: CLI [Karaf Feature] ....... SKIPPED
[INFO] [INFO] OpenDaylight :: basic :: REST [Karaf Feature] ...... SKIPPED
[INFO] [INFO] ODL :: archetype.it :: basic-features-aggregator ... SKIPPED
[INFO] [INFO] ODL :: archetype.it :: basic-artifacts ............. SKIPPED
[INFO] [INFO] basic .............................................. SKIPPED
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 46.338 s
[INFO] [INFO] Finished at: 2017-11-27T16:44:01+01:00
[INFO] [INFO] Final Memory: 212M/1646M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default) on project odl-basic-api: There are test failures.
[INFO] [ERROR] 
[INFO] [ERROR] Please refer to /home/vorburger/dev/ODL/git/controller/opendaylight/archetypes/opendaylight-startup/target/test-classes/projects/basic/project/basic/features/odl-X-api/target/surefire-reports for the individual test results.
[INFO] [ERROR] -&amp;gt; [Help 1]
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default) on project odl-basic-api: There are test failures.
[INFO] 
[INFO] Please refer to /home/vorburger/dev/ODL/git/controller/opendaylight/archetypes/opendaylight-startup/target/test-classes/projects/basic/project/basic/features/odl-X-api/target/surefire-reports for the individual test results.&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="60224" author="vorburger" created="Mon, 27 Nov 2017 17:57:05 +0000"  >&lt;p&gt;Debugging this (using &lt;tt&gt;-Dmaven.surefire.debug&lt;/tt&gt;) made me understand that this is caused by Maven -&amp;gt; Surefire -&amp;gt; Pax Exam -&amp;gt; Pax URL not using the custom local repo - it would search for &lt;tt&gt;org.opendaylight.odlparent:opendaylight-karaf-empty:zip:2.0.5&lt;/tt&gt;&#160;in &lt;tt&gt;~/.m2/repository&lt;/tt&gt; despite &lt;tt&gt;-Dmaven.repo.local=&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Setting the &lt;tt&gt;org.ops4j.pax.url.mvn.localRepository&lt;/tt&gt; (or perhaps also &lt;tt&gt;org.ops4j.pax.url.mvn.settings&lt;/tt&gt;, not sure) property somewhere could perhaps fix this...&lt;/p&gt;</comment>
                            <comment id="60226" author="vorburger" created="Mon, 27 Nov 2017 18:25:59 +0000"  >&lt;blockquote&gt;&lt;p&gt;Setting the &lt;tt&gt;org.ops4j.pax.url.mvn.localRepository&lt;/tt&gt; property somewhere...&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Adding the following to &lt;tt&gt;single-feature-parent/pom.xml&lt;/tt&gt; seems to fix this problem:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-xml&quot;&gt;
    &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;systemProperties&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;name&amp;gt;&lt;/span&gt;org.ops4j.pax.url.mvn.localRepository&lt;span class=&quot;code-tag&quot;&gt;&amp;lt;/name&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;${settings.localRepository}&lt;span class=&quot;code-tag&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;/systemProperties&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;So proposed in &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/65940/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/65940/&lt;/a&gt;. In addition, it seems to help, if only to make the DL of the BIG Karaf ZIP happen early in the build time instead of by Pax Exam at surefire run time, to add a dependency to opendaylight-karaf-empty, as proposed in &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/65941/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/65941/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;PS: Ha - I had already done&#160;the same in &lt;tt&gt;infrautils/itestutils/parent/pom.xml&lt;/tt&gt; also! (The Patch Set 1 of c/65940 used the &lt;a href=&quot;http://maven.apache.org/surefire/maven-surefire-plugin/examples/system-properties.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;deprecated&lt;/a&gt; &lt;tt&gt;systemProperties&lt;/tt&gt; instead of the &lt;tt&gt;systemPropertyVariables&lt;/tt&gt;; Patch Set 2 changed that, and has been locally tested to still solve this problem.&lt;/p&gt;</comment>
                            <comment id="60794" author="vorburger" created="Mon, 22 Jan 2018 23:47:14 +0000"  >&lt;p&gt;This came up during &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/66545/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/66545/&lt;/a&gt; again:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;[INFO] Running it.pkg.it.BasicTest
[INFO] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.686 sec &amp;lt;&amp;lt;&amp;lt; FAILURE! - in it.pkg.it.BasicTest
[INFO] it.pkg.it.BasicTest  Time elapsed: 1.662 sec  &amp;lt;&amp;lt;&amp;lt; ERROR!
[INFO] java.lang.RuntimeException: Problem starting container
[INFO] 	at org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer.start(KarafTestContainer.java:191)
(...)
[INFO] Caused by: java.io.IOException: Error resolving artifact org.opendaylight.odlparent:opendaylight-karaf-empty:zip:3.0.2: [Could not find artifact org.opendaylight.odlparent:opendaylight-karaf-empty:zip:3.0.2 in central (https://repo1.maven.org/maven2/)]&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and I was able to again as here locally reproduce (see above) and solve it similarly, see &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/66545/3..4/opendaylight/md-sal/mdsal-it-parent/pom.xml&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/66545/3..4/opendaylight/md-sal/mdsal-it-parent/pom.xml&lt;/a&gt;. (But that&apos;s still NOK due to &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1811&quot; title=&quot;controller archetype IT (it.pkg.it.BasicTest) gets stuck locks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1811&quot;&gt;&lt;del&gt;CONTROLLER-1811&lt;/del&gt;&lt;/a&gt;; unrelated to this.)&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="28905">CONTROLLER-1800</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="26282">CONTROLLER-1728</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i038gv:</customfieldvalue>

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