[DAEXIM-13] Not to able build daexim/master Created: 15/Jan/19  Updated: 09/Feb/19  Resolved: 09/Feb/19

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

Type: Bug Priority: High
Reporter: Abhishek Tiwari Assignee: Shaleen Saxena
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2019-01-20-23-55-22-576.png     Text File log.txt    

 Description   

Hi,

I am getting errors for the classes in package

org.opendaylight.yang.gen.v1.urn.opendaylight.daexim.rev160921

 

for  example:

class 

WildcardStar

ModuleName



 Comments   
Comment by Abhishek Tiwari [ 15/Jan/19 ]

Took git clone from https://github.com/opendaylight/daexim/blob/master

Comment by Richard Kosegi [ 15/Jan/19 ]

Can you share full error?

Local build works for me, also CI is working fine https://jenkins.opendaylight.org/releng/job/daexim-merge-neon/

Comment by Abhishek Tiwari [ 16/Jan/19 ]

I am working on master.

Compilation issues in maven.

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.daexim:daexim-artifacts:pom:1.5.0 in libs

[ERROR] 'dependencies.dependency.version' for org.opendaylight.daexim:daexim-model:jar is missing. @ line 106, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.daexim:daexim-spi:jar is missing. @ line 111, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.daexim:daexim-model:jar is missing. @ line 279, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.daexim:daexim-spi:jar is missing. @ line 283, column 21
[ERROR] Non-resolvable import POM: Failure to find org.opendaylight.mdsal:mdsal-artifacts:pom:1.4.0-Boron in

[ERROR] 'dependencies.dependency.version' for org.opendaylight.mdsal.model:odl-mdsal-model-rfc6991:xml:features is missing. @ line 47, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.mdsal:odl-mdsal-binding:xml:features is missing. @ line 53, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.daexim:daexim-model:jar is missing. @ line 73, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.daexim:daexim-impl:jar is missing. @ line 77, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.daexim:daexim-spi:jar is missing. @ line 81, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.daexim:daexim-akka-infoprovider-impl:jar is missing. @ line 85, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.daexim:daexim-impl:cfg is missing. @ line 89, column 21

 

Comment by Richard Kosegi [ 16/Jan/19 ]

Non-resolvable import POM: Failure to find org.opendaylight.mdsal:mdsal-artifacts:pom:1.4.0-Boron

You see that "1.4.0-Boron"? Current master is supposed to be Neon (Boron is 5 major releases in past)

Your local source tree does not seems to be up-to-date.

Are you sure that your maven is configured correctly to use Opendaylight Nexus?

You can follow this guide to setup your environment https://wiki.opendaylight.org/view/GettingStarted:Development_Environment_Setup#Edit_your_.7E.2F.m2.2Fsettings.xml

what is tip of your git HEAD (git rev-parse HEAD)?

 

Comment by Abhishek Tiwari [ 16/Jan/19 ]

You see that "1.4.0-Boron"? Current master is supposed to be Neon (Boron is 5 major releases in past) -

Please share the poms of the sub modules,

or may be my repository is not able to get the libraries?? 

 

Are you sure that your maven is configured correctly to use Opendaylight Nexus? – yes

tip of git head is 801a815f013888d42215b6a6e0d9bbd087cffb02

Comment by Richard Kosegi [ 16/Jan/19 ]

This seems OK, then your maven config must be broken. Could you confirm how you configured it?

Comment by Shaleen Saxena [ 16/Jan/19 ]

Abhishek,

The link you gave: https://github.com/opendaylight/daexim/blob/master is giving me 404 error.

However, I cloned a new workspace using https://github.com/opendaylight/daexim.git and I can build this without trouble.

Some questions:

  1. Are you able to build other ODL projects? Is this first time for you building daexim?
  2. Did you pull a fresh daexim workspace or updated from something old. I'm trying to figure out why it is using boron.
  3. Could you run 'mvn clean' and then 'git status --ignored' and see if there are any old or extra files/directories that do not belong.
  4. Also, for experiment, could you delete your ~/.m2/repository directory and try the build again.

Thanks

