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

Revision history [back]

click to hide/show revision 1
initial version

The following page answers your question.

https://wiki.opendaylight.org/view/Release/Helium/VTN/DeveloperGuide:Hacking:VTNManager#BuildandRuntheControllerwithVTN_Manager

$ cd ${VTN_DIR}/manager/dist/karaf
$ mvn clean install –DskipTests
$ target/assembly
$ ./bin/karaf

The maven automatically downloads Apache Karaf and artifacts of the controller project. So you don't have to manually copy files.

The following page answers your question.

https://wiki.opendaylight.org/view/Release/Helium/VTN/DeveloperGuide:Hacking:VTNManager#BuildandRuntheControllerwithVTN_Manager

$ cd ${VTN_DIR}/manager/dist/karaf
$ mvn clean install –DskipTests
$ target/assembly
$ ./bin/karaf

The maven automatically downloads Apache Karaf and artifacts of the controller project. So you don't have to manually copy files.

The following page answers your question.

https://wiki.opendaylight.org/view/Release/Helium/VTN/DeveloperGuide:Hacking:VTNManager#BuildandRuntheControllerwithVTN_Manager

$ cd ${VTN_DIR}/manager/dist/karaf
$ mvn clean install –DskipTests
$ target/assembly
$ ./bin/karaf

The maven automatically downloads Apache Karaf and artifacts of the controller project. So you don't have to manually copy files.


(Since the number of characters in comments are limited to 300 and that's too short for my answer to the vinllen's comment, I'm writing the answer here.)

I think there are several ways.

One way is that (1) building each project separately and (2) adding feature repositories of the projects to a local Karaf distribution.

The following are details of an example procedure.

  1. Build and run a local Karaf distribution of a controller project.

    $ cd ${CONTROLLER_DIR}/karaf/opendaylight-karaf $ mvn clean install $ cd target/assembly $ ./bin/karaf

  2. Build VTN features and install them into your local maven repository.

    $ cd ${VTN_DIR}/manager $ mvn clean install -DskipTests

  3. Add the feature repository of the VTN project in the Karaf console.

    opendaylight-user@root>feature:repo-add mvn:org.opendaylight.vtn/features-vtn-manager/0.3.0-SNAPSHOT/xml/features

  4. Install VTN features.

    • You can see the list of registered features repositories by feature:repo-list command in the Karaf console.

    opendaylight-user@root>feature:repo-list

    • You can install VTN features by feature:install command.

    opendaylight-user@root>feature:install odl-vtn-manager-all

The following page answers your question.

https://wiki.opendaylight.org/view/Release/Helium/VTN/DeveloperGuide:Hacking:VTNManager#BuildandRuntheControllerwithVTN_Manager

$ cd ${VTN_DIR}/manager/dist/karaf
$ mvn clean install –DskipTests
$ target/assembly
$ ./bin/karaf

The maven automatically downloads Apache Karaf and artifacts of the controller project. So you don't have to manually copy files.


(Since the number of characters in comments are limited to 300 and that's too short for my answer to the vinllen's comment, I'm writing the answer here.)

I think there are several ways.

One way is that (1) building each project separately and (2) adding feature repositories of the projects to a local Karaf distribution.

The following are details of an example procedure.

  1. (a.) Build and run a local Karaf distribution of a controller project.

    $ cd ${CONTROLLER_DIR}/karaf/opendaylight-karaf
    $ mvn clean install
    $ cd target/assembly
    $ ./bin/karaf

  2. ./bin/karaf

    (b.) Build VTN features and install them into your local maven repository.

    $ cd ${VTN_DIR}/manager
    $ mvn clean install -DskipTests

  3. -DskipTests

    (c.) Add the feature repository of the VTN project in the Karaf console.

    opendaylight-user@root>feature:repo-add mvn:org.opendaylight.vtn/features-vtn-manager/0.3.0-SNAPSHOT/xml/features

  4. mvn:org.opendaylight.vtn/features-vtn-manager/0.3.0-SNAPSHOT/xml/features

    (d.) Install VTN features.

    • You can see the list of registered features repositories by feature:repo-list command in the Karaf console.

    opendaylight-user@root>feature:repo-list

    • opendaylight-user@root>feature:repo-list
      

      You can install VTN features by feature:install command.

    opendaylight-user@root>feature:install odl-vtn-manager-all

odl-vtn-manager-all