[L2SWITCH-84] l2switch build failures Created: 26/Sep/16  Updated: 19/Oct/17  Resolved: 29/Oct/16

Status: Resolved
Project: l2switch
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Sai MarapaReddy Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 6813
Priority: High

 Description   

When verifying the build - https://git.opendaylight.org/gerrit/#/c/45369/

the l2switch build fails.

Logs for the build failure are here - https://logs.opendaylight.org/releng/jenkins092/l2switch-distribution-check-beryllium/9/_console-output.log.gz

Summary of failure -

[INFO] features-l2switch .................................. SUCCESS [ 15.539 s]
[INFO] distribution-karaf ................................. FAILURE [ 31.323 s]
[INFO] l2switch-artifacts ................................. SKIPPED
[INFO] l2switch ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:37 min
[INFO] Finished at: 2016-09-26T17:06:43+00:00
[INFO] Final Memory: 155M/1539M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.6:tree (default-cli) on project distribution-karaf: Execution default-cli of goal org.apache.maven.plugins:maven-dependency-plugin:2.6:tree failed: A required class was missing while executing org.apache.maven.plugins:maven-dependency-plugin:2.6:tree: org/sonatype/aether/graph/Dependency
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-dependency-plugin:2.6
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/tmp/r/org/apache/maven/plugins/maven-dependency-plugin/2.6/maven-dependency-plugin-2.6.jar
[ERROR] urls[1] = file:/tmp/r/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
[ERROR] urls[2] = file:/tmp/r/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[3] = file:/tmp/r/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar
[ERROR] urls[4] = file:/tmp/r/org/apache/maven/reporting/maven-reporting-impl/2.0.5/maven-reporting-impl-2.0.5.jar
[ERROR] urls[5] = file:/tmp/r/org/apache/maven/doxia/doxia-core/1.0/doxia-core-1.0.jar
[ERROR] urls[6] = file:/tmp/r/org/apache/maven/shared/maven-doxia-tools/1.0.2/maven-doxia-tools-1.0.2.jar
[ERROR] urls[7] = file:/tmp/r/commons-io/commons-io/1.4/commons-io-1.4.jar
[ERROR] urls[8] = file:/tmp/r/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar
[ERROR] urls[9] = file:/tmp/r/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
[ERROR] urls[10] = file:/tmp/r/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
[ERROR] urls[11] = file:/tmp/r/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
[ERROR] urls[12] = file:/tmp/r/oro/oro/2.0.8/oro-2.0.8.jar
[ERROR] urls[13] = file:/tmp/r/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
[ERROR] urls[14] = file:/tmp/r/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.jar
[ERROR] urls[15] = file:/tmp/r/org/apache/maven/doxia/doxia-site-renderer/1.0/doxia-site-renderer-1.0.jar
[ERROR] urls[16] = file:/tmp/r/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
[ERROR] urls[17] = file:/tmp/r/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar
[ERROR] urls[18] = file:/tmp/r/org/apache/velocity/velocity/1.5/velocity-1.5.jar
[ERROR] urls[19] = file:/tmp/r/org/apache/maven/doxia/doxia-decoration-model/1.0/doxia-decoration-model-1.0.jar
[ERROR] urls[20] = file:/tmp/r/org/apache/maven/doxia/doxia-module-apt/1.0/doxia-module-apt-1.0.jar
[ERROR] urls[21] = file:/tmp/r/org/apache/maven/doxia/doxia-module-fml/1.0/doxia-module-fml-1.0.jar
[ERROR] urls[22] = file:/tmp/r/org/apache/maven/doxia/doxia-module-xdoc/1.0/doxia-module-xdoc-1.0.jar
[ERROR] urls[23] = file:/tmp/r/org/apache/maven/doxia/doxia-module-xhtml/1.0/doxia-module-xhtml-1.0.jar
[ERROR] urls[24] = file:/tmp/r/org/codehaus/plexus/plexus-archiver/2.2/plexus-archiver-2.2.jar
[ERROR] urls[25] = file:/tmp/r/org/codehaus/plexus/plexus-utils/3.0.9/plexus-utils-3.0.9.jar
[ERROR] urls[26] = file:/tmp/r/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.jar
[ERROR] urls[27] = file:/tmp/r/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar
[ERROR] urls[28] = file:/tmp/r/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[29] = file:/tmp/r/org/codehaus/plexus/plexus-io/2.0.6/plexus-io-2.0.6.jar
[ERROR] urls[30] = file:/tmp/r/org/apache/maven/shared/maven-dependency-analyzer/1.3/maven-dependency-analyzer-1.3.jar
[ERROR] urls[31] = file:/tmp/r/asm/asm/3.3.1/asm-3.3.1.jar
[ERROR] urls[32] = file:/tmp/r/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[33] = file:/tmp/r/org/apache/maven/shared/maven-dependency-tree/2.0/maven-dependency-tree-2.0.jar
[ERROR] urls[34] = file:/tmp/r/org/apache/maven/shared/maven-common-artifact-filters/1.4/maven-common-artifact-filters-1.4.jar
[ERROR] urls[35] = file:/tmp/r/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11.jar
[ERROR] urls[36] = file:/tmp/r/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
[ERROR] urls[37] = file:/tmp/r/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>org.opendaylight.l2switch:distribution-karaf:0.3.4-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------: org.sonatype.aether.graph.Dependency
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :distribution-karaf
Build step 'Invoke top-level Maven targets' marked build as failure
[ssh-agent] Stopped.
[PostBuildScript] - Execution post build scripts.
[l2switch-distribution-check-beryllium] $ /bin/bash /tmp/hudson3398714963996466720.sh
cp: cannot stat ‘karaf*.log’: No such file or directory
Archiving artifacts
[PostBuildScript] - Execution post build scripts.



 Comments   
