shague / opendaylight-ansible

1 stars 3 forks source link

Compilation Error #19

Open parulagrawal14 opened 5 years ago

parulagrawal14 commented 5 years ago

Hi All,

I am getting the below error while compiling. Kindly request you to help me in resolving this issue.

opendaylight-ansible# mvn clean install [INFO] Scanning for projects... Downloading from opendaylight-snapshot: https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/mdsal/binding-parent/0.13.1-SNAPSHOT/maven-metadata.xml Downloading from opendaylight-snapshot: https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/mdsal/binding-parent/0.13.1-SNAPSHOT/binding-parent-0.13.1-SNAPSHOT.pom Downloading from opendaylight-snapshot: https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/controller/mdsal-artifacts/1.8.1-SNAPSHOT/maven-metadata.xml Downloading from opendaylight-snapshot: https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/controller/mdsal-artifacts/1.8.1-SNAPSHOT/mdsal-artifacts-1.8.1-SNAPSHOT.pom Downloading from opendaylight-snapshot: https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/mdsal/model/mdsal-model-artifacts/0.13.1-SNAPSHOT/maven-metadata.xml Downloading from opendaylight-snapshot: https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/mdsal/model/mdsal-model-artifacts/0.13.1-SNAPSHOT/mdsal-model-artifacts-0.13.1-SNAPSHOT.pom [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Could not find artifact org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) and 'parent.relativePath' points at no local POM @ line 13, column 13 [FATAL] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT, /home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml, line 13, column 13 [FATAL] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT, /home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml, line 13, column 13 [FATAL] Non-resolvable parent POM for org.opendaylight.ansible:mdsalutils:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 13, column 13 [FATAL] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT, /home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml, line 13, column 13 [FATAL] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT, /home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml, line 13, column 13 [FATAL] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT, /home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml, line 13, column 13 [FATAL] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT, /home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml, line 13, column 13 [ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.controller:mdsal-artifacts:pom:1.8.1-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) @ line 28, column 25 [ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.mdsal.model:mdsal-model-artifacts:pom:0.13.1-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) @ line 35, column 25 [ERROR] 'dependencies.dependency.version' for org.opendaylight.controller:odl-mdsal-broker:xml:features is missing. @ line 70, column 21 @ [ERROR] The build could not read 9 projects -> [Help 1] [ERROR] [ERROR] The project org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT (/home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Could not find artifact org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) and 'parent.relativePath' points at no local POM @ line 13, column 13 -> [Help 2] [ERROR] [ERROR] The project org.opendaylight.ansible:config-api:[unknown-version] (/home/administrator/new/opendaylight-ansible/config/api/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT, /home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml, line 13, column 13 -> [Help 2] [ERROR] [ERROR] The project org.opendaylight.ansible:config-impl:[unknown-version] (/home/administrator/new/opendaylight-ansible/config/impl/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT, /home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml, line 13, column 13 -> [Help 2] [ERROR] [ERROR] The project org.opendaylight.ansible:mdsalutils:0.1.0-SNAPSHOT (/home/administrator/new/opendaylight-ansible/mdsalutils/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.ansible:mdsalutils:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 13, column 13 -> [Help 2] [ERROR] [ERROR] The project org.opendaylight.ansible.model:ietf-l3vpn-svc:2017-05-02.0-SNAPSHOT (/home/administrator/new/opendaylight-ansible/model/ietf-l3vpn-svc/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT, /home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml, line 13, column 13 -> [Help 2] [ERROR] [ERROR] The project org.opendaylight.ansible:northbound-api:[unknown-version] (/home/administrator/new/opendaylight-ansible/northbound/api/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT, /home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml, line 13, column 13 -> [Help 2] [ERROR] [ERROR] The project org.opendaylight.ansible:northbound-impl:[unknown-version] (/home/administrator/new/opendaylight-ansible/northbound/impl/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT, /home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml, line 13, column 13 -> [Help 2] [ERROR] [ERROR] The project org.opendaylight.ansible:southbound-impl:[unknown-version] (/home/administrator/new/opendaylight-ansible/southbound/impl/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT: Failure to find org.opendaylight.mdsal:binding-parent:pom:0.13.1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ org.opendaylight.ansible:binding-parent:0.1.0-SNAPSHOT, /home/administrator/new/opendaylight-ansible/commons/binding-parent/pom.xml, line 13, column 13 -> [Help 2] [ERROR] [ERROR] The project org.opendaylight.ansible:odl-ansible:0.1.0-SNAPSHOT (/home/administrator/new/opendaylight-ansible/features/odl-ansible/pom.xml) has 3 errors [ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.controller:mdsal-artifacts:pom:1.8.1-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) @ line 28, column 25 -> [Help 2] [ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.mdsal.model:mdsal-model-artifacts:pom:0.13.1-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) @ line 35, column 25 -> [Help 2] [ERROR] 'dependencies.dependency.version' for org.opendaylight.controller:odl-mdsal-broker:xml:features is missing. @ line 70, column 21 [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

