Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Invalid
-
4.2.8
-
None
Description
Some of my integrations-test fail again. I think i found my error. I not corrected the karaf-version from the feature-build and the karaf-instance and it seems to work a while. Now i solved it with on unit-test-side with
String karafVersion = System.getProperty("karaf.version");
MavenArtifactUrlReference karafUrl = maven().groupId("org.apache.karaf").artifactId("apache-karaf").version(karafVersion).type("tar.gz");
and on pom-side
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<!-- Set property to java.system.property, so it could be loaded to build karaf-test-instance -->
<name>karaf.version</name>
<value>${karaf.version}</value>
</property>
</systemProperties>
</configuration>
</plugin>
Is there a validation which tests if the karaf-instance is the same as the loaded features?
If not it would be nice, because there was no error. My integration-tests stuck and freeze if i load a feature with "higher" version as the karaf-instance in the test.
Maybe i am wrong, but the correct version match in my project solved the problem.