You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by nino martinez wael <ni...@gmail.com> on 2018/04/10 05:50:00 UTC

4.2.0 karaf-assembly missing spring?

Hi when I try to use below i get this error:

*[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly
(default-assembly) on project ccadmin-karaf-assembly: Unable to build
assembly: Could not find matching feature for spring/[3,4) -> [Help
1]*

*[ERROR]*


*I wonder what are missing spring 3,4 I can see that spring 5 are being
included.*


<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.netdesign.ccadmin</groupId>
        <artifactId>ccadmin</artifactId>
        <version>1.78-SNAPSHOT</version>
    </parent>

    <groupId>com.netdesign.ccadmin</groupId>
    <artifactId>ccadmin-karaf-assembly</artifactId>
    <version>1.78-SNAPSHOT</version>
    <packaging>karaf-assembly</packaging>

    <name>ccadmin-karaf-assembly</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <karaf.version>4.2.0</karaf.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>framework</artifactId>
            <type>kar</type>
            <version>${karaf.version}</version>

        </dependency>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>framework</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
            <version>${karaf.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>standard</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <version>${karaf.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>spring</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
            <version>${karaf.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>enterprise</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
            <version>${karaf.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf.karaf</groupId>
            <artifactId>apache-cxf</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
            <version>${cxf.version}</version>
        </dependency>

        <dependency>
            <groupId>io.hawt</groupId>
            <artifactId>hawtio-karaf</artifactId>
            <version>1.5.7</version>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>

    </dependencies>
    <profiles>
        <profile>
            <id>release</id>
            <activation>
                <property>
                    <name>IS_M2RELEASEBUILD</name>
                    <value>true</value>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <artifactId>ccadmin-karaf-feature</artifactId>
                    <groupId>com.netdesign.ccadmin</groupId>
                    <classifier>features</classifier>
                    <type>xml</type>
                    <version>${build.parent.version}</version>
                    <scope>runtime</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>snapshot</id>
            <activation>
                <property>
                    <name>IS_M2RELEASEBUILD</name>
                    <value>false</value>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <artifactId>ccadmin-karaf-feature</artifactId>
                    <groupId>com.netdesign.ccadmin</groupId>
                    <classifier>features</classifier>
                    <type>xml</type>
                    <version>${project.version}</version>
                    <scope>runtime</scope>
                </dependency>
            </dependencies>
        </profile>

    </profiles>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>3.0.2</version>
            </plugin>
                <plugin>
                    <groupId>org.apache.karaf.tooling</groupId>
                    <artifactId>karaf-maven-plugin</artifactId>
                    <extensions>true</extensions>
                    <version>${karaf.version}</version>
                    <configuration>
                        <installedFeatures>
                            <feature>wrapper</feature>
                            <feature>cxf</feature>
                            <feature>cxf-commands</feature>
                            <!--<feature>ccadmin</feature>-->
                        </installedFeatures>
                        <bootFeatures>
                            <feature>webconsole</feature>
                            <feature>eventadmin</feature>
                            <feature>wrap</feature>
                            <feature>scr</feature>
                            <feature>shell</feature>
                            <feature>feature</feature>
                            <feature>jaas</feature>
                            <feature>management</feature>
                            <feature>bundle</feature>
                            <feature>config</feature>
                            <feature>deployer</feature>
                            <feature>diagnostic</feature>
                            <feature>feature</feature>
                            <feature>instance</feature>
                            <feature>kar</feature>
                            <feature>log</feature>
                            <feature>package</feature>
                            <feature>service</feature>
                            <feature>system</feature>
                            <feature>hawtio-offline</feature>
                        </bootFeatures>
                        <javase>1.8</javase>
                    </configuration>
                </plugin>
            </plugins>
    </build>
</project>






-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: 4.2.0 karaf-assembly missing spring?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Good ;)

Thanks for the update.

Regards
JB

On 10/04/2018 08:16, nino martinez wael wrote:
> yeah I see, I were using an old cxf 3.0.2 after upgrading to 3.2.4 it 
> assembles :)
> 
> On Tue, Apr 10, 2018 at 8:09 AM, Jean-Baptiste Onofré <jb@nanthrax.net 
> <ma...@nanthrax.net>> wrote:
> 
>     http-whiteboard feature version is 4.2.0 (as part of the standard
>     features repository), so, it's not in the range.
> 
>     The range should be [2,5).
> 
>     Regards
>     JB
> 
>     On 10/04/2018 08:05, nino martinez wael wrote:
> 
>         hmm next level issue are:
> 
>         ERROR] Failed to execute goal
>         org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly
>         (default-assembly) on project ccadmin-karaf-assembly: Unable to
>         build assembly: Could not find matching feature for
>         http-whiteboard/[2,4) -> [Help 1]
>         [ERROR]
>         [ERROR] To see the full stack trace of the errors, re-run Maven
>         with the -e switch.
>         [ERROR] Re-run Maven using the -X switch to enable full debug
>         logging.
> 
> 
> 
> 
>         On Tue, Apr 10, 2018 at 8:04 AM, Jean-Baptiste Onofré
>         <jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
> 
>              Yeah, probably.
> 
>              Regards
>              JB
> 
>              On 10/04/2018 08:02, nino martinez wael wrote:
> 
>                  And could see that it was the cxf feature that apparently
>                  requires the old spring..
> 
>                  On Tue, Apr 10, 2018 at 8:01 AM, nino martinez wael
>                  <nino.martinez.wael@gmail.com
>         <ma...@gmail.com>
>                  <mailto:nino.martinez.wael@gmail.com
>         <ma...@gmail.com>>
>                  <mailto:nino.martinez.wael@gmail.com
>         <ma...@gmail.com>
>                  <mailto:nino.martinez.wael@gmail.com
>         <ma...@gmail.com>>>> wrote:
> 
>                       thanks:)
> 
>                       On Tue, Apr 10, 2018 at 7:55 AM, Jean-Baptiste Onofré
>                       <jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>> wrote:
> 
>                           Hi Nino,
> 
>                           the spring "old" versions moved in
>         spring-legacy features
>                           repository.
> 
>                           So, you have to add spring-legacy repo:
> 
>                                 
>         mvn:org.apache.karaf.features/spring-legacy/4.2.0/xml/features
> 
>                           Regards
>                           JB
> 
>                           On 10/04/2018 07:50, nino martinez wael wrote:
> 
>                               Hi when I try to use below i get this error:
> 
>                               /[ERROR] Failed to execute goal
>                                     
>         org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly
>                               (default-assembly) on project
>                  ccadmin-karaf-assembly: Unable
>                               to build assembly: Could not find matching
>         feature for
>                               spring/[3,4) -> [Help 1]/
> 
>                               /[ERROR]/
> 
> 
>                               /I wonder what are missing spring 3,4 I
>         can see
>                  that spring
>                               5 are being included./
> 
> 
> 
>                               <?xml version="1.0" encoding="UTF-8"?>
>                               <project
>         xmlns="http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>
>                  <http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>>
>                               <http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>
>                  <http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>>>"
>                                     
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>         <http://www.w3.org/2001/XMLSchema-instance>
>                  <http://www.w3.org/2001/XMLSchema-instance
>         <http://www.w3.org/2001/XMLSchema-instance>>
>                               <http://www.w3.org/2001/XMLSchema-instance
>         <http://www.w3.org/2001/XMLSchema-instance>
>                  <http://www.w3.org/2001/XMLSchema-instance
>         <http://www.w3.org/2001/XMLSchema-instance>>>"
>                                     
>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>
>                  <http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>>
>                               <http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>
>                  <http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>>>
>         http://maven.apache.org/xsd/maven-4.0.0.xsd
>         <http://maven.apache.org/xsd/maven-4.0.0.xsd>
>                  <http://maven.apache.org/xsd/maven-4.0.0.xsd
>         <http://maven.apache.org/xsd/maven-4.0.0.xsd>>
> 
>                              
>         <http://maven.apache.org/xsd/maven-4.0.0.xsd
>         <http://maven.apache.org/xsd/maven-4.0.0.xsd>
>                  <http://maven.apache.org/xsd/maven-4.0.0.xsd
>         <http://maven.apache.org/xsd/maven-4.0.0.xsd>>>">
>                                     <modelVersion>4.0.0</modelVersion>
>                                     <parent>
>                                       
>           <groupId>com.netdesign.ccadmin</groupId>
>                                         <artifactId>ccadmin</artifactId>
>                                         <version>1.78-SNAPSHOT</version>
>                                     </parent>
> 
>                                     <groupId>com.netdesign.ccadmin</groupId>
>                                   
>           <artifactId>ccadmin-karaf-assembly</artifactId>
>                                     <version>1.78-SNAPSHOT</version>
>                                     <packaging>karaf-assembly</packaging>
> 
>                                     <name>ccadmin-karaf-assembly</name>
> 
>                                     <properties>
>                                                         
>             <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>                                         <karaf.version>4.2.0</karaf.version>
>                                     </properties>
>                                     <dependencies>
>                                         <dependency>
>                                                   
>           <groupId>org.apache.karaf.features</groupId>
>                                           
>           <artifactId>framework</artifactId>
>                                             <type>kar</type>
>                                           
>           <version>${karaf.version}</version>
> 
>                                         </dependency>
>                                         <dependency>
>                                                   
>           <groupId>org.apache.karaf.features</groupId>
>                                           
>           <artifactId>framework</artifactId>
>                                           
>           <classifier>features</classifier>
>                                             <type>xml</type>
>                                             <scope>runtime</scope>
>                                           
>           <version>${karaf.version}</version>
>                                         </dependency>
>                                         <dependency>
>                                                   
>           <groupId>org.apache.karaf.features</groupId>
>                                           
>           <artifactId>standard</artifactId>
>                                           
>           <classifier>features</classifier>
>                                             <type>xml</type>
>                                           
>           <version>${karaf.version}</version>
>                                         </dependency>
>                                         <dependency>
>                                                   
>           <groupId>org.apache.karaf.features</groupId>
>                                             <artifactId>spring</artifactId>
>                                           
>           <classifier>features</classifier>
>                                             <type>xml</type>
>                                             <scope>runtime</scope>
>                                           
>           <version>${karaf.version}</version>
>                                         </dependency>
>                                         <dependency>
>                                                   
>           <groupId>org.apache.karaf.features</groupId>
>                                           
>           <artifactId>enterprise</artifactId>
>                                           
>           <classifier>features</classifier>
>                                             <type>xml</type>
>                                             <scope>runtime</scope>
>                                           
>           <version>${karaf.version}</version>
>                                         </dependency>
>                                         <dependency>
>                                           
>           <groupId>org.apache.cxf.karaf</groupId>
>                                           
>           <artifactId>apache-cxf</artifactId>
>                                           
>           <classifier>features</classifier>
>                                             <type>xml</type>
>                                             <scope>runtime</scope>
>                                           
>           <version>${cxf.version}</version>
>                                         </dependency>
> 
>                                         <dependency>
>                                             <groupId>io.hawt</groupId>
>                                           
>           <artifactId>hawtio-karaf</artifactId>
>                                             <version>1.5.7</version>
>                                           
>           <classifier>features</classifier>
>                                             <type>xml</type>
>                                             <scope>runtime</scope>
>                                         </dependency>
> 
>                                     </dependencies>
>                                     <profiles>
>                                         <profile>
>                                             <id>release</id>
>                                             <activation>
>                                                 <property>
>                                                   
>           <name>IS_M2RELEASEBUILD</name>
>                                                     <value>true</value>
>                                                 </property>
>                                             </activation>
>                                             <dependencies>
>                                                 <dependency>
>                                                                     
>             <artifactId>ccadmin-karaf-feature</artifactId>
>                                                           
>           <groupId>com.netdesign.ccadmin</groupId>
>                                                   
>           <classifier>features</classifier>
>                                                     <type>xml</type>
>                                                           
>           <version>${build.parent.version}</version>
>                                                     <scope>runtime</scope>
>                                                 </dependency>
>                                             </dependencies>
>                                         </profile>
>                                         <profile>
>                                             <id>snapshot</id>
>                                             <activation>
>                                                 <property>
>                                                   
>           <name>IS_M2RELEASEBUILD</name>
>                                                     <value>false</value>
>                                                 </property>
>                                             </activation>
>                                             <dependencies>
>                                                 <dependency>
>                                                                     
>             <artifactId>ccadmin-karaf-feature</artifactId>
>                                                           
>           <groupId>com.netdesign.ccadmin</groupId>
>                                                   
>           <classifier>features</classifier>
>                                                     <type>xml</type>
>                                                           
>           <version>${project.version}</version>
>                                                     <scope>runtime</scope>
>                                                 </dependency>
>                                             </dependencies>
>                                         </profile>
> 
>                                     </profiles>
>                                     <build>
>                                         <plugins>
>                                             <plugin>
>                                                       
>           <groupId>org.apache.maven.plugins</groupId>
>                                                                 
>             <artifactId>maven-dependency-plugin</artifactId>
>                                                 <version>3.0.2</version>
>                                             </plugin>
>                                                 <plugin>
>                                                                     
>             <groupId>org.apache.karaf.to <http://org.apache.karaf.to>
>                  <http://org.apache.karaf.to>oling</groupId>
> 
>                                                                     
>             <artifactId>karaf-maven-plugin</artifactId>
>                                                   
>           <extensions>true</extensions>
>                                                           
>           <version>${karaf.version}</version>
>                                                     <configuration>
>                                                         <installedFeatures>
>                                                                   
>           <feature>wrapper</feature>
>                                                           
>           <feature>cxf</feature>
>                                                                   
>           <feature>cxf-commands</feature>
>                                                                   
>           <!--<feature>ccadmin</feature>-->
>                               </installedFeatures>
>                                                         <bootFeatures>
>                                                                   
>           <feature>webconsole</feature>
>                                                                   
>           <feature>eventadmin</feature>
>                                                           
>           <feature>wrap</feature>
>                                                           
>           <feature>scr</feature>
>                                                           
>           <feature>shell</feature>
>                                                                   
>           <feature>feature</feature>
>                                                           
>           <feature>jaas</feature>
>                                                                   
>           <feature>management</feature>
>                                                           
>           <feature>bundle</feature>
>                                                           
>           <feature>config</feature>
>                                                                   
>           <feature>deployer</feature>
>                                                                   
>           <feature>diagnostic</feature>
>                                                                   
>           <feature>feature</feature>
>                                                                   
>           <feature>instance</feature>
>                                                           
>           <feature>kar</feature>
>                                                           
>           <feature>log</feature>
>                                                                   
>           <feature>package</feature>
>                                                                   
>           <feature>service</feature>
>                                                           
>           <feature>system</feature>
>                                                                   
>           <feature>hawtio-offline</feature>
>                                                         </bootFeatures>
>                                                         <javase>1.8</javase>
>                                                     </configuration>
>                                                 </plugin>
>                                             </plugins>
>                                     </build>
>                               </project>
> 
> 
> 
> 
> 
> 
>                               --             Best regards / Med venlig
>         hilsen
>                               Nino Martinez
> 
> 
> 
> 
>                       --     Best regards / Med venlig hilsen
>                       Nino Martinez
> 
> 
> 
> 
>                  --         Best regards / Med venlig hilsen
>                  Nino Martinez
> 
> 
> 
> 
>         -- 
>         Best regards / Med venlig hilsen
>         Nino Martinez
> 
> 
> 
> 
> -- 
> Best regards / Med venlig hilsen
> Nino Martinez

Re: 4.2.0 karaf-assembly missing spring?

Posted by nino martinez wael <ni...@gmail.com>.
yeah I see, I were using an old cxf 3.0.2 after upgrading to 3.2.4 it
assembles :)

