cschneider / Karaf-Tutorial

http://cschneider.github.io/Karaf-Tutorial/
Apache License 2.0
271 stars 305 forks source link

tasklist-index fails to build #36

Closed rburgst closed 6 years ago

rburgst commented 7 years ago

sorry, me again. Now that persistence builds fine on Java 8, I am getting problems building tasklist-index.

[ERROR] Failed to execute goal biz.aQute.bnd:bnd-export-maven-plugin:3.3.0:export (default) on project tasklist-index: Default handler for Launcher-Plugin not found in biz.aQute.launcher -> [Help 1]

My versions:

$ mvn -version

Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T21:39:06+02:00)
Maven home: /usr/local/Cellar/maven/3.5.0/libexec
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.4", arch: "x86_64", family: "mac"
rburgst commented 7 years ago

tried the following:

nothing helped :(

cschneider commented 7 years ago

This is a known issue in the plugin. You can open the bndrun file in eclipse and do a export manually the first time. This will install the files. In the next version this should be fixed. A workaround is this hint from the tutorials chat: Update: resolved the "Failed to execute goal biz.aQute.bnd:bnd-export-maven-plugin:3.3.0:export (default) on project tasklist-index: Default handler for Launcher-Plugin not found in biz.aQute.launcher" build problem. I was using a pure maven build. Based on info from bndtools/bnd#1748 I loaded ~/.bnd/default-ws/cnf/cache/3.3.0/bnd-cache/biz.aQute.launcher/biz.aQute.launcher-3.3.0.jar which allowed maven to successfully build the project

rburgst commented 7 years ago

is there a way to do this without eclipse? I am using IntelliJ

cschneider commented 7 years ago

You just need to download the file biz.aQute.launcher-3.3.0.jar from maven central and put it into ~/.bnd/default-ws/cnf/cache/3.3.0/bnd-cache/biz.aQute.launcher .

cschneider commented 7 years ago

This is done by the eclipse plugin on first start and will also be done by the new version of the maven plugin .. I wonder if we could do the same using the pom file to automate the workaround until the new version is out.

rburgst commented 7 years ago

I think a simple line in the readme.md would already help quite a bit

cschneider commented 7 years ago

Actually the index is not needed for the basic example. It is just needed if you also want to look into building the app using bndtools.

cschneider commented 7 years ago

So I now just excluded the tasklist-index project

cschneider commented 6 years ago

I think this is solved