i have a bundle that uses maven-jaxb2-plugin to generate all classes to target/generated/src/main/java. Then i use maven bundle plugin to create a bundle. It simply works.
Now, i want to exclude (remove) a generated package com.xxx.yyyy.common out of this bundle. So i use:
<Export-Package>
!com.xxx.yyyy.common,com.xxx.*
</Export-Package>
But after having a bundle, that package is still there inside the bundle.