My assembly builds that worked in 4.0.2 don't work in 4.0.3.

The error is:

[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.0.3:assembly
(default-assembly) on project rosapi-assembly-min-test: Unable to
build assembly: Could not find matching feature for
rosapi-common/0.7.105-SNAPSHOT -> [Help 1]

This comes from a pom which says:

 <feature>rosapi-common</feature>

in the list of boot features.

The rosapi-common feature exists in a feature.xml:

        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>rosapi-features</artifactId>
            <version>${project.version}</version>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>

Which contains:

    <feature name="rosapi-common" description="rosapi-common"
version="0.7.105.SNAPSHOT">
        <details>Code in common for Rosette API Web Service 1.5</details>
        <feature prerequisite="false"
dependency="false">bean-validation-support</feature>
        <bundle>mvn:com.basistech.ws/rosapi-common/0.7.105-SNAPSHOT</bundle>
       ...
    </feature>

Note the - in the version in the error message, but the . in the
version in the feature.xml. It's a generated feature.xml via the
karaf-maven-plugin. Is there a way to write the version in the pom
boot list to get around this?

Reply via email to