# Quarkus native integration with  Dynatrace Maven OneAgent

**URL:** <https://community.dynatrace.com/t/quarkus-native-integration-with-dynatrace-maven-oneagent/51908>\
**Category:** Open Q&A\
**Tags:** technologies, oneagent, quarkus\
**Created:** [June 2, 2025, 3:58pm UTC](https://community.dynatrace.com/t/quarkus-native-integration-with-dynatrace-maven-oneagent/51908 "2025-06-02T15:58:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanusasidharan](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@sanusasidharan](https://community.dynatrace.com/u/sanusasidharan)\
**Post date:** [June 2, 2025, 3:58pm UTC](https://community.dynatrace.com/t/quarkus-native-integration-with-dynatrace-maven-oneagent/51908/1 "2025-06-02T15:58:39Z")

</div>

Hello Team,

I am trying to implement the below&nbsp; feature in a Quarkus application&nbsp;

> **[GraalVM Native Image](https://docs.dynatrace.com/docs/ingest-from/technology-support/application-software/java/graalvm-native-image)**
>
> Install, configure, and manage Dynatrace GraalVM Native Image module.

The version of Quarkus is 3.8.5 as mentioned in the support document.&nbsp; JDK version 21 , dynatrace-native-maven-plugin version is&nbsp; 2.0.1.&nbsp;  
It is rest based application which makes a call towards oracle database.&nbsp;  
What we see is that during the native complie the&nbsp; dynatrace binaries are not getting attached, due to which the agent is not running when we deploy the application in Openshift.&nbsp;&nbsp;  
The&nbsp;--native-agent-path path is not getting set during the build time.&nbsp; Had anyone integrated&nbsp; dynatrace-native-maven-plugin with&nbsp; Quarkus application&nbsp; ?&nbsp;  
I need some pointers to debug this&nbsp; issue.

```markup
<plugin>
	<groupId>com.dynatrace.buildtools.graalnative</groupId>
	<artifactId>dynatrace-native-maven-plugin</artifactId>
	<version>2.0.1</version>
	<executions>
		<execution>
			<id>setup-agent</id>
			<phase>generate-resources</phase>
			<goals>
				<goal>setup-build-agent</goal>
				<goal>copy-runtime-agent</goal>
			</goals>
			<configuration>
				<agentDownload>
					<environmentUrl>masked</environmentUrl>
					<apiToken>masked</apiToken>
				</agentDownload>
				<agentOptions>loglevelcon=info,agentconfigpath=src/main/resources/agent.json</agentOptions>
			</configuration>
		</execution>
	</executions>
	<extensions>true</extensions>
</plugin>

```

---

<div class="post-metadata">

**Author:** ![gusmazeikis](https://avatars.discourse-cdn.com/v4/letter/g/c2a13f/32.png) [@gusmazeikis](https://community.dynatrace.com/u/gusmazeikis)\
**Post date:** [June 14, 2025, 1:37pm UTC](https://community.dynatrace.com/t/quarkus-native-integration-with-dynatrace-maven-oneagent/51908/2 "2025-06-14T13:37:31Z")

</div>

Hi,  
I found this link where some issues with building the Quarkus Native image are mentioned. In my case, I followed their recommendation to build it directly pointing to my local GraalVM .  
“./mvnw clean package -Pdynatrace-native -Dnative -Dquarkus.native.container-build=false -Dquarkus.native.builder-image=graalvm -DskipTests”  
I hope this helps.  
Regards, Gustavo.  
[Not able to build Quarkus Native image using container build while using dynatrace-native-maven-plugin · Issue #45325 · quarkusio/quarkus · GitHub](https://github.com/quarkusio/quarkus/issues/45325).

---

<div class="post-metadata">

**Author:** ![gusmazeikis](https://avatars.discourse-cdn.com/v4/letter/g/c2a13f/32.png) [@gusmazeikis](https://community.dynatrace.com/u/gusmazeikis)\
**Post date:** [June 18, 2025, 6:03pm UTC](https://community.dynatrace.com/t/quarkus-native-integration-with-dynatrace-maven-oneagent/51908/3 "2025-06-18T18:03:20Z")

</div>

One way to solve the problem regarding&nbsp; **dynatrace-native-maven-plugin** is to mount the **.dynatrace folder** into the container using a **-v** volume. Then update the **-J-agentpath** to use the in-container location and also update the **-cp** path that references the **oneagent-graalnative-feature.jar**.
