openbaton / generic-vnfm

Repository containing the source code of the generic VNFM
Apache License 2.0
20 stars 20 forks source link

Dependencies for :compile #5

Closed StanOnix closed 8 years ago

StanOnix commented 8 years ago

I have dependencies issues when compiling generic-vnfm. I could not resolve commons-codec because the URL isn't good. In which file can I change it ?

Thank you in advance.

lorenzotomasini commented 8 years ago

Hi StanOnix,

I just compiled the generic-vnfm removing the commons-codec from my cache and i was able to build and start it:

./generic-vnfm.sh clean compile start
:clean
:catalogue:clean
:vnfm-sdk:clean
:vnfm-sdk-amqp:clean

BUILD SUCCESSFUL

Total time: 6.013 secs

This build could be faster, please consider using the Gradle Daemon: http://gradle.org/docs/2.5/userguide/gradle_daemon.html
:catalogue:compileJava
:catalogue:processResources UP-TO-DATE
:catalogue:classes
:catalogue:jar
:vnfm-sdk:compileJava
:vnfm-sdk:processResources UP-TO-DATE
:vnfm-sdk:classes
:vnfm-sdk:jar
:vnfm-sdk-amqp:compileJava
:vnfm-sdk-amqp:processResources UP-TO-DATE
:vnfm-sdk-amqp:classes
:vnfm-sdk-amqp:jar
:compileJava
Download https://repo1.maven.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.pom
Download https://repo1.maven.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.jar
Note: /opt/openbaton/generic-vnfm/src/main/java/org/openbaton/vnfm/generic/GenericVNFM.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:processResources
:classes
:jar
:findMainClass
:startScripts
:distTar
:distZip
:bootRepackage
:assemble
:check
:build
:catalogue:assemble
:catalogue:check
:catalogue:build
:vnfm-sdk:assemble
:vnfm-sdk:check
:vnfm-sdk:build
:vnfm-sdk-amqp:assemble
:vnfm-sdk-amqp:check
:vnfm-sdk-amqp:build

BUILD SUCCESSFUL

Total time: 13.37 secs

This build could be faster, please consider using the Gradle Daemon: http://gradle.org/docs/2.5/userguide/gradle_daemon.html
/opt/openbaton/nfvo /opt/openbaton/generic-vnfm
/opt/openbaton/generic-vnfm

As you can see from the logs, i just downloaded the commons-codec dependency.

Since we are using gradle for what concerns the dependencies, what do you mean with "I could not resolve commons-codec because the URL isn't good" ? we don't specify any url, they are automatically found from the mvncentral repository and it seems that the common-codec are available.

Cheers, Lorenzo

StanOnix commented 8 years ago

`./generic-vnfm.sh clean compile start :clean UP-TO-DATE :catalogue:clean :vnfm-sdk:clean :vnfm-sdk-amqp:clean

BUILD SUCCESSFUL

Total time: 3.13 secs

This build could be faster, please consider using the Gradle Daemon: http://gradle.org/docs/2.5/userguide/gradle_daemon.html :catalogue:compileJava :catalogue:processResources UP-TO-DATE :catalogue:classes :catalogue:jar :vnfm-sdk:compileJava :vnfm-sdk:processResources UP-TO-DATE :vnfm-sdk:classes :vnfm-sdk:jar :vnfm-sdk-amqp:compileJava :vnfm-sdk-amqp:processResources UP-TO-DATE :vnfm-sdk-amqp:classes :vnfm-sdk-amqp:jar :compileJava

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 5.129 secs `

Here is what I have after a clean compile start. I followed very carefully the instructions for installing openbaton but I don't know what I did wrong.

lorenzotomasini commented 8 years ago

I'm able to download even using the browser from "https://repo1.maven.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.pom" or "https://repo1.maven.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.jar".

I suppose that it does not depend on our code. Maybe something with resolving the DNS entry. Can you reach repo1.maven.org ?

StanOnix commented 8 years ago

Yes you're right. My problem did not depend on your code. I just cleaned up the gradle caches and that's it. BTW, I have one question, I don't know if I can ask it here but... Which Openstack VIM can I use for creating my PoP ? Can I implement Openbaton on opnfv platform ?

Thank you in advance.