You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aurélien Pupier (Jira)" <ji...@apache.org> on 2024/07/05 13:05:00 UTC

[jira] [Created] (CAMEL-20947) Enable Jolokia in camel.debug profile of generated project with Camel JBang

Aurélien Pupier created CAMEL-20947:
---------------------------------------

             Summary: Enable Jolokia in camel.debug profile of generated project with Camel JBang
                 Key: CAMEL-20947
                 URL: https://issues.apache.org/jira/browse/CAMEL-20947
             Project: Camel
          Issue Type: Improvement
          Components: camel-jbang
            Reporter: Aurélien Pupier


What do you think about enabling Jolokia in the camel.debug profile of the generated project with Camel JBang?

For Quarkus project, this could be done with:
{noformat}
 <profile>            <id>camel.debug</id>            <activation>                <property>                    <name>camel.debug</name>                    <value>true</value>                </property>            </activation>            <dependencies>                <dependency>                    <groupId>org.apache.camel.quarkus</groupId>                    <artifactId>camel-quarkus-debug</artifactId>                </dependency>            </dependencies>            <build>                <plugins>                    <plugin>                        <groupId>org.apache.maven.plugins</groupId>                        <artifactId>maven-dependency-plugin</artifactId>                        <version>3.7.1</version>                        <executions>                            <execution>                                <id>copy</id>                                <phase>generate-sources</phase>                                <goals>                                    <goal>copy</goal>                                </goals>                                <configuration>                                    <artifactItems>                                      <artifactItem>                                        <groupId>org.jolokia</groupId>                                        <artifactId>jolokia-agent-jvm</artifactId>                                        <version>2.0.3</version>                                        <type>jar</type>                                        <classifier>javaagent</classifier>                                      </artifactItem>                                    </artifactItems>                                    <stripVersion>true</stripVersion>                                </configuration>                            </execution>                        </executions>                    </plugin>                    <plugin>                        <groupId>${quarkus.platform.group-id}</groupId>                        <artifactId>quarkus-maven-plugin</artifactId>                        <configuration>                            <jvmArgs>-Dcamel.main.shutdownTimeout=30 -Dquarkus.camel.source-location-enabled=true -javaagent:target/dependency/jolokia-agent-jvm-javaagent.jar=port=7878,host=localhost</jvmArgs>                        </configuration>                    </plugin>                </plugins>            </build>        </profile>{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)