On Tue, Apr 10, 2018 at 8:09 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> http-whiteboard feature version is 4.2.0 (as part of the standard features
> repository), so, it's not in the range.
>
> The range should be [2,5).
>
> Regards
> JB
>
> On 10/04/2018 08:05, nino martinez wael wrote:
>
>> hmm next level issue are:
>>
>> ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly
>> (default-assembly) on project ccadmin-karaf-assembly: Unable to build
>> assembly: Could not find matching feature for http-whiteboard/[2,4) ->
>> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>
>>
>>
>>
>> On Tue, Apr 10, 2018 at 8:04 AM, Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>> wrote:
>>
>>     Yeah, probably.
>>
>>     Regards
>>     JB
>>
>>     On 10/04/2018 08:02, nino martinez wael wrote:
>>
>>         And could see that it was the cxf feature that apparently
>>         requires the old spring..
>>
>>         On Tue, Apr 10, 2018 at 8:01 AM, nino martinez wael
>>         <nino.martinez.wael@gmail.com
>>         <ma...@gmail.com>
>>         <mailto:nino.martinez.wael@gmail.com
>>         <ma...@gmail.com>>> wrote:
>>
>>              thanks:)
>>
>>              On Tue, Apr 10, 2018 at 7:55 AM, Jean-Baptiste Onofré
>>              <jb@nanthrax.net <ma...@nanthrax.net>
>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>>
>>                  Hi Nino,
>>
>>                  the spring "old" versions moved in spring-legacy features
>>                  repository.
>>
>>                  So, you have to add spring-legacy repo:
>>
>>                         mvn:org.apache.karaf.features/
>> spring-legacy/4.2.0/xml/features
>>
>>                  Regards
>>                  JB
>>
>>                  On 10/04/2018 07:50, nino martinez wael wrote:
>>
>>                      Hi when I try to use below i get this error:
>>
>>                      /[ERROR] Failed to execute goal
>>                             org.apache.karaf.tooling:karaf
>> -maven-plugin:4.2.0:assembly
>>                      (default-assembly) on project
>>         ccadmin-karaf-assembly: Unable
>>                      to build assembly: Could not find matching feature
>> for
>>                      spring/[3,4) -> [Help 1]/
>>
>>                      /[ERROR]/
>>
>>
>>                      /I wonder what are missing spring 3,4 I can see
>>         that spring
>>                      5 are being included./
>>
>>
>>
>>                      <?xml version="1.0" encoding="UTF-8"?>
>>                      <project xmlns="http://maven.apache.org/POM/4.0.0
>>         <http://maven.apache.org/POM/4.0.0>
>>                      <http://maven.apache.org/POM/4.0.0
>>         <http://maven.apache.org/POM/4.0.0>>"
>>                             xmlns:xsi="http://www.w3.org/2
>> 001/XMLSchema-instance
>>         <http://www.w3.org/2001/XMLSchema-instance>
>>                      <http://www.w3.org/2001/XMLSchema-instance
>>         <http://www.w3.org/2001/XMLSchema-instance>>"
>>                             xsi:schemaLocation="http://mav
>> en.apache.org/POM/4.0.0
>>         <http://maven.apache.org/POM/4.0.0>
>>                      <http://maven.apache.org/POM/4.0.0
>>         <http://maven.apache.org/POM/4.0.0>>
>>         http://maven.apache.org/xsd/maven-4.0.0.xsd
>>         <http://maven.apache.org/xsd/maven-4.0.0.xsd>
>>
>>                      <http://maven.apache.org/xsd/maven-4.0.0.xsd
>>         <http://maven.apache.org/xsd/maven-4.0.0.xsd>>">
>>                            <modelVersion>4.0.0</modelVersion>
>>                            <parent>
>>                                <groupId>com.netdesign.ccadmin</groupId>
>>                                <artifactId>ccadmin</artifactId>
>>                                <version>1.78-SNAPSHOT</version>
>>                            </parent>
>>
>>                            <groupId>com.netdesign.ccadmin</groupId>
>>                            <artifactId>ccadmin-karaf-ass
>> embly</artifactId>
>>                            <version>1.78-SNAPSHOT</version>
>>                            <packaging>karaf-assembly</packaging>
>>
>>                            <name>ccadmin-karaf-assembly</name>
>>
>>                            <properties>
>>
>>    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>>                                <karaf.version>4.2.0</karaf.version>
>>                            </properties>
>>                            <dependencies>
>>                                <dependency>
>>                                            <groupId>org.apache.karaf.fea
>> tures</groupId>
>>                                    <artifactId>framework</artifactId>
>>                                    <type>kar</type>
>>                                    <version>${karaf.version}</version>
>>
>>                                </dependency>
>>                                <dependency>
>>                                            <groupId>org.apache.karaf.fea
>> tures</groupId>
>>                                    <artifactId>framework</artifactId>
>>                                    <classifier>features</classifier>
>>                                    <type>xml</type>
>>                                    <scope>runtime</scope>
>>                                    <version>${karaf.version}</version>
>>                                </dependency>
>>                                <dependency>
>>                                            <groupId>org.apache.karaf.fea
>> tures</groupId>
>>                                    <artifactId>standard</artifactId>
>>                                    <classifier>features</classifier>
>>                                    <type>xml</type>
>>                                    <version>${karaf.version}</version>
>>                                </dependency>
>>                                <dependency>
>>                                            <groupId>org.apache.karaf.fea
>> tures</groupId>
>>                                    <artifactId>spring</artifactId>
>>                                    <classifier>features</classifier>
>>                                    <type>xml</type>
>>                                    <scope>runtime</scope>
>>                                    <version>${karaf.version}</version>
>>                                </dependency>
>>                                <dependency>
>>                                            <groupId>org.apache.karaf.fea
>> tures</groupId>
>>                                    <artifactId>enterprise</artifactId>
>>                                    <classifier>features</classifier>
>>                                    <type>xml</type>
>>                                    <scope>runtime</scope>
>>                                    <version>${karaf.version}</version>
>>                                </dependency>
>>                                <dependency>
>>                                    <groupId>org.apache.cxf.karaf
>> </groupId>
>>                                    <artifactId>apache-cxf</artifactId>
>>                                    <classifier>features</classifier>
>>                                    <type>xml</type>
>>                                    <scope>runtime</scope>
>>                                    <version>${cxf.version}</version>
>>                                </dependency>
>>
>>                                <dependency>
>>                                    <groupId>io.hawt</groupId>
>>                                    <artifactId>hawtio-karaf</artifactId>
>>                                    <version>1.5.7</version>
>>                                    <classifier>features</classifier>
>>                                    <type>xml</type>
>>                                    <scope>runtime</scope>
>>                                </dependency>
>>
>>                            </dependencies>
>>                            <profiles>
>>                                <profile>
>>                                    <id>release</id>
>>                                    <activation>
>>                                        <property>
>>                                            <name>IS_M2RELEASEBUILD</name>
>>                                            <value>true</value>
>>                                        </property>
>>                                    </activation>
>>                                    <dependencies>
>>                                        <dependency>
>>
>>    <artifactId>ccadmin-karaf-feature</artifactId>
>>
>>  <groupId>com.netdesign.ccadmin</groupId>
>>                                            <classifier>features</classif
>> ier>
>>                                            <type>xml</type>
>>
>>  <version>${build.parent.version}</version>
>>                                            <scope>runtime</scope>
>>                                        </dependency>
>>                                    </dependencies>
>>                                </profile>
>>                                <profile>
>>                                    <id>snapshot</id>
>>                                    <activation>
>>                                        <property>
>>                                            <name>IS_M2RELEASEBUILD</name>
>>                                            <value>false</value>
>>                                        </property>
>>                                    </activation>
>>                                    <dependencies>
>>                                        <dependency>
>>
>>    <artifactId>ccadmin-karaf-feature</artifactId>
>>
>>  <groupId>com.netdesign.ccadmin</groupId>
>>                                            <classifier>features</classif
>> ier>
>>                                            <type>xml</type>
>>
>>  <version>${project.version}</version>
>>                                            <scope>runtime</scope>
>>                                        </dependency>
>>                                    </dependencies>
>>                                </profile>
>>
>>                            </profiles>
>>                            <build>
>>                                <plugins>
>>                                    <plugin>
>>
>>  <groupId>org.apache.maven.plugins</groupId>
>>
>>    <artifactId>maven-dependency-plugin</artifactId>
>>                                        <version>3.0.2</version>
>>                                    </plugin>
>>                                        <plugin>
>>                                                                <groupId>
>> org.apache.karaf.to
>>         <http://org.apache.karaf.to>oling</groupId>
>>
>>
>>    <artifactId>karaf-maven-plugin</artifactId>
>>                                            <extensions>true</extensions>
>>
>>  <version>${karaf.version}</version>
>>                                            <configuration>
>>                                                <installedFeatures>
>>
>>  <feature>wrapper</feature>
>>                                                    <feature>cxf</feature>
>>
>>  <feature>cxf-commands</feature>
>>
>>  <!--<feature>ccadmin</feature>-->
>>                      </installedFeatures>
>>                                                <bootFeatures>
>>
>>  <feature>webconsole</feature>
>>
>>  <feature>eventadmin</feature>
>>                                                    <feature>wrap</feature>
>>                                                    <feature>scr</feature>
>>
>>  <feature>shell</feature>
>>
>>  <feature>feature</feature>
>>                                                    <feature>jaas</feature>
>>
>>  <feature>management</feature>
>>
>>  <feature>bundle</feature>
>>
>>  <feature>config</feature>
>>
>>  <feature>deployer</feature>
>>
>>  <feature>diagnostic</feature>
>>
>>  <feature>feature</feature>
>>
>>  <feature>instance</feature>
>>                                                    <feature>kar</feature>
>>                                                    <feature>log</feature>
>>
>>  <feature>package</feature>
>>
>>  <feature>service</feature>
>>
>>  <feature>system</feature>
>>
>>  <feature>hawtio-offline</feature>
>>                                                </bootFeatures>
>>                                                <javase>1.8</javase>
>>                                            </configuration>
>>                                        </plugin>
>>                                    </plugins>
>>                            </build>
>>                      </project>
>>
>>
>>
>>
>>
>>
>>                      --             Best regards / Med venlig hilsen
>>                      Nino Martinez
>>
>>
>>
>>
>>              --     Best regards / Med venlig hilsen
>>              Nino Martinez
>>
>>
>>
>>
>>         --         Best regards / Med venlig hilsen
>>         Nino Martinez
>>
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: 4.2.0 karaf-assembly missing spring?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
http-whiteboard feature version is 4.2.0 (as part of the standard 
features repository), so, it's not in the range.

