Ask Your Question
1

Toolkit MD-SAL-Simple Archetype compilation failure

asked 2015-01-31 06:57:50 -0700

RMZ gravatar image

updated 2015-01-31 07:02:18 -0700

I've attemped following this guide. I'm running Ubuntu 14.04.

I was able to complete every step successfully up until doing a "mvn clean install" in the application after running the Generator (i.e "mvn clean install" in the generate directory) and deleting the generate directory.

So when running the "mvn clean install" in the applications root I get the following error:

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/ubuntu/odl-apps/test-app/provider/src/main/java/org/opendaylight/controller/config/yang/config/task_provider/impl/TaskProviderModule.java:[12,7] error: TaskProviderModule is not abstract and does not override abstract method canReuse(Module) in Module
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] test-app .......................................... SUCCESS [0.220s]
[INFO] test-app-model .................................... SUCCESS [3.799s]
[INFO] test-app-provider ................................. FAILURE [2.161s]
[INFO] test-app-consumer ................................. SKIPPED
[INFO] test-app-web ...................................... SKIPPED
[INFO] features-test-app ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.703s
[INFO] Finished at: Sat Jan 31 15:42:07 CET 2015
[INFO] Final Memory: 41M/365M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project test-app-provider: Compilation failure
[ERROR] /home/ubuntu/odl-apps/test-app/provider/src/main/java/org/opendaylight/controller/config/yang/config/task_provider/impl/TaskProviderModule.java:[12,7] error: TaskProviderModule is not abstract and does not override abstract method canReuse(Module) in Module

Is there any guide to creating an ODL application that actually works? Because I've tried a few at this point and every single time I run into some issue.

edit retag flag offensive close merge delete

Comments

I encounter the same problem (on OS X).

avoellmy ( 2015-02-02 16:04:56 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-02 16:30:47 -0700

tbachman gravatar image

I'm less familiar with the toolkit archetype, but I'd recommend going to the newer version that was created here:

https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:StartupProject_Archetype

This sets a project up using the "best practices" that we hope to use going forward.

edit flag offensive delete publish link more

Comments

I am having the same problem on Ubuntu 12.04, unfortunately the page you provided doesn't have any content.

mjmushi ( 2015-02-03 06:37:55 -0700 )edit
1

I've tried to do the steps in the guide you linked. However when executing "mvn clean install" the "<artifactid>-features" module fails to build because it is unable to resolve the "<artifactid>-impl" artifact. The "<artifactid>-api" and "<artifactid>-impl" build successfully however.

RMZ ( 2015-02-04 02:55:16 -0700 )edit

Thanks all, it worked for me!

mjmushi ( 2015-02-04 14:42:48 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2015-01-31 06:57:50 -0700

Seen: 328 times

Last updated: Feb 02 '15