OSGi integration tests should not rely on snapshots from the global maven cache

Description

Currently the Karaf integration tests are depending on the publishToMavenLocal tasks from the hibernate-core and the hibernate-envers modules.

To avoid all problems related with the shared namespace of the snapshot in Maven, we could publish them into a temporary folder of the build directory; then reconfigure Karaf to use this alternative source for dependencies.

An example of the Karaf configuration can be found in Hibernate Search:

https://github.com/hibernate/hibernate-search/blob/5.11/integrationtest/osgi/karaf-it/src/test/java/org/hibernate/search/test/integration/osgi/HibernateSearchWithKarafIT.java#L196-L226

Environment

None

Assignee

Unassigned

Reporter

Sanne Grinovero

Fix versions