The range should be [2,5).

Regards
JB

On 10/04/2018 08:05, nino martinez wael wrote:
> hmm next level issue are:
> 
> ERROR] Failed to execute goal 
> org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly 
> (default-assembly) on project ccadmin-karaf-assembly: Unable to build 
> assembly: Could not find matching feature for http-whiteboard/[2,4) -> 
> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the 
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> 
> 
> 
> 
> On Tue, Apr 10, 2018 at 8:04 AM, Jean-Baptiste Onofré <jb@nanthrax.net 
> <ma...@nanthrax.net>> wrote:
> 
>     Yeah, probably.
> 
>     Regards
>     JB
> 
>     On 10/04/2018 08:02, nino martinez wael wrote:
> 
>         And could see that it was the cxf feature that apparently
>         requires the old spring..
> 
>         On Tue, Apr 10, 2018 at 8:01 AM, nino martinez wael
>         <nino.martinez.wael@gmail.com
>         <ma...@gmail.com>
>         <mailto:nino.martinez.wael@gmail.com
>         <ma...@gmail.com>>> wrote:
> 
>              thanks:)
> 
>              On Tue, Apr 10, 2018 at 7:55 AM, Jean-Baptiste Onofré
>              <jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
> 
>                  Hi Nino,
> 
>                  the spring "old" versions moved in spring-legacy features
>                  repository.
> 
>                  So, you have to add spring-legacy repo:
> 
>                 
>         mvn:org.apache.karaf.features/spring-legacy/4.2.0/xml/features
> 
>                  Regards
>                  JB
> 
>                  On 10/04/2018 07:50, nino martinez wael wrote:
> 
>                      Hi when I try to use below i get this error:
> 
>                      /[ERROR] Failed to execute goal
>                     
>         org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly
>                      (default-assembly) on project
>         ccadmin-karaf-assembly: Unable
>                      to build assembly: Could not find matching feature for
>                      spring/[3,4) -> [Help 1]/
> 
>                      /[ERROR]/
> 
> 
>                      /I wonder what are missing spring 3,4 I can see
>         that spring
>                      5 are being included./
> 
> 
> 
>                      <?xml version="1.0" encoding="UTF-8"?>
>                      <project xmlns="http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>
>                      <http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>>"
>                     
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>         <http://www.w3.org/2001/XMLSchema-instance>
>                      <http://www.w3.org/2001/XMLSchema-instance
>         <http://www.w3.org/2001/XMLSchema-instance>>"
>                     
>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>
>                      <http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>>
>         http://maven.apache.org/xsd/maven-4.0.0.xsd
>         <http://maven.apache.org/xsd/maven-4.0.0.xsd>
> 
>                      <http://maven.apache.org/xsd/maven-4.0.0.xsd
>         <http://maven.apache.org/xsd/maven-4.0.0.xsd>>">
>                            <modelVersion>4.0.0</modelVersion>
>                            <parent>
>                                <groupId>com.netdesign.ccadmin</groupId>
>                                <artifactId>ccadmin</artifactId>
>                                <version>1.78-SNAPSHOT</version>
>                            </parent>
> 
>                            <groupId>com.netdesign.ccadmin</groupId>
>                            <artifactId>ccadmin-karaf-assembly</artifactId>
>                            <version>1.78-SNAPSHOT</version>
>                            <packaging>karaf-assembly</packaging>
> 
>                            <name>ccadmin-karaf-assembly</name>
> 
>                            <properties>
>                                         
>            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>                                <karaf.version>4.2.0</karaf.version>
>                            </properties>
>                            <dependencies>
>                                <dependency>
>                                  
>           <groupId>org.apache.karaf.features</groupId>
>                                    <artifactId>framework</artifactId>
>                                    <type>kar</type>
>                                    <version>${karaf.version}</version>
> 
>                                </dependency>
>                                <dependency>
>                                  
>           <groupId>org.apache.karaf.features</groupId>
>                                    <artifactId>framework</artifactId>
>                                    <classifier>features</classifier>
>                                    <type>xml</type>
>                                    <scope>runtime</scope>
>                                    <version>${karaf.version}</version>
>                                </dependency>
>                                <dependency>
>                                  
>           <groupId>org.apache.karaf.features</groupId>
>                                    <artifactId>standard</artifactId>
>                                    <classifier>features</classifier>
>                                    <type>xml</type>
>                                    <version>${karaf.version}</version>
>                                </dependency>
>                                <dependency>
>                                  
>           <groupId>org.apache.karaf.features</groupId>
>                                    <artifactId>spring</artifactId>
>                                    <classifier>features</classifier>
>                                    <type>xml</type>
>                                    <scope>runtime</scope>
>                                    <version>${karaf.version}</version>
>                                </dependency>
>                                <dependency>
>                                  
>           <groupId>org.apache.karaf.features</groupId>
>                                    <artifactId>enterprise</artifactId>
>                                    <classifier>features</classifier>
>                                    <type>xml</type>
>                                    <scope>runtime</scope>
>                                    <version>${karaf.version}</version>
>                                </dependency>
>                                <dependency>
>                                    <groupId>org.apache.cxf.karaf</groupId>
>                                    <artifactId>apache-cxf</artifactId>
>                                    <classifier>features</classifier>
>                                    <type>xml</type>
>                                    <scope>runtime</scope>
>                                    <version>${cxf.version}</version>
>                                </dependency>
> 
>                                <dependency>
>                                    <groupId>io.hawt</groupId>
>                                    <artifactId>hawtio-karaf</artifactId>
>                                    <version>1.5.7</version>
>                                    <classifier>features</classifier>
>                                    <type>xml</type>
>                                    <scope>runtime</scope>
>                                </dependency>
> 
>                            </dependencies>
>                            <profiles>
>                                <profile>
>                                    <id>release</id>
>                                    <activation>
>                                        <property>
>                                            <name>IS_M2RELEASEBUILD</name>
>                                            <value>true</value>
>                                        </property>
>                                    </activation>
>                                    <dependencies>
>                                        <dependency>
>                                                     
>            <artifactId>ccadmin-karaf-feature</artifactId>
>                                          
>           <groupId>com.netdesign.ccadmin</groupId>
>                                            <classifier>features</classifier>
>                                            <type>xml</type>
>                                          
>           <version>${build.parent.version}</version>
>                                            <scope>runtime</scope>
>                                        </dependency>
>                                    </dependencies>
>                                </profile>
>                                <profile>
>                                    <id>snapshot</id>
>                                    <activation>
>                                        <property>
>                                            <name>IS_M2RELEASEBUILD</name>
>                                            <value>false</value>
>                                        </property>
>                                    </activation>
>                                    <dependencies>
>                                        <dependency>
>                                                     
>            <artifactId>ccadmin-karaf-feature</artifactId>
>                                          
>           <groupId>com.netdesign.ccadmin</groupId>
>                                            <classifier>features</classifier>
>                                            <type>xml</type>
>                                          
>           <version>${project.version}</version>
>                                            <scope>runtime</scope>
>                                        </dependency>
>                                    </dependencies>
>                                </profile>
> 
>                            </profiles>
>                            <build>
>                                <plugins>
>                                    <plugin>
>                                      
>           <groupId>org.apache.maven.plugins</groupId>
>                                                 
>            <artifactId>maven-dependency-plugin</artifactId>
>                                        <version>3.0.2</version>
>                                    </plugin>
>                                        <plugin>
>                                                     
>            <groupId>org.apache.karaf.to
>         <http://org.apache.karaf.to>oling</groupId>
>                                                     
>            <artifactId>karaf-maven-plugin</artifactId>
>                                            <extensions>true</extensions>
>                                          
>           <version>${karaf.version}</version>
>                                            <configuration>
>                                                <installedFeatures>
>                                                  
>           <feature>wrapper</feature>
>                                                    <feature>cxf</feature>
>                                                  
>           <feature>cxf-commands</feature>
>                                                  
>           <!--<feature>ccadmin</feature>-->
>                      </installedFeatures>
>                                                <bootFeatures>
>                                                  
>           <feature>webconsole</feature>
>                                                  
>           <feature>eventadmin</feature>
>                                                    <feature>wrap</feature>
>                                                    <feature>scr</feature>
>                                                    <feature>shell</feature>
>                                                  
>           <feature>feature</feature>
>                                                    <feature>jaas</feature>
>                                                  
>           <feature>management</feature>
>                                                    <feature>bundle</feature>
>                                                    <feature>config</feature>
>                                                  
>           <feature>deployer</feature>
>                                                  
>           <feature>diagnostic</feature>
>                                                  
>           <feature>feature</feature>
>                                                  
>           <feature>instance</feature>
>                                                    <feature>kar</feature>
>                                                    <feature>log</feature>
>                                                  
>           <feature>package</feature>
>                                                  
>           <feature>service</feature>
>                                                    <feature>system</feature>
>                                                  
>           <feature>hawtio-offline</feature>
>                                                </bootFeatures>
>                                                <javase>1.8</javase>
>                                            </configuration>
>                                        </plugin>
>                                    </plugins>
>                            </build>
>                      </project>
> 
> 
> 
> 
> 
> 
>                      --             Best regards / Med venlig hilsen
>                      Nino Martinez
> 
> 
> 
> 
>              --     Best regards / Med venlig hilsen
>              Nino Martinez
> 
> 
> 
> 
>         -- 
>         Best regards / Med venlig hilsen
>         Nino Martinez
> 
> 
> 
> 
> -- 
> Best regards / Med venlig hilsen
> Nino Martinez