Comment by Abhishek Tiwari [ 17/Jan/19 ]
  1. Are you able to build other ODL projects-NO? Is this first time for you building daexim?-Yes
  2. Did you pull a fresh daexim workspace or updated from something old.pull fresh... I'm trying to figure out why it is using boron.- i will check this
  3. Could you run 'mvn clean' and then 'git status --ignored' and see if there are any old or extra files/directories that do not belong. --OK
  4. Also, for experiment, could you delete your ~/.m2/repository directory and try the build again. - OK
Comment by Abhishek Tiwari [ 17/Jan/19 ]

ssaxena, did same what you suggested but 

 

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.controller:mdsal-artifacts:pom:1.9.0-SNAPSHOT @ line 72, column 25
[ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.infrautils:infrautils-artifacts:pom:1.5.0-SNAPSHOT @ line 86, column 25
[ERROR] 'dependencies.dependency.version' for org.opendaylight.infrautils:ready-api:jar is missing. @ line 116, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.controller:sal-common-api:jar is missing. @ line 134, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.controller:sal-core-api:jar is missing. @ line 139, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.controller:sal-binding-api:jar is missing. @ line 144, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.infrautils:infrautils-util:jar is missing. @ line 152, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.infrautils:infrautils-testutils:jar is missing. @ line 163, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.controller:sal-binding-broker-impl:jar is missing. @ line 168, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.controller:sal-binding-broker-impl:test-jar is missing. @ line 173, column 21
[ERROR] 'dependencies.dependency.version' for org.opendaylight.controller:sal-distributed-datastore:jar is missing. @ line 184, column 21
[ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.controller:mdsal-artifacts:pom:1.9.0-SNAPSHOT @ line 49, column 25
[ERROR] 'dependencies.dependency.version' for org.opendaylight.controller:sal-clustering-commons:jar is missing. @ line 82, column 21
@
[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]
[ERROR] The project org.opendaylight.daexim:daexim-impl:1.5.0-SNAPSHOT

Comment by Abhishek Tiwari [ 17/Jan/19 ]

Files in folder rev160921 are also not getting created. so giving compile time error.

Comment by Richard Kosegi [ 17/Jan/19 ]

can you re-run maven with -X argument a attach full log?

Comment by Abhishek Tiwari [ 17/Jan/19 ]

Attached the logs log.txt

Comment by Shaleen Saxena [ 18/Jan/19 ]

Could you add your settings.xml file as well please?

 

Comment by Abhishek Tiwari [ 18/Jan/19 ]

i dont have settings.xml, can you please share me yours to put it in .m2

Comment by Richard Kosegi [ 18/Jan/19 ]

Your environment is not configured with Opendaylight Nexus as I mentioned in my comment previously.

Follow this link on how to setup your settings.xml : https://wiki.opendaylight.org/view/GettingStarted:Development_Environment_Setup#Edit_your_.7E.2F.m2.2Fsettings.xml

Comment by Abhishek Tiwari [ 18/Jan/19 ]

rkosegi let me try that. thanks

Comment by Abhishek Tiwari [ 18/Jan/19 ]

i did the changed suggested on the page https://wiki.opendaylight.org/view/GettingStarted:Development_Environment_Setup#Edit_your_.7E.2F.m2.2Fsettings.xml .

it is giving me same error.

Comment by Richard Kosegi [ 18/Jan/19 ]

We need full build log, again.

Comment by Shaleen Saxena [ 18/Jan/19 ]

Could you add your new ~/.m2/settings.xml as well? Also, are there any other files in your ~/.m2 (other than the repository/ directory)?

Lastly, can you ping nexus.opendaylight.org from your machine?

 

Comment by Michael Vorburger [ 31/Jan/19 ]

Guys this is a local build problem, not a release blocking "daexim does not build on opendaylight.org's Jenkins", agreed? Priority therefore downgraded.

Comment by Richard Kosegi [ 31/Jan/19 ]

I was thinking to reject it as this clearly local problem, but we want to give OP chance to provide some info to help him. Yes, agreed

Comment by Richard Kosegi [ 09/Feb/19 ]

Feel free to re-open if you can provide steps to reproduce problem.

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