I've been able to properly formulate my problem now. The problem lies in the
so-called 'transitive dependencies' of my project, which aren't included by
default into the .jar. I've taken a look at Felix's Maven Bundle Plugin,
which has a  'bundleall' goal that makes bundles out of all transitive
dependencies, which looks very promising. However, it doesn't seem to
include all required dependencies - probably due to those dependencies being
declared as 'provided' in the poms that use them.

So that's a good start, but not an entire solution. I still have to manually
set some dependencies into my project's pom, which is difficult to do for
the more obscure .jars. For example, does anyone know in which library the
package 'weblogic.ejb.utils' is? I can't find it anywhere, let alone in a
Maven repository, and my project's currently chocking on that one, :/.


Yopy wrote:
> 
> So, here's the deal. I'm working with a CMS that works with Felix, which
> is awesome and everything, but when I'm trying to add an external
> dependency through Maven (JSON-lib, to be precise), I'm getting an
> org.osgi.framework.BundleException: Unresolved constraint in bundle 75:
> package; (package=org.apache.log4j).
> 
> I've had this problem before and I could fix one error by manually setting
> a dependency for the missing library in my project's pom.xml, but doesn't
> that kinda defeat the purpose? I mean, the dependency for log4j should be
> / is in the pom.xml file for the dependency, as a result it should
> automagically get its own dependencies when the project that uses said
> dependency is built.
> 
> I'm kinda sure this is a problem in Felix, but it might also be Maven
> related itself. I've searched through Google for solutions for this
> problem, but most posts I find about the subject are related to a specific
> program that gets the problem.
> 
> * Is there any solution to my problem besides manually setting the
> dependency in my project's pom?
> * Is this a Felix problem or am I doing something wrong?
> * Is there any other solution?
> 
> I'd appreciate it if someone would be able to give me a solution to this
> problem, it's kinda annoying.
> 

-- 
View this message in context: 
http://www.nabble.com/Blargh---BundleException%2C-unresolved-constraints-%28Maven%29-tp21977741p22494288.html
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]

Reply via email to