Re: 4.2.0 karaf-assembly missing spring?

Posted by nino martinez wael <ni...@gmail.com>.
hmm next level issue are:

ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly
(default-assembly) on project ccadmin-karaf-assembly: Unable to build
assembly: Could not find matching feature for http-whiteboard/[2,4) ->
[Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.




On Tue, Apr 10, 2018 at 8:04 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> Yeah, probably.
>
> Regards
> JB
>
> On 10/04/2018 08:02, nino martinez wael wrote:
>
>> And could see that it was the cxf feature that apparently requires the
>> old spring..
>>
>> On Tue, Apr 10, 2018 at 8:01 AM, nino martinez wael <
>> nino.martinez.wael@gmail.com <ma...@gmail.com>>
>> wrote:
>>
>>     thanks:)
>>
>>     On Tue, Apr 10, 2018 at 7:55 AM, Jean-Baptiste Onofré
>>     <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>
>>         Hi Nino,
>>
>>         the spring "old" versions moved in spring-legacy features
>>         repository.
>>
>>         So, you have to add spring-legacy repo:
>>
>>         mvn:org.apache.karaf.features/spring-legacy/4.2.0/xml/features
>>
>>         Regards
>>         JB
>>
>>         On 10/04/2018 07:50, nino martinez wael wrote:
>>
>>             Hi when I try to use below i get this error:
>>
>>             /[ERROR] Failed to execute goal
>>             org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly
>>             (default-assembly) on project ccadmin-karaf-assembly: Unable
>>             to build assembly: Could not find matching feature for
>>             spring/[3,4) -> [Help 1]/
>>
>>             /[ERROR]/
>>
>>
>>             /I wonder what are missing spring 3,4 I can see that spring
>>             5 are being included./
>>
>>
>>
>>             <?xml version="1.0" encoding="UTF-8"?>
>>             <project xmlns="http://maven.apache.org/POM/4.0.0
>>             <http://maven.apache.org/POM/4.0.0>"
>>             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>>             <http://www.w3.org/2001/XMLSchema-instance>"
>>             xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>             <http://maven.apache.org/POM/4.0.0>
>>             http://maven.apache.org/xsd/maven-4.0.0.xsd
>>
>>             <http://maven.apache.org/xsd/maven-4.0.0.xsd>">
>>                   <modelVersion>4.0.0</modelVersion>
>>                   <parent>
>>                       <groupId>com.netdesign.ccadmin</groupId>
>>                       <artifactId>ccadmin</artifactId>
>>                       <version>1.78-SNAPSHOT</version>
>>                   </parent>
>>
>>                   <groupId>com.netdesign.ccadmin</groupId>
>>                   <artifactId>ccadmin-karaf-assembly</artifactId>
>>                   <version>1.78-SNAPSHOT</version>
>>                   <packaging>karaf-assembly</packaging>
>>
>>                   <name>ccadmin-karaf-assembly</name>
>>
>>                   <properties>
>>                                   <project.build.sourceEncodin
>> g>UTF-8</project.build.sourceEncoding>
>>                       <karaf.version>4.2.0</karaf.version>
>>                   </properties>
>>                   <dependencies>
>>                       <dependency>
>>                           <groupId>org.apache.karaf.features</groupId>
>>                           <artifactId>framework</artifactId>
>>                           <type>kar</type>
>>                           <version>${karaf.version}</version>
>>
>>                       </dependency>
>>                       <dependency>
>>                           <groupId>org.apache.karaf.features</groupId>
>>                           <artifactId>framework</artifactId>
>>                           <classifier>features</classifier>
>>                           <type>xml</type>
>>                           <scope>runtime</scope>
>>                           <version>${karaf.version}</version>
>>                       </dependency>
>>                       <dependency>
>>                           <groupId>org.apache.karaf.features</groupId>
>>                           <artifactId>standard</artifactId>
>>                           <classifier>features</classifier>
>>                           <type>xml</type>
>>                           <version>${karaf.version}</version>
>>                       </dependency>
>>                       <dependency>
>>                           <groupId>org.apache.karaf.features</groupId>
>>                           <artifactId>spring</artifactId>
>>                           <classifier>features</classifier>
>>                           <type>xml</type>
>>                           <scope>runtime</scope>
>>                           <version>${karaf.version}</version>
>>                       </dependency>
>>                       <dependency>
>>                           <groupId>org.apache.karaf.features</groupId>
>>                           <artifactId>enterprise</artifactId>
>>                           <classifier>features</classifier>
>>                           <type>xml</type>
>>                           <scope>runtime</scope>
>>                           <version>${karaf.version}</version>
>>                       </dependency>
>>                       <dependency>
>>                           <groupId>org.apache.cxf.karaf</groupId>
>>                           <artifactId>apache-cxf</artifactId>
>>                           <classifier>features</classifier>
>>                           <type>xml</type>
>>                           <scope>runtime</scope>
>>                           <version>${cxf.version}</version>
>>                       </dependency>
>>
>>                       <dependency>
>>                           <groupId>io.hawt</groupId>
>>                           <artifactId>hawtio-karaf</artifactId>
>>                           <version>1.5.7</version>
>>                           <classifier>features</classifier>
>>                           <type>xml</type>
>>                           <scope>runtime</scope>
>>                       </dependency>
>>
>>                   </dependencies>
>>                   <profiles>
>>                       <profile>
>>                           <id>release</id>
>>                           <activation>
>>                               <property>
>>                                   <name>IS_M2RELEASEBUILD</name>
>>                                   <value>true</value>
>>                               </property>
>>                           </activation>
>>                           <dependencies>
>>                               <dependency>
>>                                               <artifactId>ccadmin-karaf-fe
>> ature</artifactId>
>>                                   <groupId>com.netdesign.ccadmi
>> n</groupId>
>>                                   <classifier>features</classifier>
>>                                   <type>xml</type>
>>                                   <version>${build.parent.versi
>> on}</version>
>>                                   <scope>runtime</scope>
>>                               </dependency>
>>                           </dependencies>
>>                       </profile>
>>                       <profile>
>>                           <id>snapshot</id>
>>                           <activation>
>>                               <property>
>>                                   <name>IS_M2RELEASEBUILD</name>
>>                                   <value>false</value>
>>                               </property>
>>                           </activation>
>>                           <dependencies>
>>                               <dependency>
>>                                               <artifactId>ccadmin-karaf-fe
>> ature</artifactId>
>>                                   <groupId>com.netdesign.ccadmi
>> n</groupId>
>>                                   <classifier>features</classifier>
>>                                   <type>xml</type>
>>                                   <version>${project.version}</version>
>>                                   <scope>runtime</scope>
>>                               </dependency>
>>                           </dependencies>
>>                       </profile>
>>
>>                   </profiles>
>>                   <build>
>>                       <plugins>
>>                           <plugin>
>>                               <groupId>org.apache.maven.plugins</groupId>
>>                                           <artifactId>maven-
>> dependency-plugin</artifactId>
>>                               <version>3.0.2</version>
>>                           </plugin>
>>                               <plugin>
>>                                               <groupId>
>> org.apache.karaf.tooling</groupId>
>>                                               <artifactId>karaf-maven-plug
>> in</artifactId>
>>                                   <extensions>true</extensions>
>>                                   <version>${karaf.version}</version>
>>                                   <configuration>
>>                                       <installedFeatures>
>>                                           <feature>wrapper</feature>
>>                                           <feature>cxf</feature>
>>                                           <feature>cxf-commands</feature>
>>                                           <!--<feature>ccadmin</feature
>> >-->
>>             </installedFeatures>
>>                                       <bootFeatures>
>>                                           <feature>webconsole</feature>
>>                                           <feature>eventadmin</feature>
>>                                           <feature>wrap</feature>
>>                                           <feature>scr</feature>
>>                                           <feature>shell</feature>
>>                                           <feature>feature</feature>
>>                                           <feature>jaas</feature>
>>                                           <feature>management</feature>
>>                                           <feature>bundle</feature>
>>                                           <feature>config</feature>
>>                                           <feature>deployer</feature>
>>                                           <feature>diagnostic</feature>
>>                                           <feature>feature</feature>
>>                                           <feature>instance</feature>
>>                                           <feature>kar</feature>
>>                                           <feature>log</feature>
>>                                           <feature>package</feature>
>>                                           <feature>service</feature>
>>                                           <feature>system</feature>
>>                                           <feature>hawtio-offline</feat
>> ure>
>>                                       </bootFeatures>
>>                                       <javase>1.8</javase>
>>                                   </configuration>
>>                               </plugin>
>>                           </plugins>
>>                   </build>
>>             </project>
>>
>>
>>
>>
>>
>>
>>             --             Best regards / Med venlig hilsen
>>             Nino Martinez
>>
>>
>>
>>
>>     --     Best regards / Med venlig hilsen
>>     Nino Martinez
>>
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: 4.2.0 karaf-assembly missing spring?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yeah, probably.

