karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start
Date Mon, 01 Apr 2019 16:33:44 GMT
The problem is that etc/startup.properties doesn't contain eventadmin ;)

You should have the following line in etc/startup.properties:

mvn\:org.apache.karaf.services/org.apache.karaf.services.eventadmin/4.2.4 =
5

I see several issues in your pom.xml:

1. you should have the framework feature in runtime scope:

        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>framework</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>

2. standard feature should not be in runtime but in compile scope:

        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>standard</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
        </dependency>

I did this two changes in your pom.xml and eventadmin is now part of
etc/startup.properties.

And now, it works.

Regards
JB

On 01/04/2019 17:42, leonardchicco wrote:
> I tried the your proposal solution,  but for me doesn't work.
> In attachment the all zip contain all files of my project
> Can you take a look and say to me the solution?
> Thanks in advance.
> 
> Luca Leonardi
> 
> 
> offline-karaf.zip
> <http://karaf.922171.n3.nabble.com/file/t498205/offline-karaf.zip>  
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message