Ask Your Question
0

Building project generated from opendaylight-startup-archetype fails

asked 2015-02-04 06:28:35 -0700

RMZ gravatar image

updated 2015-02-04 06:35:34 -0700

It was suggested that I follow this guide: https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:StartupProject_Archetype

Generating the project from the archetype is fine. The build is successful.

The build fails when running "mvn clean install" on the project.

Tests in error: 
  Error resolving artifact org.opendaylight.hello:hello-impl:xml:config:1.0-SNAPSHOT: Could not find artifact org.opendaylight.hello:hello-impl:xml:config:1.0-SNAPSHOT in defaultlocal (file:/home/ubuntu/.m2/repository/)
  Error resolving artifact org.opendaylight.hello:hello-impl:xml:config:1.0-SNAPSHOT: Could not find artifact org.opendaylight.hello:hello-impl:xml:config:1.0-SNAPSHOT in defaultlocal (file:/home/ubuntu/.m2/repository/)
  Error resolving artifact org.opendaylight.hello:hello-impl:xml:config:1.0-SNAPSHOT: Could not find artifact org.opendaylight.hello:hello-impl:xml:config:1.0-SNAPSHOT in defaultlocal (file:/home/ubuntu/.m2/repository/)


Tests run: 4, Failures: 0, Errors: 3, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] hello-api ......................................... SUCCESS [7.289s]
[INFO] hello-impl ........................................ SUCCESS [4.116s]
[INFO] hello-features .................................... FAILURE [1:07.430s]
[INFO] hello-karaf ....................................... SKIPPED
[INFO] hello-artifacts ................................... SKIPPED
[INFO] hello-aggregator .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:21.199s
[INFO] Finished at: Wed Feb 04 05:43:07 PST 2015
[INFO] Final Memory: 59M/389M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on project hello-features: There are test failures.

The entire build output can be found here: http://pastebin.com/HcgchRZX

This can be solved by running "mvn install:install-file [...]" (figured this out by using the -DskipTests option). Then it successfully resolves the hello-impl artifact. The build succeeds. However there still seems to be a bunch of exceptions and it says the bundle failed to be created etc.

And the HelloProvider does not seem to to be writing to the log (log:display | grep Hello yields no results), like it should.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-04 11:38:49 -0700

mawil gravatar image

updated 2015-02-04 11:39:29 -0700

Which Java JDK version do you use? Is it possible that you are using Java 8? As far as I know Java 8 is not yet supported by Opendaylight. Maybe you try it with Java JDK 7, I could build and run the sample, at least with Java 7 without problems and also see the "HelloProvider Session Initiated" message in the logs. The Java version that i used is:

/.../target/assembly$ java -version
java version "1.7.0_75"
OpenJDK Runtime Environment 
OpenJDK 64-Bit Server VM
edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-02-04 06:28:35 -0700

Seen: 500 times

Last updated: Feb 04 '15