Regards
JB

On 10/04/2018 08:02, nino martinez wael wrote:
> And could see that it was the cxf feature that apparently requires the 
> old spring..
> 
> On Tue, Apr 10, 2018 at 8:01 AM, nino martinez wael 
> <nino.martinez.wael@gmail.com <ma...@gmail.com>> wrote:
> 
>     thanks:)
> 
>     On Tue, Apr 10, 2018 at 7:55 AM, Jean-Baptiste Onofré
>     <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
> 
>         Hi Nino,
> 
>         the spring "old" versions moved in spring-legacy features
>         repository.
> 
>         So, you have to add spring-legacy repo:
> 
>         mvn:org.apache.karaf.features/spring-legacy/4.2.0/xml/features
> 
>         Regards
>         JB
> 
>         On 10/04/2018 07:50, nino martinez wael wrote:
> 
>             Hi when I try to use below i get this error:
> 
>             /[ERROR] Failed to execute goal
>             org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly
>             (default-assembly) on project ccadmin-karaf-assembly: Unable
>             to build assembly: Could not find matching feature for
>             spring/[3,4) -> [Help 1]/
> 
>             /[ERROR]/
> 
> 
>             /I wonder what are missing spring 3,4 I can see that spring
>             5 are being included./
> 
> 
> 
>             <?xml version="1.0" encoding="UTF-8"?>
>             <project xmlns="http://maven.apache.org/POM/4.0.0
>             <http://maven.apache.org/POM/4.0.0>"
>             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>             <http://www.w3.org/2001/XMLSchema-instance>"
>             xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>             <http://maven.apache.org/POM/4.0.0>
>             http://maven.apache.org/xsd/maven-4.0.0.xsd
>             <http://maven.apache.org/xsd/maven-4.0.0.xsd>">
>                   <modelVersion>4.0.0</modelVersion>
>                   <parent>
>                       <groupId>com.netdesign.ccadmin</groupId>
>                       <artifactId>ccadmin</artifactId>
>                       <version>1.78-SNAPSHOT</version>
>                   </parent>
> 
>                   <groupId>com.netdesign.ccadmin</groupId>
>                   <artifactId>ccadmin-karaf-assembly</artifactId>
>                   <version>1.78-SNAPSHOT</version>
>                   <packaging>karaf-assembly</packaging>
> 
>                   <name>ccadmin-karaf-assembly</name>
> 
>                   <properties>
>                     
>               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>                       <karaf.version>4.2.0</karaf.version>
>                   </properties>
>                   <dependencies>
>                       <dependency>
>                           <groupId>org.apache.karaf.features</groupId>
>                           <artifactId>framework</artifactId>
>                           <type>kar</type>
>                           <version>${karaf.version}</version>
> 
>                       </dependency>
>                       <dependency>
>                           <groupId>org.apache.karaf.features</groupId>
>                           <artifactId>framework</artifactId>
>                           <classifier>features</classifier>
>                           <type>xml</type>
>                           <scope>runtime</scope>
>                           <version>${karaf.version}</version>
>                       </dependency>
>                       <dependency>
>                           <groupId>org.apache.karaf.features</groupId>
>                           <artifactId>standard</artifactId>
>                           <classifier>features</classifier>
>                           <type>xml</type>
>                           <version>${karaf.version}</version>
>                       </dependency>
>                       <dependency>
>                           <groupId>org.apache.karaf.features</groupId>
>                           <artifactId>spring</artifactId>
>                           <classifier>features</classifier>
>                           <type>xml</type>
>                           <scope>runtime</scope>
>                           <version>${karaf.version}</version>
>                       </dependency>
>                       <dependency>
>                           <groupId>org.apache.karaf.features</groupId>
>                           <artifactId>enterprise</artifactId>
>                           <classifier>features</classifier>
>                           <type>xml</type>
>                           <scope>runtime</scope>
>                           <version>${karaf.version}</version>
>                       </dependency>
>                       <dependency>
>                           <groupId>org.apache.cxf.karaf</groupId>
>                           <artifactId>apache-cxf</artifactId>
>                           <classifier>features</classifier>
>                           <type>xml</type>
>                           <scope>runtime</scope>
>                           <version>${cxf.version}</version>
>                       </dependency>
> 
>                       <dependency>
>                           <groupId>io.hawt</groupId>
>                           <artifactId>hawtio-karaf</artifactId>
>                           <version>1.5.7</version>
>                           <classifier>features</classifier>
>                           <type>xml</type>
>                           <scope>runtime</scope>
>                       </dependency>
> 
>                   </dependencies>
>                   <profiles>
>                       <profile>
>                           <id>release</id>
>                           <activation>
>                               <property>
>                                   <name>IS_M2RELEASEBUILD</name>
>                                   <value>true</value>
>                               </property>
>                           </activation>
>                           <dependencies>
>                               <dependency>
>                                 
>               <artifactId>ccadmin-karaf-feature</artifactId>
>                                   <groupId>com.netdesign.ccadmin</groupId>
>                                   <classifier>features</classifier>
>                                   <type>xml</type>
>                                   <version>${build.parent.version}</version>
>                                   <scope>runtime</scope>
>                               </dependency>
>                           </dependencies>
>                       </profile>
>                       <profile>
>                           <id>snapshot</id>
>                           <activation>
>                               <property>
>                                   <name>IS_M2RELEASEBUILD</name>
>                                   <value>false</value>
>                               </property>
>                           </activation>
>                           <dependencies>
>                               <dependency>
>                                 
>               <artifactId>ccadmin-karaf-feature</artifactId>
>                                   <groupId>com.netdesign.ccadmin</groupId>
>                                   <classifier>features</classifier>
>                                   <type>xml</type>
>                                   <version>${project.version}</version>
>                                   <scope>runtime</scope>
>                               </dependency>
>                           </dependencies>
>                       </profile>
> 
>                   </profiles>
>                   <build>
>                       <plugins>
>                           <plugin>
>                               <groupId>org.apache.maven.plugins</groupId>
>                             
>               <artifactId>maven-dependency-plugin</artifactId>
>                               <version>3.0.2</version>
>                           </plugin>
>                               <plugin>
>                                 
>               <groupId>org.apache.karaf.tooling</groupId>
>                                 
>               <artifactId>karaf-maven-plugin</artifactId>
>                                   <extensions>true</extensions>
>                                   <version>${karaf.version}</version>
>                                   <configuration>
>                                       <installedFeatures>
>                                           <feature>wrapper</feature>
>                                           <feature>cxf</feature>
>                                           <feature>cxf-commands</feature>
>                                           <!--<feature>ccadmin</feature>-->
>             </installedFeatures>
>                                       <bootFeatures>
>                                           <feature>webconsole</feature>
>                                           <feature>eventadmin</feature>
>                                           <feature>wrap</feature>
>                                           <feature>scr</feature>
>                                           <feature>shell</feature>
>                                           <feature>feature</feature>
>                                           <feature>jaas</feature>
>                                           <feature>management</feature>
>                                           <feature>bundle</feature>
>                                           <feature>config</feature>
>                                           <feature>deployer</feature>
>                                           <feature>diagnostic</feature>
>                                           <feature>feature</feature>
>                                           <feature>instance</feature>
>                                           <feature>kar</feature>
>                                           <feature>log</feature>
>                                           <feature>package</feature>
>                                           <feature>service</feature>
>                                           <feature>system</feature>
>                                           <feature>hawtio-offline</feature>
>                                       </bootFeatures>
>                                       <javase>1.8</javase>
>                                   </configuration>
>                               </plugin>
>                           </plugins>
>                   </build>
>             </project>
> 
> 
> 
> 
> 
> 
>             -- 
>             Best regards / Med venlig hilsen
>             Nino Martinez
> 
> 
> 
> 
>     -- 
>     Best regards / Med venlig hilsen
>     Nino Martinez
> 
> 
> 
> 
> -- 
> Best regards / Med venlig hilsen
> Nino Martinez