Regards, Parul

shague commented 5 years ago

The project work has been moved to the upstream OpenDaylight repo. The code here has not been updated to the latest ODL releases which is why you are hitting the errors related to missing artifacts. Try to grab the latest code from ODL and see if that builds better. We moved the code, had it building and then didn't update so it might have similar issues. Try to do a build with mvn clean install -Pq and see if it works.

You can use the command below to grab the latest code. [1] is an older doc describing how to grab the code also.

git clone https://git.opendaylight.org/gerrit/p/ansible.git

[1] https://docs.opendaylight.org/en/stable-boron/developer-guide/pulling-and-pushing-the-code-from-the-cli.html

parulagrawal14 commented 5 years ago

Hi Sam,

Thank you very much for your help. I could able to compile the code with the above suggestions. One more thing I would like to ask. Not sure if I can ask here. Please feel free if you want me to divert this question to any other forum.

Basically my requirement is to add this ansible feature in ODL. It would be of great help if anyone can tell me the steps to be followed to include this feature in ODL. I installed Karaf using the link https://docs.opendaylight.org/en/stable-fluorine/developer-guide/developing-apps-on-the-opendaylight-controller.html

Thanks in advance.

Regards, Parul

On Mon, Mar 11, 2019 at 7:20 PM Sam Hague notifications@github.com wrote:

The project work has been moved to the upstream OpenDaylight repo. The code here has not been updated to the latest ODL releases which is why you are hitting the errors related to missing artifacts. Try to grab the latest code from ODL and see if that builds better. We moved the code, had it building and then didn't update so it might have similar issues. Try to do a build with mvn clean install -Pq and see if it works.

You can use the command below to grab the latest code. [1] is an older doc describing how to grab the code also.

git clone https://git.opendaylight.org/gerrit/p/ansible.git

[1] https://docs.opendaylight.org/en/stable-boron/developer-guide/pulling-and-pushing-the-code-from-the-cli.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shague/opendaylight-ansible/issues/19#issuecomment-471545739, or mute the thread https://github.com/notifications/unsubscribe-auth/AL780zVvuNtSk2a9esZxPg4YX8OdcH4dks5vVl8QgaJpZM4boOZL .

parulagrawal14 commented 5 years ago

Hi,

I am using the below command to add repository.

opendaylight-user@root>feature:repo-add mvn:org.opendaylight.ansible/southbound-impl/0.2.0-SNAPSHOT/xml/features Adding feature url mvn:org.opendaylight.ansible/southbound-impl/0.2.0-SNAPSHOT/xml/features Error executing command: Error resolving artifact org.opendaylight.ansible:southbound-impl:xml:features:0.2.0-SNAPSHOT: [Could not find artifact org.opendaylight.ansible:southbound-impl:xml:features:0.2.0-SNAPSHOT in defaultlocal (file:/root/ODL/example/karaf/target/assembly/system/)] : mvn:org.opendaylight.ansible/southbound-impl/0.2.0-SNAPSHOT/xml/features

Content of the folder in local repository root@ubuntu:~/.m2/repository/org/opendaylight/ansible/southbound-impl/0.2.0-SNAPSHOT# ls maven-metadata-local.xml southbound-impl-0.2.0-SNAPSHOT.jar southbound-impl-0.2.0-SNAPSHOT.pom _remote.repositories southbound-impl-0.2.0-SNAPSHOT-javadoc.jar southbound-impl-0.2.0-SNAPSHOT-sources.jar

