# export all versioned packages, except for the ones which are conditionally included, compare with https://github.com/bndtools/bnd/issues/2131
-exportcontents: ${removeall;${packages;VERSIONED};${packages;CONDITIONAL}}
Whenever I use this in my bnd file I get the following error when building with the bnd-maven-plugin 4.0.0
[INFO] --- bnd-maven-plugin:4.0.0:bnd-process (default) @ org.apache.sling.installer.hc ---
[WARNING] /Users/konradwindszus/git/sling-org-apache-sling-installer-hc/bnd.bnd [0:0]: No translation found for macro: removeall;;
[WARNING] /Users/konradwindszus/git/sling-org-apache-sling-installer-hc/bnd.bnd [0:0]: Invalid package name: '${removeall'
[WARNING] /Users/konradwindszus/git/sling-org-apache-sling-installer-hc/bnd.bnd [0:0]: Invalid package name: '}'
[ERROR] /Users/konradwindszus/git/sling-org-apache-sling-installer-hc/bnd.bnd [0:0]: ${removeall}, is not understood. too few arguments, for cmd: removeall, arguments; [removeall]
This leads to a build failure.
What am I doing wrong? Unfortunately, the new macro is only referenced in https://github.com/bndtools/bnd/wiki/Changes-in-4.0.0 but not yet in https://bnd.bndtools.org/chapters/850-macros.html.
Am I using this incorrectly?
Thanks,
Konrad
--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-exportcontents: ${removeall;not-empty,${packages;VERSIONED};not-empty,${packages;CONDITIONAL}}