Comment by Sai MarapaReddy [ 26/Sep/16 ]

Also When tried to build l2switch locally (master or stable/boron or stable/beryllium) build fails with following error:-

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 5, column 11
[FATAL] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11
[FATAL] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11
[FATAL] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11
[FATAL] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11
[FATAL] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11
[FATAL] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11
[FATAL] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11
[FATAL] Non-resolvable parent POM for org.opendaylight.l2switch:features-l2switch:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:features-parent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 6, column 11
[FATAL] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-artifacts:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent-lite:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 14, column 13
@
[ERROR] The build could not read 10 projects -> [Help 1]
[ERROR]
[ERROR] The project org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT (/home/sai/odl/l2switch/parent/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 5, column 11 -> [Help 2]
[ERROR]
[ERROR] The project org.opendaylight.l2switch.packethandler:packethandler.aggregator:[unknown-version] (/home/sai/odl/l2switch/packethandler/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11 -> [Help 2]
[ERROR]
[ERROR] The project org.opendaylight.l2switch.loopremover:loopremover.aggregator:[unknown-version] (/home/sai/odl/l2switch/loopremover/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11 -> [Help 2]
[ERROR]
[ERROR] The project org.opendaylight.l2switch.arphandler:arphandler.aggregator:[unknown-version] (/home/sai/odl/l2switch/arphandler/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11 -> [Help 2]
[ERROR]
[ERROR] The project org.opendaylight.l2switch.addresstracker:addresstracker.aggregator:[unknown-version] (/home/sai/odl/l2switch/addresstracker/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11 -> [Help 2]
[ERROR]
[ERROR] The project org.opendaylight.l2switch.hosttracker:hosttracker.aggregator:[unknown-version] (/home/sai/odl/l2switch/hosttracker/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11 -> [Help 2]
[ERROR]
[ERROR] The project org.opendaylight.l2switch.main:main.aggregator:[unknown-version] (/home/sai/odl/l2switch/l2switch-main/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11 -> [Help 2]
[ERROR]
[ERROR] The project org.opendaylight.l2switch:distribution-karaf:[unknown-version] (/home/sai/odl/l2switch/distribution/karaf/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.l2switch:l2switch-parent:0.3.4-SNAPSHOT, /home/sai/odl/l2switch/parent/pom.xml, line 5, column 11 -> [Help 2]
[ERROR]
[ERROR] The project org.opendaylight.l2switch:features-l2switch:0.3.4-SNAPSHOT (/home/sai/odl/l2switch/features/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.opendaylight.l2switch:features-l2switch:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:features-parent:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 6, column 11 -> [Help 2]
[ERROR]
[ERROR] The project org.opendaylight.l2switch:l2switch-artifacts:0.3.4-SNAPSHOT (/home/sai/odl/l2switch/artifacts/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.opendaylight.l2switch:l2switch-artifacts:0.3.4-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent-lite:pom:1.6.4-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 14, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Comment by Sai MarapaReddy [ 26/Sep/16 ]

Please irnore my above comment.

The first comment where it shows the build failure in jenkins is valid.

Comment by Xu Ye [ 27/Sep/16 ]

The build failure showed in first comment is because the version of maven-dependency-plugin used in l2switch project is too low. The version of maven-dependency-plugin(2.6) is written in file "l2switch\distribution\karaf\pom.xml".

I have tried to fix the build failure in
"https://git.opendaylight.org/gerrit/#/c/45861/"

Please help to review it,thanks.

Generated at Wed Feb 07 20:05:52 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.