I helped an user yesterday with its custom distro:
- eventadmin should be a startup feature (to avoid some refresh)
- for the dependencies, you should have:
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<type>kar</type>
<version>4.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
<version>4.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>standard</artifactId>
<classifier>features</classifier>
<type>xml</type>
<version>4.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>spring</artifactId>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
<version>4.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>enterprise</artifactId>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
<version>4.0.3</version>
</dependency>
- for the karaf-maven-plugin configuration, you should have something like:
<startupFeatures>
<feature>eventadmin</feature>
</startupFeatures>
<bootFeatures>
<feature>standard</feature>
</bootFeatures>
- eventually, depending of the use cases, you may need the <libraries/>
config on the karaf-maven-plugin
Is it the case in your assembly ?
Regards
JB
On 03/09/2016 02:20 PM, F.Aubele wrote:
Having the exact same issues.
Pom looks the same pretty much, i have these additional bootFeatures:
<feature>war</feature>
<feature>scr</feature>
<feature>wrapper</feature>
<feature>webconsole</feature>
<feature>eventadmin</feature>
The rest is equal.
kind regards,
FA
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-4-0-4-Custom-distribution-issues-tp4045709p4045734.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com