> is it possible to use only bndrun and not the pom file?

Yes - however in order for the bndrun file to work it needs to have one or more 
repositories to pull bundles from. In the example the repository that is used 
is a “POM repository” i.e. it uses dependencies from a Maven POM. Therefore the 
bndrun can only “see” what’s in the POM!

If you use a different kind of repository then there’s no need to put the 
dependency in the POM file, but then you need to create that other repository 
somehow. The bnd-indexer-maven-plugin may be of interest if you want to go in 
this direction, as might using Gradle and the bnd workspace model.

I hope this helps.

Regards,

Tim


> On 13 Nov 2016, at 07:20, Daghan ACAY <daghana...@hotmail.com> wrote:
> 
> Hi,
> 
> I am looking at http://enroute.osgi.org/tutorial_eval/400-command 
> <http://enroute.osgi.org/tutorial_eval/400-command> and under the heading 
> "Adding the Command Bundle to the Runtime" it says to add the command bundle 
> both to bndrun file and the pom.xml file. Strictly speaking command bundle is 
> not a dependency so it does not need to go pom file. So I am looking 
> something like this to be inserted to bndrun file:
> 
> osgi.identity;filter:='(&(osgi.identity=osgi.enroute.examples.eval.command)(osgi.version>=1.0.0-SNAPSHOT))'
> 
> but when I build with mvn install then I get the following error
> 
>  
> [ERROR] Failed to execute goal 
> biz.aQute.bnd:bnd-export-maven-plugin:3.4.0-SNAPSHOT:export (default) on 
> project osgi.enroute.examples.eval.bndrun: Unable to resolve <<INITIAL>> 
> version=null: missing requirement osgi.enroute.examples.eval.command; 
> osgi.version>=1.0.0-SNAPSHOT -> [Help 1]
> 
> is it possible to use only bndrun and not the pom file?
> 
> Cheers
> -Daghan
> 
> 
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
> https://mail.osgi.org/mailman/listinfo/osgi-dev 
> <https://mail.osgi.org/mailman/listinfo/osgi-dev>
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to