Can you please help me in adding this feature to karaf.

Regards, Parul

On Tue, Mar 12, 2019 at 9:01 AM Parul Agrawal parulagrawal14@gmail.com wrote:

Hi Sam,

Thank you very much for your help. I could able to compile the code with the above suggestions. One more thing I would like to ask. Not sure if I can ask here. Please feel free if you want me to divert this question to any other forum.

Basically my requirement is to add this ansible feature in ODL. It would be of great help if anyone can tell me the steps to be followed to include this feature in ODL. I installed Karaf using the link https://docs.opendaylight.org/en/stable-fluorine/developer-guide/developing-apps-on-the-opendaylight-controller.html

Thanks in advance.

Regards, Parul

On Mon, Mar 11, 2019 at 7:20 PM Sam Hague notifications@github.com wrote:

The project work has been moved to the upstream OpenDaylight repo. The code here has not been updated to the latest ODL releases which is why you are hitting the errors related to missing artifacts. Try to grab the latest code from ODL and see if that builds better. We moved the code, had it building and then didn't update so it might have similar issues. Try to do a build with mvn clean install -Pq and see if it works.

You can use the command below to grab the latest code. [1] is an older doc describing how to grab the code also.

git clone https://git.opendaylight.org/gerrit/p/ansible.git

[1] https://docs.opendaylight.org/en/stable-boron/developer-guide/pulling-and-pushing-the-code-from-the-cli.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shague/opendaylight-ansible/issues/19#issuecomment-471545739, or mute the thread https://github.com/notifications/unsubscribe-auth/AL780zVvuNtSk2a9esZxPg4YX8OdcH4dks5vVl8QgaJpZM4boOZL .

parulagrawal14 commented 5 years ago

Hi Sam,

We could able to resolve the reported issue. But we are facing another issue while compiling dlux from GitHub. Can you please share the updated repository of dlux. Thanks for all your support so far.

Regards, Parul

On Tue, 12 Mar 2019 at 11:38 AM, Parul Agrawal parulagrawal14@gmail.com wrote:

Hi,

I am using the below command to add repository.

opendaylight-user@root>feature:repo-add mvn:org.opendaylight.ansible/southbound-impl/0.2.0-SNAPSHOT/xml/features Adding feature url mvn:org.opendaylight.ansible/southbound-impl/0.2.0-SNAPSHOT/xml/features Error executing command: Error resolving artifact org.opendaylight.ansible:southbound-impl:xml:features:0.2.0-SNAPSHOT: [Could not find artifact org.opendaylight.ansible:southbound-impl:xml:features:0.2.0-SNAPSHOT in defaultlocal (file:/root/ODL/example/karaf/target/assembly/system/)] : mvn:org.opendaylight.ansible/southbound-impl/0.2.0-SNAPSHOT/xml/features

Content of the folder in local repository root@ubuntu:~/.m2/repository/org/opendaylight/ansible/southbound-impl/0.2.0-SNAPSHOT# ls maven-metadata-local.xml southbound-impl-0.2.0-SNAPSHOT.jar southbound-impl-0.2.0-SNAPSHOT.pom _remote.repositories southbound-impl-0.2.0-SNAPSHOT-javadoc.jar southbound-impl-0.2.0-SNAPSHOT-sources.jar

Can you please help me in adding this feature to karaf.

Regards, Parul

On Tue, Mar 12, 2019 at 9:01 AM Parul Agrawal parulagrawal14@gmail.com wrote:

Hi Sam,

Thank you very much for your help. I could able to compile the code with the above suggestions. One more thing I would like to ask. Not sure if I can ask here. Please feel free if you want me to divert this question to any other forum.

Basically my requirement is to add this ansible feature in ODL. It would be of great help if anyone can tell me the steps to be followed to include this feature in ODL. I installed Karaf using the link https://docs.opendaylight.org/en/stable-fluorine/developer-guide/developing-apps-on-the-opendaylight-controller.html

Thanks in advance.

Regards, Parul

On Mon, Mar 11, 2019 at 7:20 PM Sam Hague notifications@github.com wrote:

