Your version doesn't look good (0.7.105-SNAPSHOT instead of 0.7.105.SNAPSHOT).

Regards
JB

On 12/03/2015 02:52 PM, Benson Margulies wrote:
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?


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to