Re: 4.2.0 karaf-assembly missing spring?

Posted by nino martinez wael <ni...@gmail.com>.
And could see that it was the cxf feature that apparently requires the old
spring..

On Tue, Apr 10, 2018 at 8:01 AM, nino martinez wael <
nino.martinez.wael@gmail.com> wrote:

> thanks:)
>
> On Tue, Apr 10, 2018 at 7:55 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
> wrote:
>
>> Hi Nino,
>>
>> the spring "old" versions moved in spring-legacy features repository.
>>
>> So, you have to add spring-legacy repo:
>>
>> mvn:org.apache.karaf.features/spring-legacy/4.2.0/xml/features
>>
>> Regards
>> JB
>>
>> On 10/04/2018 07:50, nino martinez wael wrote:
>>
>>> Hi when I try to use below i get this error:
>>>
>>> /[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly
>>> (default-assembly) on project ccadmin-karaf-assembly: Unable to build
>>> assembly: Could not find matching feature for spring/[3,4) -> [Help 1]/
>>>
>>> /[ERROR]/
>>>
>>>
>>> /I wonder what are missing spring 3,4 I can see that spring 5 are being
>>> included./
>>>
>>>
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
>>> http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>>>      <modelVersion>4.0.0</modelVersion>
>>>      <parent>
>>>          <groupId>com.netdesign.ccadmin</groupId>
>>>          <artifactId>ccadmin</artifactId>
>>>          <version>1.78-SNAPSHOT</version>
>>>      </parent>
>>>
>>>      <groupId>com.netdesign.ccadmin</groupId>
>>>      <artifactId>ccadmin-karaf-assembly</artifactId>
>>>      <version>1.78-SNAPSHOT</version>
>>>      <packaging>karaf-assembly</packaging>
>>>
>>>      <name>ccadmin-karaf-assembly</name>
>>>
>>>      <properties>
>>>          <project.build.sourceEncoding>UTF-8</project.build.
>>> sourceEncoding>
>>>          <karaf.version>4.2.0</karaf.version>
>>>      </properties>
>>>      <dependencies>
>>>          <dependency>
>>>              <groupId>org.apache.karaf.features</groupId>
>>>              <artifactId>framework</artifactId>
>>>              <type>kar</type>
>>>              <version>${karaf.version}</version>
>>>
>>>          </dependency>
>>>          <dependency>
>>>              <groupId>org.apache.karaf.features</groupId>
>>>              <artifactId>framework</artifactId>
>>>              <classifier>features</classifier>
>>>              <type>xml</type>
>>>              <scope>runtime</scope>
>>>              <version>${karaf.version}</version>
>>>          </dependency>
>>>          <dependency>
>>>              <groupId>org.apache.karaf.features</groupId>
>>>              <artifactId>standard</artifactId>
>>>              <classifier>features</classifier>
>>>              <type>xml</type>
>>>              <version>${karaf.version}</version>
>>>          </dependency>
>>>          <dependency>
>>>              <groupId>org.apache.karaf.features</groupId>
>>>              <artifactId>spring</artifactId>
>>>              <classifier>features</classifier>
>>>              <type>xml</type>
>>>              <scope>runtime</scope>
>>>              <version>${karaf.version}</version>
>>>          </dependency>
>>>          <dependency>
>>>              <groupId>org.apache.karaf.features</groupId>
>>>              <artifactId>enterprise</artifactId>
>>>              <classifier>features</classifier>
>>>              <type>xml</type>
>>>              <scope>runtime</scope>
>>>              <version>${karaf.version}</version>
>>>          </dependency>
>>>          <dependency>
>>>              <groupId>org.apache.cxf.karaf</groupId>
>>>              <artifactId>apache-cxf</artifactId>
>>>              <classifier>features</classifier>
>>>              <type>xml</type>
>>>              <scope>runtime</scope>
>>>              <version>${cxf.version}</version>
>>>          </dependency>
>>>
>>>          <dependency>
>>>              <groupId>io.hawt</groupId>
>>>              <artifactId>hawtio-karaf</artifactId>
>>>              <version>1.5.7</version>
>>>              <classifier>features</classifier>
>>>              <type>xml</type>
>>>              <scope>runtime</scope>
>>>          </dependency>
>>>
>>>      </dependencies>
>>>      <profiles>
>>>          <profile>
>>>              <id>release</id>
>>>              <activation>
>>>                  <property>
>>>                      <name>IS_M2RELEASEBUILD</name>
>>>                      <value>true</value>
>>>                  </property>
>>>              </activation>
>>>              <dependencies>
>>>                  <dependency>
>>>                      <artifactId>ccadmin-karaf-feature</artifactId>
>>>                      <groupId>com.netdesign.ccadmin</groupId>
>>>                      <classifier>features</classifier>
>>>                      <type>xml</type>
>>>                      <version>${build.parent.version}</version>
>>>                      <scope>runtime</scope>
>>>                  </dependency>
>>>              </dependencies>
>>>          </profile>
>>>          <profile>
>>>              <id>snapshot</id>
>>>              <activation>
>>>                  <property>
>>>                      <name>IS_M2RELEASEBUILD</name>
>>>                      <value>false</value>
>>>                  </property>
>>>              </activation>
>>>              <dependencies>
>>>                  <dependency>
>>>                      <artifactId>ccadmin-karaf-feature</artifactId>
>>>                      <groupId>com.netdesign.ccadmin</groupId>
>>>                      <classifier>features</classifier>
>>>                      <type>xml</type>
>>>                      <version>${project.version}</version>
>>>                      <scope>runtime</scope>
>>>                  </dependency>
>>>              </dependencies>
>>>          </profile>
>>>
>>>      </profiles>
>>>      <build>
>>>          <plugins>
>>>              <plugin>
>>>                  <groupId>org.apache.maven.plugins</groupId>
>>>                  <artifactId>maven-dependency-plugin</artifactId>
>>>                  <version>3.0.2</version>
>>>              </plugin>
>>>                  <plugin>
>>>                      <groupId>org.apache.karaf.tooling</groupId>
>>>                      <artifactId>karaf-maven-plugin</artifactId>
>>>                      <extensions>true</extensions>
>>>                      <version>${karaf.version}</version>
>>>                      <configuration>
>>>                          <installedFeatures>
>>>                              <feature>wrapper</feature>
>>>                              <feature>cxf</feature>
>>>                              <feature>cxf-commands</feature>
>>>                              <!--<feature>ccadmin</feature>-->
>>> </installedFeatures>
>>>                          <bootFeatures>
>>>                              <feature>webconsole</feature>
>>>                              <feature>eventadmin</feature>
>>>                              <feature>wrap</feature>
>>>                              <feature>scr</feature>
>>>                              <feature>shell</feature>
>>>                              <feature>feature</feature>
>>>                              <feature>jaas</feature>
>>>                              <feature>management</feature>
>>>                              <feature>bundle</feature>
>>>                              <feature>config</feature>
>>>                              <feature>deployer</feature>
>>>                              <feature>diagnostic</feature>
>>>                              <feature>feature</feature>
>>>                              <feature>instance</feature>
>>>                              <feature>kar</feature>
>>>                              <feature>log</feature>
>>>                              <feature>package</feature>
>>>                              <feature>service</feature>
>>>                              <feature>system</feature>
>>>                              <feature>hawtio-offline</feature>
>>>                          </bootFeatures>
>>>                          <javase>1.8</javase>
>>>                      </configuration>
>>>                  </plugin>
>>>              </plugins>
>>>      </build>
>>> </project>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>>
>>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: 4.2.0 karaf-assembly missing spring?

Posted by nino martinez wael <ni...@gmail.com>.
thanks:)

