You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2020/02/19 06:51:00 UTC

[jira] [Assigned] (KARAF-6618) Version-check of karaf-instance and features

     [ https://issues.apache.org/jira/browse/KARAF-6618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned KARAF-6618:
-------------------------------------------

    Assignee: Jean-Baptiste Onofré

> Version-check of karaf-instance and features
> --------------------------------------------
>
>                 Key: KARAF-6618
>                 URL: https://issues.apache.org/jira/browse/KARAF-6618
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf
>    Affects Versions: 4.2.8
>            Reporter: Matthias Wegner
>            Assignee: Jean-Baptiste Onofré
>            Priority: Trivial
>              Labels: integration-tests
>
> 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.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)