Skip to content

Bnd resolve task emits unexportable version requirement #3762

Description

@gamerson

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...

  1. cd eclipse.headless.app
  2. ../gradlew resolve
  3. ../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

Metadata

Metadata

Assignees

Labels

maint-candidateIssues or pull requests that are candidates for a maintenance release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions