I want to convert a Maven2 project in a OSGI bundle. I am trying to use maven-bundle-plugin that should create the manifest according to maven dependencies. The problem is that i can't manage to let it work. When I install and run the bundle generated, there is always an error like:
org.osgi.framework.BundleException: The bundle "My_OSGI_Bundle" could not be resolved. Reason: Missing Constraint: Import-Package: com.sun.javadoc;
Each time I add manually the missing constraint among the of the maven-bundle-plugin. But there is always another missing constraint. Now I'm stuck on com.sun.javadoc that I can't add in any way. Anyway... I can't add all the packages manually! Have you any better idea, please? Thank you
===UPDATE===
without adding anything in the export tag, the first error the run of bundle gives to me is:
org.osgi.framework.BundleException: The bundle "Partes_0.1.0.SNAPSHOT [55]" could not be resolved.
Reason:Missing Constraint: Import-Package: com.eviware.soapui.config; version="0.0.0" at
org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1327) at
org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1311) at ..