I have a sample workspace here using bnd 5.1.0-SNAPSHOT
https://github.com/gamerson/eclipse-headless-bnd
In this workspace, if you clone it and do the following...
cd eclipse.headless.app
../gradlew resolve
../gradlew export
It will fail with the following error:
Task :eclipse.headless.app:export.app FAILED
error : Can not find URL for bsn bndtools.runtime.applaunch.eclipse4
error : bndtools.runtime.applaunch.eclipse4;version=snapshot not found
FAILURE: Build failed with an exception.
If you go to the app.bndrun and remove the following line:
bndtools.runtime.applaunch.eclipse4;version=snapshot
with this line
bndtools.runtime.applaunch.eclipse4
And then try the gradlew export, it will work and correctly exports an executable jar.
This bundle bndtools.runtime.applaunch.eclipse4 is coming from a Bnd workspace Local repository. It has the version of 0.1.0.20141204-0657
I have a sample workspace here using bnd 5.1.0-SNAPSHOT
https://github.com/gamerson/eclipse-headless-bnd
In this workspace, if you clone it and do the following...
cd eclipse.headless.app../gradlew resolve../gradlew exportIt will fail with the following error:
If you go to the
app.bndrunand remove the following line:with this line
And then try the
gradlew export, it will work and correctly exports an executable jar.This bundle
bndtools.runtime.applaunch.eclipse4is coming from a Bnd workspaceLocalrepository. It has the version of0.1.0.20141204-0657