On Tue, Apr 10, 2018 at 7:55 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> Hi Nino,
>
> the spring "old" versions moved in spring-legacy features repository.
>
> So, you have to add spring-legacy repo:
>
> mvn:org.apache.karaf.features/spring-legacy/4.2.0/xml/features
>
> Regards
> JB
>
> On 10/04/2018 07:50, nino martinez wael wrote:
>
>> Hi when I try to use below i get this error:
>>
>> /[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly
>> (default-assembly) on project ccadmin-karaf-assembly: Unable to build
>> assembly: Could not find matching feature for spring/[3,4) -> [Help 1]/
>>
>> /[ERROR]/
>>
>>
>> /I wonder what are missing spring 3,4 I can see that spring 5 are being
>> included./
>>
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>>      <modelVersion>4.0.0</modelVersion>
>>      <parent>
>>          <groupId>com.netdesign.ccadmin</groupId>
>>          <artifactId>ccadmin</artifactId>
>>          <version>1.78-SNAPSHOT</version>
>>      </parent>
>>
>>      <groupId>com.netdesign.ccadmin</groupId>
>>      <artifactId>ccadmin-karaf-assembly</artifactId>
>>      <version>1.78-SNAPSHOT</version>
>>      <packaging>karaf-assembly</packaging>
>>
>>      <name>ccadmin-karaf-assembly</name>
>>
>>      <properties>
>>          <project.build.sourceEncoding>UTF-8</project.
>> build.sourceEncoding>
>>          <karaf.version>4.2.0</karaf.version>
>>      </properties>
>>      <dependencies>
>>          <dependency>
>>              <groupId>org.apache.karaf.features</groupId>
>>              <artifactId>framework</artifactId>
>>              <type>kar</type>
>>              <version>${karaf.version}</version>
>>
>>          </dependency>
>>          <dependency>
>>              <groupId>org.apache.karaf.features</groupId>
>>              <artifactId>framework</artifactId>
>>              <classifier>features</classifier>
>>              <type>xml</type>
>>              <scope>runtime</scope>
>>              <version>${karaf.version}</version>
>>          </dependency>
>>          <dependency>
>>              <groupId>org.apache.karaf.features</groupId>
>>              <artifactId>standard</artifactId>
>>              <classifier>features</classifier>
>>              <type>xml</type>
>>              <version>${karaf.version}</version>
>>          </dependency>
>>          <dependency>
>>              <groupId>org.apache.karaf.features</groupId>
>>              <artifactId>spring</artifactId>
>>              <classifier>features</classifier>
>>              <type>xml</type>
>>              <scope>runtime</scope>
>>              <version>${karaf.version}</version>
>>          </dependency>
>>          <dependency>
>>              <groupId>org.apache.karaf.features</groupId>
>>              <artifactId>enterprise</artifactId>
>>              <classifier>features</classifier>
>>              <type>xml</type>
>>              <scope>runtime</scope>
>>              <version>${karaf.version}</version>
>>          </dependency>
>>          <dependency>
>>              <groupId>org.apache.cxf.karaf</groupId>
>>              <artifactId>apache-cxf</artifactId>
>>              <classifier>features</classifier>
>>              <type>xml</type>
>>              <scope>runtime</scope>
>>              <version>${cxf.version}</version>
>>          </dependency>
>>
>>          <dependency>
>>              <groupId>io.hawt</groupId>
>>              <artifactId>hawtio-karaf</artifactId>
>>              <version>1.5.7</version>
>>              <classifier>features</classifier>
>>              <type>xml</type>
>>              <scope>runtime</scope>
>>          </dependency>
>>
>>      </dependencies>
>>      <profiles>
>>          <profile>
>>              <id>release</id>
>>              <activation>
>>                  <property>
>>                      <name>IS_M2RELEASEBUILD</name>
>>                      <value>true</value>
>>                  </property>
>>              </activation>
>>              <dependencies>
>>                  <dependency>
>>                      <artifactId>ccadmin-karaf-feature</artifactId>
>>                      <groupId>com.netdesign.ccadmin</groupId>
>>                      <classifier>features</classifier>
>>                      <type>xml</type>
>>                      <version>${build.parent.version}</version>
>>                      <scope>runtime</scope>
>>                  </dependency>
>>              </dependencies>
>>          </profile>
>>          <profile>
>>              <id>snapshot</id>
>>              <activation>
>>                  <property>
>>                      <name>IS_M2RELEASEBUILD</name>
>>                      <value>false</value>
>>                  </property>
>>              </activation>
>>              <dependencies>
>>                  <dependency>
>>                      <artifactId>ccadmin-karaf-feature</artifactId>
>>                      <groupId>com.netdesign.ccadmin</groupId>
>>                      <classifier>features</classifier>
>>                      <type>xml</type>
>>                      <version>${project.version}</version>
>>                      <scope>runtime</scope>
>>                  </dependency>
>>              </dependencies>
>>          </profile>
>>
>>      </profiles>
>>      <build>
>>          <plugins>
>>              <plugin>
>>                  <groupId>org.apache.maven.plugins</groupId>
>>                  <artifactId>maven-dependency-plugin</artifactId>
>>                  <version>3.0.2</version>
>>              </plugin>
>>                  <plugin>
>>                      <groupId>org.apache.karaf.tooling</groupId>
>>                      <artifactId>karaf-maven-plugin</artifactId>
>>                      <extensions>true</extensions>
>>                      <version>${karaf.version}</version>
>>                      <configuration>
>>                          <installedFeatures>
>>                              <feature>wrapper</feature>
>>                              <feature>cxf</feature>
>>                              <feature>cxf-commands</feature>
>>                              <!--<feature>ccadmin</feature>-->
>> </installedFeatures>
>>                          <bootFeatures>
>>                              <feature>webconsole</feature>
>>                              <feature>eventadmin</feature>
>>                              <feature>wrap</feature>
>>                              <feature>scr</feature>
>>                              <feature>shell</feature>
>>                              <feature>feature</feature>
>>                              <feature>jaas</feature>
>>                              <feature>management</feature>
>>                              <feature>bundle</feature>
>>                              <feature>config</feature>
>>                              <feature>deployer</feature>
>>                              <feature>diagnostic</feature>
>>                              <feature>feature</feature>
>>                              <feature>instance</feature>
>>                              <feature>kar</feature>
>>                              <feature>log</feature>
>>                              <feature>package</feature>
>>                              <feature>service</feature>
>>                              <feature>system</feature>
>>                              <feature>hawtio-offline</feature>
>>                          </bootFeatures>
>>                          <javase>1.8</javase>
>>                      </configuration>
>>                  </plugin>
>>              </plugins>
>>      </build>
>> </project>
>>
>>
>>
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: 4.2.0 karaf-assembly missing spring?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Nino,

the spring "old" versions moved in spring-legacy features repository.

So, you have to add spring-legacy repo:

mvn:org.apache.karaf.features/spring-legacy/4.2.0/xml/features

Regards
JB

On 10/04/2018 07:50, nino martinez wael wrote:
> Hi when I try to use below i get this error:
> 
> /[ERROR] Failed to execute goal 
> org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly 
> (default-assembly) on project ccadmin-karaf-assembly: Unable to build 
> assembly: Could not find matching feature for spring/[3,4) -> [Help 1]/
> 
> /[ERROR]/
> 
> 
> /I wonder what are missing spring 3,4 I can see that spring 5 are being 
> included./
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>      <modelVersion>4.0.0</modelVersion>
>      <parent>
>          <groupId>com.netdesign.ccadmin</groupId>
>          <artifactId>ccadmin</artifactId>
>          <version>1.78-SNAPSHOT</version>
>      </parent>
> 
>      <groupId>com.netdesign.ccadmin</groupId>
>      <artifactId>ccadmin-karaf-assembly</artifactId>
>      <version>1.78-SNAPSHOT</version>
>      <packaging>karaf-assembly</packaging>
> 
>      <name>ccadmin-karaf-assembly</name>
> 
>      <properties>
>          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>          <karaf.version>4.2.0</karaf.version>
>      </properties>
>      <dependencies>
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>framework</artifactId>
>              <type>kar</type>
>              <version>${karaf.version}</version>
> 
>          </dependency>
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>framework</artifactId>
>              <classifier>features</classifier>
>              <type>xml</type>
>              <scope>runtime</scope>
>              <version>${karaf.version}</version>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>standard</artifactId>
>              <classifier>features</classifier>
>              <type>xml</type>
>              <version>${karaf.version}</version>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>spring</artifactId>
>              <classifier>features</classifier>
>              <type>xml</type>
>              <scope>runtime</scope>
>              <version>${karaf.version}</version>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>enterprise</artifactId>
>              <classifier>features</classifier>
>              <type>xml</type>
>              <scope>runtime</scope>
>              <version>${karaf.version}</version>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.cxf.karaf</groupId>
>              <artifactId>apache-cxf</artifactId>
>              <classifier>features</classifier>
>              <type>xml</type>
>              <scope>runtime</scope>
>              <version>${cxf.version}</version>
>          </dependency>
> 
>          <dependency>
>              <groupId>io.hawt</groupId>
>              <artifactId>hawtio-karaf</artifactId>
>              <version>1.5.7</version>
>              <classifier>features</classifier>
>              <type>xml</type>
>              <scope>runtime</scope>
>          </dependency>
> 
>      </dependencies>
>      <profiles>
>          <profile>
>              <id>release</id>
>              <activation>
>                  <property>
>                      <name>IS_M2RELEASEBUILD</name>
>                      <value>true</value>
>                  </property>
>              </activation>
>              <dependencies>
>                  <dependency>
>                      <artifactId>ccadmin-karaf-feature</artifactId>
>                      <groupId>com.netdesign.ccadmin</groupId>
>                      <classifier>features</classifier>
>                      <type>xml</type>
>                      <version>${build.parent.version}</version>
>                      <scope>runtime</scope>
>                  </dependency>
>              </dependencies>
>          </profile>
>          <profile>
>              <id>snapshot</id>
>              <activation>
>                  <property>
>                      <name>IS_M2RELEASEBUILD</name>
>                      <value>false</value>
>                  </property>
>              </activation>
>              <dependencies>
>                  <dependency>
>                      <artifactId>ccadmin-karaf-feature</artifactId>
>                      <groupId>com.netdesign.ccadmin</groupId>
>                      <classifier>features</classifier>
>                      <type>xml</type>
>                      <version>${project.version}</version>
>                      <scope>runtime</scope>
>                  </dependency>
>              </dependencies>
>          </profile>
> 
>      </profiles>
>      <build>
>          <plugins>
>              <plugin>
>                  <groupId>org.apache.maven.plugins</groupId>
>                  <artifactId>maven-dependency-plugin</artifactId>
>                  <version>3.0.2</version>
>              </plugin>
>                  <plugin>
>                      <groupId>org.apache.karaf.tooling</groupId>
>                      <artifactId>karaf-maven-plugin</artifactId>
>                      <extensions>true</extensions>
>                      <version>${karaf.version}</version>
>                      <configuration>
>                          <installedFeatures>
>                              <feature>wrapper</feature>
>                              <feature>cxf</feature>
>                              <feature>cxf-commands</feature>
>                              <!--<feature>ccadmin</feature>-->
> </installedFeatures>
>                          <bootFeatures>
>                              <feature>webconsole</feature>
>                              <feature>eventadmin</feature>
>                              <feature>wrap</feature>
>                              <feature>scr</feature>
>                              <feature>shell</feature>
>                              <feature>feature</feature>
>                              <feature>jaas</feature>
>                              <feature>management</feature>
>                              <feature>bundle</feature>
>                              <feature>config</feature>
>                              <feature>deployer</feature>
>                              <feature>diagnostic</feature>
>                              <feature>feature</feature>
>                              <feature>instance</feature>
>                              <feature>kar</feature>
>                              <feature>log</feature>
>                              <feature>package</feature>
>                              <feature>service</feature>
>                              <feature>system</feature>
>                              <feature>hawtio-offline</feature>
>                          </bootFeatures>
>                          <javase>1.8</javase>
>                      </configuration>
>                  </plugin>
>              </plugins>
>      </build>
> </project>
> 
> 
> 
> 
> 
> 
> -- 
> Best regards / Med venlig hilsen
> Nino Martinez