[CONTROLLER-1151] Example: Pulling,_Hacking,_and_Pushing_the_Code_from_the_CLI - Maven Build Fails... Created: 11/Feb/15  Updated: 10/Jun/15  Resolved: 10/Jun/15

Status: Resolved
Project: controller
Component/s: mdsal
Affects Version/s: Helium
Fix Version/s: None

Type: Bug
Reporter: Colum Gaynor Assignee: Ryan Goulding
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Attachments: Text File Error_On_First_BuildAttmpt_ODL-Controller_Maven.txt    
External issue ID: 2703

 Description   

Trying to follow the example in link:

https://wiki.opendaylight.org/view/OpenDaylight_Controller:Pulling,_Hacking,_and_Pushing_the_Code_from_the_CLI

Code pulled ok from Git...

Cloning into 'controller'...
remote: Counting objects: 33285, done
remote: Finding sources: 100% (21351/21351)
remote: Total 134298 (delta 4458), reused 129365 (delta 4458)
Receiving objects: 100% (134298/134298), 29.28 MiB | 558.00 KiB/s, done.
Resolving deltas: 100% (40601/40601), done.
Checking connectivity... done.

However - Running "mvn clean install" results in buid failure -
See attched log.

running nicely in MavenLandia and then we get;

:
:
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.opendaylight.controller:config-parent:0.3.0-SNAPSHOT
(/home/gaynor/ODL_Examples/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 ->

Any ideas why the build fails would be appreciated...
I simply pulled the code following Wiki advice and tried to do maven build.
surprised to see it failed etc.



 Comments   
Comment by Colum Gaynor [ 11/Feb/15 ]

Attachment Error_On_First_BuildAttmpt_ODL-Controller_Maven.txt has been added with description: Maven Build Failure Output

Comment by Carol Sanders [ 04/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL

Comment by Jan-Simon Moeller [ 27/May/15 ]

I can confirm this still happens.

Comment by Ryan Goulding [ 09/Jun/15 ]

For reference, this is for a really old version of ODL that is not maintained, and I highly recommend you use https://wiki.opendaylight.org/view/GettingStarted:Pulling,_Hacking,_and_Pushing_All_the_Code_from_the_CLI instead.

The problem relates to the fact that you are cloning master, which is karaf based and requires explicit changes to your .m2/settings.xml to properly build. It appears that you intend to compile code from the hydrogen base, which requires this step https://wiki.opendaylight.org/view/OpenDaylight_Controller:Pulling,_Hacking,_and_Pushing_the_Code_from_the_CLI#Checkout_The_Hydrogen_Branch_via_Git_CLI; I added this to clarify that you must "git checkout stable/hydrogen". The wiki document did not specify this step, as "master" referred to the hydrogen code base when it was written (the documents became stale by comparison to the git repository).

I must repeat, I highly recommend you upgrade to using current release documentation and software instead of relying on old releases.

Comment by Colum Gaynor [ 10/Jun/15 ]

OK. Thank you for the clarifications and for adding documentation on this.

Generated at Wed Feb 07 19:54:49 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.