Ask Your Question
0

can't build the controller successfully by "Developer Guide"

asked 2015-03-24 02:36:06 -0700

Eric gravatar image

the "Developer Guide" ,you can get from the site "http://www.opendaylight.org/software/downloads"

when i executed this command "mvn clean install",i got a problem as bleow:

*********************************************[INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for org.opendaylight.controller:config-parent:0.3.0-SNAPSHOT: 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 [FATAL] Non-resolvable parent POM for org.opendaylight.controller:opendaylight-karaf-empty:1.5.0-SNAPSHOT: Could not find artifact org.opendaylight.controller:karaf-parent:pom:1.5.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 3, column 11 [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.opendaylight.controller:sal-netconf-connector:jar -> duplicate declaration of version (?) @ org.opendaylight.controller:messagebus-impl:[unknown-version], C:\Users\lenovo\controller\opendaylight\md-sal\messagebus-impl\pom.xml, line 59, column 21 [WARNING] 'version' contains an expression but should be a constant. @ org.opendaylight.controller:hosttracker.shell:${hosttracker.shell.version}, C:\Users\lenovo\controller\opendaylight\adsal\hosttracker\shell\pom.xml, line 11, column 12 [WARNING] 'version' contains an expression but should be a constant. @ org.opendaylight.controller:containermanager.shell:${containermanager.shell.version}, C:\Users\lenovo\controller\opendaylight\adsal\containermanager\shell\pom.xml, line 11, column 12 [WARNING] 'version' contains an expression but should be a constant. @ org.opendaylight.controller:topologymanager.shell:${topologymanager.shell.version}, C:\Users\lenovo\controller\opendaylight\adsal\topologymanager\shell\pom.xml, line 11, column 12 [WARNING] 'version' contains an expression but should be a constant. @ org.opendaylight.controller:features-adsal:${sal.version}, C:\Users\lenovo\controller\opendaylight\adsal\features\adsal\pom.xml, line 11, column 12 [WARNING] 'version' contains an expression but should be a constant. @ org.opendaylight.controller:features-nsf:${nsf.version}, C:\Users\lenovo\controller\opendaylight\adsal\features\nsf\pom.xml, line 11, column 12 [WARNING] 'version' contains an expression but should be a constant. @ org.opendaylight.controller:features-protocol-framework:${protocol-framework.version}, C:\Users\lenovo\controller\features\protocol-framework\pom.xml, line 11, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ line 30, column 15 @ [ERROR] The build could not read 2 projects -> [Help 1] [ERROR]
[ERROR] The project org.opendaylight.controller:config-parent:0.3.0-SNAPSHOT (C:\Users\lenovo\controller\opendaylight\config\config-parent\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.controller:config-parent:0.3.0-SNAPSHOT: 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]
[ERROR] The project org.opendaylight.controller:opendaylight-karaf-empty:1.5.0-SNAPSHOT (C:\Users\lenovo\controller\karaf\opendaylight-karaf-empty\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.controller:opendaylight-karaf-empty:1.5.0-SNAPSHOT: Could not find artifact org.opendaylight.controller:karaf-parent:pom:1.5.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 3, column 11 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e ... (more)

edit retag flag offensive close merge delete

Comments

Hi Eric, Never tried it on Window system but it should work. Just to confirm,you out settings.xml file in your .m2 repo ??

faizan ( 2015-03-24 08:26:00 -0700 )edit

it doesn't work,but i think it's related to the order of installation of repositories.Because I maven the "controller" first ,it tells me that maven can't find two projects.Then i maven the "odlparent","yangtools",there is only one project left,which is still cann't be found.

Eric ( 2015-03-24 18:43:29 -0700 )edit

4 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-27 01:20:00 -0700

Vishal Thapar gravatar image

This looks like a mvn settings issue. Check settings.xml in your .m2 directory, will be most likely in your home directory [c:/Users/Lenovo/.m2]. I prefer to have my settings in my maven installation directory. Are you behind a proxy? If yes, you will need to add proxy settings to your settings.xml

edit flag offensive delete publish link more
0

answered 2015-03-24 08:17:34 -0700

fernnf gravatar image

This can be out memory error, use export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=350m" and try build again.

edit flag offensive delete publish link more

Comments

it happened "out of memory",but i had changed the "Maven OPTS" to "-Xmx512m -XX:MaxPermSize=128m" by referring the wiki's instruction.Then it worked.But it can't solve all the problems,There is still a problem.

Eric ( 2015-03-24 18:31:06 -0700 )edit
0

answered 2015-03-24 18:47:18 -0700

Eric gravatar image

this problem now



[INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for org.opendaylight.controller:opendaylight-karaf-empty:1.5.0-SNAPSHOT: Could not find artifact org.opendaylight.controller:karaf-parent:pom:1.5.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 3, column 11 [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.opendaylight.controller:sal-netconf-connector:jar -> duplicate declaration of version (?) @ org.opendaylight.controller:messagebus-impl:[unknown-version], C:\Users\lenovo\controller\opendaylight\md-sal\messagebus-impl\pom.xml, line 59, column 21 [WARNING] 'version' contains an expression but should be a constant. @ org.opendaylight.controller:hosttracker.shell:${hosttracker.shell.version}, C:\Users\lenovo\controller\opendaylight\adsal\hosttracker\shell\pom.xml, line 11, column 12 [WARNING] 'version' contains an expression but should be a constant. @ org.opendaylight.controller:containermanager.shell:${containermanager.shell.version}, C:\Users\lenovo\controller\opendaylight\adsal\containermanager\shell\pom.xml, line 11, column 12 [WARNING] 'version' contains an expression but should be a constant. @ org.opendaylight.controller:topologymanager.shell:${topologymanager.shell.version}, C:\Users\lenovo\controller\opendaylight\adsal\topologymanager\shell\pom.xml, line 11, column 12 [WARNING] 'version' contains an expression but should be a constant. @ org.opendaylight.controller:features-adsal:${sal.version}, C:\Users\lenovo\controller\opendaylight\adsal\features\adsal\pom.xml, line 11, column 12 [WARNING] 'version' contains an expression but should be a constant. @ org.opendaylight.controller:features-nsf:${nsf.version}, C:\Users\lenovo\controller\opendaylight\adsal\features\nsf\pom.xml, line 11, column 12 [WARNING] 'version' contains an expression but should be a constant. @ org.opendaylight.controller:features-protocol-framework:${protocol-framework.version}, C:\Users\lenovo\controller\features\protocol-framework\pom.xml, line 11, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ line 30, column 15 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR]
[ERROR] The project org.opendaylight.controller:opendaylight-karaf-empty:1.5.0-SNAPSHOT (C:\Users\lenovo\controller\karaf\opendaylight-karaf-empty\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.controller:opendaylight-karaf-empty:1.5.0-SNAPSHOT: Could not find artifact org.opendaylight.controller:karaf-parent:pom:1.5.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 3, column 11 -> [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

edit flag offensive delete publish link more

Comments

I have tried settings.xml in the .m2 directory or in the maven installaion directory,then it gives the error,which is on the site "https://ask.opendaylight.org/question/3094/failed-to-execute-goal-orgapachemavenpluginsmaven-checkstyle-plugin/?answer=3121#post-id-3121".

Eric ( 2015-03-27 18:46:28 -0700 )edit

It means it was maven settings issue. The issue you're facing now is different one, I've responded to that question.

Vishal Thapar ( 2015-03-29 22:43:08 -0700 )edit
0

answered 2015-09-08 09:09:15 -0700

Ashu gravatar image

i have had the same issue. It's the issue of .m2 repository setting. I tried it on Linux having the same default setting which is mentioned in developer guide. I don't know what would be the default settings for windows but this is sure the issue of maven setting.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
2 followers

Stats

Asked: 2015-03-24 02:36:06 -0700

Seen: 2,565 times

Last updated: Sep 08 '15