Hi,
You can add/remove feature from you distribution in
etc/org.apache.karaf.features.cfg
If you are using the karaf-maven-plugin to build your distribution you
can choose the included features.
Here an example:
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<extensions>false</extensions>
<executions>
<execution>
<id>package</id>
<goals>
<goal>assembly</goal>
<goal>archive</goal>
</goals>
</execution>
</executions>
<configuration>
<finalName>${project.artifactId}</finalName>
<bootFeatures>
<feature>wrap</feature>
<feature>bundle</feature>
<feature>config</feature>
<feature>system</feature>
<feature>feature</feature>
<feature>package</feature>
<feature>log</feature>
<feature>ssh</feature>
<feature>instance</feature>
<feature>shell</feature>
<feature>management</feature>
<feature>service</feature>
<feature>jaas</feature>
<feature>deployer</feature>
<feature>diagnostic</feature>
<feature>scr</feature>
<feature>http</feature>
<feature>war</feature>
<feature>decanter-collector-rest-servlet</feature>
</bootFeatures>
<installedFeatures>
<feature>aries-blueprint</feature>
<feature>shell-compat</feature>
</installedFeatures>
<startupFeatures>
<feature>eventadmin</feature>
</startupFeatures>
<archiveTarGz>true</archiveTarGz>
<archiveZip>true</archiveZip>
<workDirectory>${project.build.directory}/assembly/karaf</workDirectory>
<pathPrefix>karaf</pathPrefix>
<writeProfiles>true</writeProfiles>
</configuration>
</plugin>
You have to define the repo and framework in your maven dependencies:
<dependencies>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<version>${karaf.runtime.version}</version>
<type>kar</type>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<version>${karaf.runtime.version}</version>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>standard</artifactId>
<version>${karaf.runtime.version}</version>
<classifier>features</classifier>
<type>xml</type>
</dependency>
</dependencies>
regards,
François
[email protected]
Le 31/07/2020 à 05:38, Andre Schlegel-Tylla a écrit :
> Hello,
>
> I want to disable JMX before start up to avoid port conflicts (I
> handle the other ports). The documentation says I have to remove
> "-Dcom.sun.management.jmxremote" from bin/karaf or bin/karaf.bat. For
> karaf.bat this should be possible, but this option is not part of the
> shell script.
>
> Where can I remove this for unix?
>
> I also have seen the tipp to remove the management feature. I'm
> building a custom karaf distribution with the maven karaf-maven-plugin
> with the standard feature. The management feature is included in the
> standard feature.
>
> How can I exclude the management feature from my distribution?
>
> Kind Regard
> Andre