Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
OSGi unresolved constraint on querydsl-jpa 3.4.2 #900
I am trying to integrate querydsl into karaf 3.0.2-SNAPSHOT. However, when I try to start one of my service bundles, I get the following exception.
Unable to execute command on bundle 162: Unresolved constraint in bundle .Unable to resolve 162.1: missing requirement [162.1] osgi.wiring.package; (osgi.wiring.package=com.mysema.query.jpa.impl)
While querying the headers for my bundle, I can see the following:
The package com.mysema.query.jpa.impl package has no version.
I queried the header for the querydsl-jpa bundle and I could not see any export for this package.
Headers for the querydsl-jpa bundle:
The client code is this:
QApplication application = QApplication.application;
I believe the JPAQuery class is in the package com.mysema.query.jpa.impl and this package needs to be exported for other bundles to gain visibility.
Can somebody tell me how to fix this? Thanks in advance.
Looks like the problem still persists. I tried to use the 3.4.3.BUILD-SNAPSHOT and I am getting another error:
Error executing command: Could not start bundle mvn:com.mysema.querydsl/querydsl-jpa/3.4.3.BUILD-SNAPSHOT Unresolved constraint in bundle com.mysema.querydsl.jpa : Unable to resolve 183.0: missing requirement [183.0] osgi.wiring.package; (osgi.wiring.package=com.mysema.util)
I checked the querydsl-root/pom.xml. In the maven-bundle-plugin configuration, what is see is
whereas it should have been
Can you please verify the same?