I managed to resolve Import-Package using optional resolutions as you said,
but now the BundleActivator cannot be found.
here's my maven-bundle-plugin configuration :
____________________________________________________________________________________________
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.1.0-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-Name>Tactical Editor Bundle</Bundle-Name>
<Bundle-Version>${pom.version}</Bundle-Version>
<Private-Package>com.tacticaleditor.*</Private-Package>
<Import-Package>
org.*;resolution:=optional,
com.*;resolution:=optional,
net.*;resolution:=optional,
javassist.*;resolution:=optional,
sun.*;resolution:=optional,
javax.persistence.*;resolution:=optional,
javax.crypto.*;resolution:=optional,
javax.servlet.*;resolution:=optional,
javax.security.*;resolution:=optional,
javax.xml.*;resolution:=optional,
samples.*;resolution:=optional,
apple.*;resolution:=optional,
javax.mail.*;resolution:=optional,
junit.*;resolution:=optional,
glu.*;resolution:=optional,
gnu.*;resolution:=optional,
antlr.*;resolution:=optional,
*</Import-Package>
<!-- embed all dependencies -->
<Embed-Dependency>*;scope=compile|runtime;inline=true</Embed-Dependency>
<!-- embed the dependencies of the dependencies-->
<Embed-Transitive>true</Embed-Transitive>
<Bundle-Activator>com.tacticaleditor.Activator</Bundle-Activator>
</instructions>
</configuration>
</plugin>
__________________________________________________________________________________________
And here's the message I get from Felix:
__________________________________________________________________________________________
WARNING:
*** Class 'com.tacticaleditor.Activator' was not found. Bundle 11 does not
import package 'com.tacticaleditor', nor is the package exported by any
other bundle or available from the system class loader.
*** (java.lang.ClassNotFound Exception: *** Class
'com.tacticaleditor.Activator' was not found. Bundle 11 does not import
package 'com.tacticaleditor', nor is the package exported by any other
bundle or available from the system class loader. ***)
WARNING:
*** Class 'com.tacticaleditor.Activator' was not found. Bundle 11 does not
import package 'com.tacticaleditor', nor is the package exported by any
other bundle or available from the system class loader.
*** (java.lang.ClassNotFound Exception: *** Class
'com.tacticaleditor.Activator' was not found. Bundle 11 does not import
package 'com.tacticaleditor', nor is the package exported by any other
bundle or available from the system class loader. ***)
java.lang.ClassNotFoundException: com.tacticaleditor.Activator
__________________________________________________________________________________________
The Activator is in my bundle, I should not have to import it, nor export
it...
Isn't my bundle's classloader supposed to know about the classes within the
bundle?
I'm kindda lost on this one.
-----
Tell me something you don't know!
--
View this message in context:
http://www.nabble.com/Anarchy-in-Private-Package-and-Import-Package-tf4903977.html#a14127257
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]