Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

how to build ODL modules

asked 2015-04-30 03:09:24 -0800

jayachandrakasi gravatar image

hi,

I'm new to ODL. I"m following the developers document and build module. Is it the right way to build modules independently?

I did git clone to ODL OVSDB repos. $mvn -e clean install

ERROR: $ mvn -e clean install [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for org.opendaylight.ovsdb:commons:1.3.0-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.5.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.ovsdb:commons:1.3.0-SNAPSHOT, /home/viswanath/programming/ODLOpenStack/GitRepo_ODL/ovsdb/commons/parent/pom.xml, line 14, column 11

at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

[ERROR]
[ERROR] The project org.opendaylight.ovsdb:ovsdb:1.1.0-SNAPSHOT (/home/viswanath/programming/ODLOpenStack/GitRepoODL/ovsdb/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.ovsdb:commons:1.3.0-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.5.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.ovsdb:commons:1.3.0-SNAPSHOT, /home/viswanath/programming/ODLOpenStack/GitRepo ODL/ovsdb/commons/parent/pom.xml, line 14, column 11 -> [Help 2] org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.5.0-SNAPSHOT at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:159) at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:813) at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664) at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310) at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:410) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:379) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:343) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636) at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234) at org.apache.maven.DefaultMaven.execute(DefaultMaven ... (more)

edit retag flag offensive close merge delete

Comments

Are you in the root directory of the repo? In other words do you see po.xml file in the directory where you are building?

Dana ( 2015-05-01 07:41:07 -0800 )edit

4 answers

Sort by ยป oldest newest most voted
0

answered 2015-05-03 21:58:58 -0800

Vishal Thapar gravatar image

This looks like wrong settings.xml. If you're behind a proxy, you will need to add that to the settings.xml

edit flag offensive delete publish link more

Comments

@vishal, Thanks for the reply Setup is a standalone system. Is there any recommended ubuntu version to build this? -viswanath

jayachandrakasi ( 2015-05-05 21:11:18 -0800 )edit

I don't think there is any official recommended version, but I've been using Ubuntu 14 [Trusty]. I use my setup for Openstack also and it requires Trusty onwards. I think would be good to move to Ubuntu14 if you're still on Ubuntu12 so that you get more recent packages.

Vishal Thapar ( 2015-05-05 22:31:49 -0800 )edit

Could you update your answer/question with upgrade that solved the problem? It will help others facing similar issue.

Vishal Thapar ( 2015-05-09 06:45:39 -0800 )edit
0

answered 2015-05-04 04:20:27 -0800

jayachandrakasi gravatar image

@Dana,

I'm trying to build independent components, $cd OVSDB $mvn -e clean install

Still gives me error.

@vishal,

I"m running on standalone setup, no proxies.

I still get the same error. My question: Is there any order to build the components: Pls let me know if any other info needed

best regards viswanath

edit flag offensive delete publish link more

Comments

Not really, ideally it should pull dependencies from nexus and build fine.

Vishal Thapar ( 2015-05-04 22:39:27 -0800 )edit
0

answered 2015-05-06 06:07:00 -0800

jayachandrakasi gravatar image

@vishal, @Dana, Thanks for the time and reply. My problem solved after upgrade. -viswanath

edit flag offensive delete publish link more
0

answered 2015-05-12 00:05:39 -0800

jayachandrakasi gravatar image

upgraded to 14.04 and installed all other software able to compile modules . -viswanath

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

Stats

Asked: 2015-04-30 03:09:24 -0800

Seen: 1,102 times

Last updated: May 04 '15