You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Andre Schlegel-Tylla <an...@virtimo.de> on 2020/08/06 03:53:33 UTC
Re: Disable JMX for Karaf on Linux and custom distribution
Thank you François.
In short, I simply have to list all the features from "standard"
individually except management.
Regards
Andre
Am Fr., 31. Juli 2020 um 08:28 Uhr schrieb Francois Papon <
francois.papon@openobject.fr>:
> 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çoisfpapon@apache.org
>
> 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
>
>