Ask Your Question
0

Application Development Tutorial: hello project build failure

asked 2016-06-24 11:36:30 -0700

Kamil gravatar image

Hi,

When I build hello project I as a test result I get:

No karaf base dir found in extracted distribution.

and after that building exiting with hello-features failure. There are some listings:

RepoTestRunner.java:26) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

Results :

Tests in error: No karaf base dir found in extracted distribution. No karaf base dir found in extracted distribution. No karaf base dir found in extracted distribution. No karaf base dir found in extracted distribution.

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

[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] hello-api .......................................... SUCCESS [ 58.476 s] [INFO] hello-impl ......................................... SUCCESS [ 38.649 s] [INFO] hello-features ..................................... FAILURE [ 23.961 s] [INFO] hello-karaf ........................................ SKIPPED [INFO] hello-artifacts .................................... SKIPPED [INFO] hello-it ........................................... SKIPPED [INFO] hello .............................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:14 min [INFO] Finished at: 2016-06-24T19:08:44+01:00 [INFO] Final Memory: 122M/293M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project hello-features: There are test failures. [ERROR] [ERROR] Please refer to /home/odldev/git/hello/features/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [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/di... [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :hello-features

Could anyone help me to deal with it?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-28 08:55:29 -0700

monicarajasekaran gravatar image

If you used the tutorial provided on the opendaylight website, you can just follow https://www.youtube.com/watch?v=2wTEu... for a simple hello world app.

Please make sure to update ~/.m2/settings.xml.

edit flag offensive delete publish link more

Comments

Can you please elaborate this solution as I am having the same trouble and couldn't understand your comment.

FidaGillani ( 2016-07-20 12:07:55 -0700 )edit
Login/Signup to Answer

Stats

Asked: 2016-06-24 11:36:30 -0700

Seen: 130 times

Last updated: Jun 28 '16