I'm working on a codebase that builds a bunch of OSGi modules, and deploys to karaf.
I'm attempting to implement javax.validation using Hibernate Validator. I was able to get the correct Maven artifacts in order for my plain unit tests to work. However, when I ran my PaxExam integration test, it fails with: "Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath." After some research, I determined that I needed to use the "hibernate-validator-osgi-karaf-features" artifact. However, this just gives me a new error: "Could not find artifact org.hibernate:hibernate-validator-osgi-karaf-features:jar:5.4.1.Final in central (http://repo1.maven.org/maven2/)" Here is an excerpt of a "features.xml" file inside the definition of a feature that is dependent feature of the main feature in the module where my integration test is: ---------------- <bundle start-level="100">wrap:mvn:javax.validation/validation-api/1.1.0.Final$Bundle-Name=javax.validation&Bundle-SymbolicName=javax.validation&Bundle-Version=1.1.0.Final</bundle> <bundle>mvn:org.hibernate/hibernate-validator/5.4.1.Final</bundle> <bundle>wrap:mvn:org.hibernate/hibernate-validator-osgi-karaf-features/5.4.1.Final$Bundle-Name=hibernate-validator-osgi-karaf-features&Bundle-SymbolicName=hibernate-validator-osgi-karaf-features&Bundle-Version=5.4.1.Final</bundle> ---------------- I'm guessing that part of my problem is that this is a POM artifact, not a JAR artifact, but I don't know what to do here.
