Ask Your Question

Non-resolvable parent POM Error while Compiling latest OpenDayLight Code

asked 2015-01-08 03:07:57 -0700

skrasheed.blr gravatar image

updated 2015-01-13 05:36:55 -0700

Tony Tkacik gravatar image

I was able to compile and run my previous OpenDayLight Controller code, today after I did the git pull with latest code, I am no longer able to compile the code. Please find the below error while compilation:

[root@enc-test-vm1 controller]# mvn clean install -Dcheckstyle.skip=true -DskipTests
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   The project org.opendaylight.controller:config-parent:0.3.0-SNAPSHOT (/root/OpenDayLight/controller/opendaylight/config/config-parent/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not find artifact org.opendaylight.yangtools:binding-parent:pom:0.7.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 11, column 11 -> [Help 2]
[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] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
[ERROR] [Help 2]
[root@enc-test-vm1 controller]#

Is the latest code is in good condition? Or do I need any changes to fix this issue?

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted

answered 2015-01-08 20:51:10 -0700

Ashwini_Mhatre gravatar image

Could you please post the content of pom.xml???

edit flag offensive delete publish link more

answered 2015-01-09 01:30:29 -0700

skrasheed.blr gravatar image

The following is config-parent's pom.xml

Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.

This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at

<project xmlns="" xmlns:xsi="" xsi:schemalocation=""> <parent> <groupid>org.opendaylight.yangtools</groupid> <artifactid>binding-parent</artifactid> <version>0.7.0-SNAPSHOT</version> <relativepath> </relativepath></parent></project>

<modelversion>4.0.0</modelversion> <groupid>org.opendaylight.controller</groupid> <artifactid>config-parent</artifactid> <version>0.3.0-SNAPSHOT</version> <packaging>pom</packaging>

<properties> <config.version>0.3.0-SNAPSHOT</config.version> <mdsal.version>1.2.0-SNAPSHOT</mdsal.version> <jmxgeneratorpath>src/main/yang-gen-config</jmxgeneratorpath> <config.file>src/main/config/default-config.xml</config.file> </properties>

<dependencymanagement> <dependencies> <dependency> <groupid>org.opendaylight.controller</groupid> <artifactid>config-artifacts</artifactid> <version>${config.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupid>org.opendaylight.controller</groupid> <artifactid>mdsal-artifacts</artifactid> <version>${mdsal.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencymanagement>

<dependencies> <dependency> <groupid>org.opendaylight.controller</groupid> <artifactid>config-api</artifactid> </dependency> <dependency> <groupid>org.opendaylight.controller</groupid> <artifactid>sal-binding-config</artifactid> </dependency> </dependencies> <build> <pluginmanagement> <plugins> <plugin> <groupid>org.opendaylight.yangtools</groupid> <artifactid>yang-maven-plugin</artifactid> <dependencies> <dependency> <groupid>org.opendaylight.controller</groupid> <artifactid>yang-jmx-generator-plugin</artifactid> <version>${config.version}</version> </dependency> </dependencies> <executions> <execution> <id>config</id> <goals> <goal>generate-sources</goal> </goals> <configuration> <codegenerators> <generator> <codegeneratorclass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codegeneratorclass> <outputbasedir>${jmxGeneratorPath}</outputbasedir> <additionalconfiguration> <namespacetopackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespacetopackage1> </additionalconfiguration> </generator> </codegenerators> <inspectdependencies>true</inspectdependencies> </configuration> </execution> </executions> </plugin> <plugin> <artifactid>maven-clean-plugin</artifactid> <configuration> <filesets> <fileset> <directory>${jmxGeneratorPath}</directory> <includes> <include>**</include> </includes> </fileset> </filesets> </configuration> </plugin> </plugins> </pluginmanagement> </build> <profiles> <profile> <activation> <file> <exists>${config.file}</exists> </file> </activation> <build> <pluginmanagement> <plugins> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>build-helper-maven-plugin</artifactid> <executions> <execution> <id>attach-artifacts</id> <goals> <goal>attach-artifact</goal> </goals> <phase>package</phase> <configuration> <artifacts> <artifact> <file>${config.file}</file> <type>xml</type> <classifier>config</classifier> </artifact> </artifacts> </configuration> </execution> </executions> </plugin> </plugins> </pluginmanagement> <plugins> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>build-helper-maven-plugin</artifactid> </plugin> </plugins> </build> </profile> </profiles>

enter code here
edit flag offensive delete publish link more

answered 2015-01-13 01:37:08 -0700

faizan gravatar image

As skrasheed.blr said settings.xml needs to add.

Plz ref for the solution :

edit flag offensive delete publish link more


it didn't work.

Eric ( 2015-03-24 03:58:04 -0700 )edit

answered 2015-01-13 05:35:55 -0700

Tony Tkacik gravatar image

updated 2015-01-13 05:37:35 -0700

OpenDaylight maintains its own repositories outside of Maven Central, which means maven cannot resolve OpenDaylight artifacts by default. Since OpenDaylight is organized as multiple inter-dependent projects, building a particular project usually means pulling in some artifacts. In order to make this work, your maven installation needs to know the location of OpenDaylight repositories and has to taught to use them.

Getting Started: Development Environment Setup

edit flag offensive delete publish link more


This option worked for me by putting the setting.xml at ./m2 location and allowed me to build the controller on Ubuntu 14.04.

der2dso ( 2015-08-13 09:34:50 -0700 )edit

answered 2015-12-09 04:35:24 -0700

I have similar problem with Maven unresolvable artifacts and figured out new cause: Java 1.8 and maven 3.2.2. After upgrading Maven to 3.3.3 everythig worked!

edit flag offensive delete publish link more
Login/Signup to Answer


Asked: 2015-01-08 03:07:57 -0700

Seen: 11,876 times

Last updated: Dec 09 '15