The project work has been moved to the upstream OpenDaylight repo. The code here has not been updated to the latest ODL releases which is why you are hitting the errors related to missing artifacts. Try to grab the latest code from ODL and see if that builds better. We moved the code, had it building and then didn't update so it might have similar issues. Try to do a build with mvn clean install -Pq and see if it works.

You can use the command below to grab the latest code. [1] is an older doc describing how to grab the code also.

git clone https://git.opendaylight.org/gerrit/p/ansible.git

[1] https://docs.opendaylight.org/en/stable-boron/developer-guide/pulling-and-pushing-the-code-from-the-cli.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shague/opendaylight-ansible/issues/19#issuecomment-471545739, or mute the thread https://github.com/notifications/unsubscribe-auth/AL780zVvuNtSk2a9esZxPg4YX8OdcH4dks5vVl8QgaJpZM4boOZL .

parulagrawal14 commented 5 years ago

Hi,

I am facing issue on adding ansible feature to controlller of stable/oxygen branch. I would list down the steps i performed.

1) checked out and compiled controller code from stable/oxygen branch ( https://github.com/opendaylight/controller.git) 2) checked out dlux and dluxapp from stable/oxygen branch and could able to compile and add this feature to controller 3) checked out the code and compiled ansible from git clone https://git.opendaylight.org/gerrit/p/ansible.git Now I would like to add this feature ansible to controller. But I am facing the same problem of Fragment was not selected for attachment: org.apache.karaf.features.extension/4.2.1 while installing this feature. Can anyone please point out the stable/oxygen branch of ansible.

Also it would be really great if anyone can help me in achieving the above requirement,

Regards, Parul

On Tue, Mar 12, 2019 at 6:00 PM Parul Agrawal parulagrawal14@gmail.com wrote:

Hi Sam,

We could able to resolve the reported issue. But we are facing another issue while compiling dlux from GitHub. Can you please share the updated repository of dlux. Thanks for all your support so far.

Regards, Parul

On Tue, 12 Mar 2019 at 11:38 AM, Parul Agrawal parulagrawal14@gmail.com wrote:

Hi,

I am using the below command to add repository.

opendaylight-user@root>feature:repo-add mvn:org.opendaylight.ansible/southbound-impl/0.2.0-SNAPSHOT/xml/features Adding feature url mvn:org.opendaylight.ansible/southbound-impl/0.2.0-SNAPSHOT/xml/features Error executing command: Error resolving artifact org.opendaylight.ansible:southbound-impl:xml:features:0.2.0-SNAPSHOT: [Could not find artifact org.opendaylight.ansible:southbound-impl:xml:features:0.2.0-SNAPSHOT in defaultlocal (file:/root/ODL/example/karaf/target/assembly/system/)] : mvn:org.opendaylight.ansible/southbound-impl/0.2.0-SNAPSHOT/xml/features

Content of the folder in local repository root@ubuntu:~/.m2/repository/org/opendaylight/ansible/southbound-impl/0.2.0-SNAPSHOT# ls maven-metadata-local.xml southbound-impl-0.2.0-SNAPSHOT.jar southbound-impl-0.2.0-SNAPSHOT.pom _remote.repositories southbound-impl-0.2.0-SNAPSHOT-javadoc.jar southbound-impl-0.2.0-SNAPSHOT-sources.jar

Can you please help me in adding this feature to karaf.

Regards, Parul

On Tue, Mar 12, 2019 at 9:01 AM Parul Agrawal parulagrawal14@gmail.com wrote:

Hi Sam,

Thank you very much for your help. I could able to compile the code with the above suggestions. One more thing I would like to ask. Not sure if I can ask here. Please feel free if you want me to divert this question to any other forum.

Basically my requirement is to add this ansible feature in ODL. It would be of great help if anyone can tell me the steps to be followed to include this feature in ODL. I installed Karaf using the link https://docs.opendaylight.org/en/stable-fluorine/developer-guide/developing-apps-on-the-opendaylight-controller.html

Thanks in advance.

Regards, Parul

On Mon, Mar 11, 2019 at 7:20 PM Sam Hague notifications@github.com wrote:

The project work has been moved to the upstream OpenDaylight repo. The code here has not been updated to the latest ODL releases which is why you are hitting the errors related to missing artifacts. Try to grab the latest code from ODL and see if that builds better. We moved the code, had it building and then didn't update so it might have similar issues. Try to do a build with mvn clean install -Pq and see if it works.

You can use the command below to grab the latest code. [1] is an older doc describing how to grab the code also.

git clone https://git.opendaylight.org/gerrit/p/ansible.git

[1] https://docs.opendaylight.org/en/stable-boron/developer-guide/pulling-and-pushing-the-code-from-the-cli.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shague/opendaylight-ansible/issues/19#issuecomment-471545739, or mute the thread https://github.com/notifications/unsubscribe-auth/AL780zVvuNtSk2a9esZxPg4YX8OdcH4dks5vVl8QgaJpZM4boOZL .

shague commented 5 years ago

Parul,

try to move this discussion over to the OpenDaylight list, discuss@lists.opendaylight.org. Send the latest state that your compile is in.

DLUX can be built for Oxygen and Fluorine - with the right changes. I would move to Flourine as a safer option though since Oxygen will soon be deprecated. Most of the work is just changing the pom versions.

The problem is the github repo was oxygen based, then moved to opendaylight and initially working for the fluorine and neon branches. Then many of the odlparent and mdsal artifacts were bumped. The ansible project was not updated to reflect those changes so it will not build. [1] and [2] are example patches that show the type of pom changes to make to update. [3] is similar but a bump to the fluorine branch. You mainly just change the poms to reflect the right odlparent, mdsal and yangtools versions.

Thanks, Sam

[1] https://git.opendaylight.org/gerrit/#/c/79807/

[2] https://git.opendaylight.org/gerrit/#/c/79675/

[3] https://git.opendaylight.org/gerrit/#/c/78946/

parulagrawal14 commented 5 years ago

Hi Sam,

Thanks for your reply. As suggested I tried to compile dluxapp for fluorine by updating the version of odlparent to 4.0.9 in all pom files. But I am getting the below error on compilation .Can you please help me in this regard?. Thank you for all your support so far.

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 57.653 s <<< FAILURE! - in org.opendaylight.odlparent.featuretest.SingleFeatureTest [ERROR] installFeatureCatchAndLog(org.opendaylight.odlparent.featuretest.SingleFeatureTest)[repoUrl: file:/root/dluxapps/features/odl-dluxapps-topology/target/feature/f eature.xml, Feature: odl-dluxapps-topology 0.7.5.SNAPSHOT] Time elapsed: 54.809 s <<< ERROR! org.apache.karaf.features.internal.util.MultiException: Error restarting bundles: Exception in org.jolokia.osgi.JolokiaActivator.start() of bundle org.jolokia.osgi.

Regards, Parul

On Thu, 14 Mar 2019 at 9:21 PM, Sam Hague notifications@github.com wrote:

Parul,

try to move this discussion over to the OpenDaylight list, discuss@lists.opendaylight.org. Send the latest state that your compile is in.

DLUX can be built for Oxygen and Fluorine - with the right changes. I would move to Flourine as a safer option though since Oxygen will soon be deprecated. Most of the work is just changing the pom versions.

The problem is the github repo was oxygen based, then moved to opendaylight and initially working for the fluorine and neon branches. Then many of the odlparent and mdsal artifacts were bumped. The ansible project was not updated to reflect those changes so it will not build. [1] and [2] are example patches that show the type of pom changes to make to update. [3] is similar but a bump to the fluorine branch. You mainly just change the poms to reflect the right odlparent, mdsal and yangtools versions.

Thanks, Sam

[1] https://git.opendaylight.org/gerrit/#/c/79807/

[2] https://git.opendaylight.org/gerrit/#/c/79675/

[3] h/ https://git.opendaylight.org/gerrit/#/c/78946/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shague/opendaylight-ansible/issues/19#issuecomment-472930490, or mute the thread https://github.com/notifications/unsubscribe-auth/AL7806UtIvCLNBUxClPD0sw5g-XOXu9oks5vWm_vgaJpZM4boOZL .

shague commented 5 years ago

Parul,

I forwarded this discussion to the ODL upstream discuss@lists.opendaylight.org mailing list. Please continue the discussion there so we have dlux and others that can help. [1] is a link to the email. Subscribe to the list so you can keep the discussion going.

[1] https://lists.opendaylight.org/pipermail/discuss/2019-March/008272.html