GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow the test classes directory to be configured for the NativeTestMojo by thegridman · Pull Request #757 · graalvm/native-build-tools

Conversation

@thegridman

@thegridman thegridman commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

The NativeTestMojo hard codes the location of the test classes to be the project.build.testOutputDirectory. Some Maven projects have test classes in other locations, for example under src/main/java which compiles them to the project.build.outputDirectory.

This PR allows the test classes location to be configured for the NativeTestMojo in the same way that plugins such as Surefire and Failsafe do by setting the <testClassesDirectory> element in the plugin configuration. The default is the project.build.testOutputDirectory.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 30, 2025
@vjovanov
vjovanov requested review from alvarosanchez, dnestoro and vjovanov August 5, 2025 16:36
vjovanov
vjovanov reviewed Aug 6, 2025
View reviewed changes
Comment thread samples/java-application-with-tests-in-src-main/pom.xml Outdated
<skip>false</skip>
<imageName>${imageName}</imageName>
<fallback>false</fallback>
<testClassesDirectory>${project.build.outputDirectory}</testClassesDirectory>

@vjovanov vjovanov Aug 6, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if we can go without an extra parameter. How does the surefire plugin know the test-classes path?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@thegridman thegridman Aug 6, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surefire and Failsafe both assume that the tests are in the default locations. But both have an optional <testClassesDirectory> configuration element that allows you to set a different location. In our case we have test modules where that only contain tests and the source is all under src/main/java and gets compiled to target/classes so we have to tell Surefire and Failsafe to use these directories.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@vjovanov vjovanov Aug 18, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alvarosanchez @melix do you think we can extract this information from Surefire in our plugin, so we don't have to duplicate this entry?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@thegridman thegridman Aug 18, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vjovanov Now I have had another look at how your plugin works you could indeed extract the value from the Surefire or Failsafe plugins. The problem here though is how you are doing this now for the system properties and environment variables does not always work. The current code assumes these things are in the <configuration> section of the plugin XML, but that is not always the case. In our projects for example for plugins we use the <executions> section to configure what the plugin does and inside an <execution> is the <configuration> for that execution (which I believe is combined with any global <configuration>). The issue here though is working out which execution you need to use because there could be multiple. Your plugin would need to know the phase that was being executed so that it could work out the right execution.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@thegridman thegridman Aug 18, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it might not be as hard as I thought. For Surefire you just need to find the <execution> bound to the test goal, and for Failsafe the <execution> bound to the integration-test and verfiy goals.

I'm happy to try this out in my branch.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vjovanov reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@vjovanov
vjovanov requested a review from melix August 6, 2025 09:50
dnestoro
dnestoro reviewed Aug 18, 2025
View reviewed changes

@dnestoro dnestoro left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks okay to me (with few questions that I left). I will wait for @alvarosanchez or @melix approval because I don't know if this is potentially against some Maven policies or conventions (other than that, this looks like a reasonable feature).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread samples/java-application-with-tests-in-src-main/pom.xml
</build>
</profile>
<profile>
<id>shaded</id>

@dnestoro dnestoro Aug 18, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I missing something or this profile is not used in any test? If so, we should delete it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread samples/java-application-with-tests-in-src-main/pom.xml
</build>
</profile>
<profile>
<id>test-variables</id>

@dnestoro dnestoro Aug 18, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, is this profile ever used (same question for the profile below)?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread native-maven-plugin/src/main/java/org/graalvm/buildtools/maven/NativeTestMojo.java
protected void populateApplicationClasspath() throws MojoExecutionException {
super.populateApplicationClasspath();
imageClasspath.add(Paths.get(project.getBuild().getTestOutputDirectory()));
imageClasspath.add(testClassesDirectory.toPath());

@dnestoro dnestoro Aug 18, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is not a default location, should we print some "warning" where the tests come from (if the location is not default)? Maybe with logger.debug?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@thegridman thegridman Aug 18, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could log it but the Surefire plugin does not specifically log config settings (Surefire is basically the functionality you are copying). If you run a Maven build with debug (i.e. -X) then it logs all the plugin configs before they execute anyway.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@thegridman

thegridman commented Aug 20, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

I have been doing some more work on this based on @vjovanov comment about getting the test classes directory from the Surefire plugin. The way this plugin works currently, it merges in the system properties and environment variables from both the surefire and failsafe plugins if they are configured in the project. So it sounds like it should be simple to also pull in the test classes directory from those plugins but it starts to become a can of worms.

If my pom.xml only contained is a simple surefire config like the one below then it is easy.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>3.5.3</version>
    <configuration>
        <testClassesDirectory>${project.build.outputDirectory}</testClassesDirectory>
    </configuration>
</plugin>

But we use executions in plugin configs like below, which your plugin does not support

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>3.5.3</version>
    <executions>
        <execution>
            <goals>
                <goal>test</goal>
            </goals>
            <phase>test</phase>
            <configuration>
                <testClassesDirectory>${project.build.outputDirectory}</testClassesDirectory>
            </configuration>
        </execution>
    </executions>
</plugin>

I do not think this is too big an issue, you just need to search through any executions defined for the Surefire plugin to find the one with the test goal. I cannot see a reason why you'd have more than one execution for the Surefire plugin so that should work.

The complications start when we have use both Surefire and Failsafe. As I said above, the plugin is currently merging system properties and environment variables from both Surefire and Failsafe and this might not be correct. Typically Surefire is for unit tests that execute all in a single JVM, which is how the native test plugin runs tests. Failsafe is typically used for integration tests where each test class runs in a forked JVM so tests are more isolated.

I could have a pom.xml file like this:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
        <systemPropertyVariables>
            <my.property>one</my.property>
        </systemPropertyVariables>
    </configuration>
</plugin>

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-failsafe-plugin</artifactId>
    <configuration>
        <systemPropertyVariables>
            <my.property>two</my.property>
        </systemPropertyVariables>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>integration-test</goal>
                <goal>verify</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Both Surefire and Failsafe set a value for the my.property system property, but they set different values. Which will be used? Currently the Failsafe value just because that is the order the native plugin processes things.

It would be reasonably simple if a mojo knew which phase was executing when execute() was called, but Maven does not supply this information to the mojo.

I believe the way to fix this is to have two native test mojos, the current NativeTestMojo that has the test goal and by default binds to the test phase, then a second mojo NativeIntegrationTestMojo that extends NativeTestMojo and has an integration-test goal and by default binds to the integration-test phase.

The bulk of the code would remain in the NativeTestMojo (or could all be extracted to an abstract test mojo). When either of the mojos is executed we then know which goal is running, either test or integration-test and then the correct values can be pulled from Surefire and Failsafe.

I had a go at writing the code for this, but I did not want to do too much in case there are big objections to it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thegridman

thegridman commented Aug 20, 2025

Copy link
Copy Markdown
Contributor Author

OK, so maybe I shouldn't believe everything said on the web before looking at all the Maven code. You can determine things like the goal and phase in a mojo. One NativeTestMojo would be fine as it can work out whether it is in running the test or integration-test goal

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thegridman

thegridman commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

I have pushed new commits to this PR to fix the following issues.

  • The native plugin merged configuration from both Surefire and Failsafe into the native plugin test configuration regardless of whether the goal being executed is test or integration-test. This is fixed by having two goals for the native plugin, test and integration-test and then the plugin knows how to correctly configure itself.
  • The native plugin only obtains configuration from the Surefire or Failsafe <configuration> section and ignored any configuration in the <executions>. This is fixed by making the native plugin properly look for executions in the Surefire and Failsafe plugins.
  • The native plugin added a JUnit listener to the Surefire and Failsafe configuration to create a file of test identifiers which is how the native plugin identifies the tests to run. The problem here is that if a project uses both Surefire and Failsafe to run unit and integration tests. First Surefire runs and creates a test-id file, then native unit tests are run with that file, then Failsafe runs and creates another test-id file for the integration tests, then the native intergration test runs and sees both test id files so runs unit and integration tests. This is fixed by putting the test id files in different directories.

With the current code in this PR it looks like the native plugin can now be used to run both unit and integration tests using both Surefire and Failsafe. Which is how I would think most project use these plugins.

Even with these fixes though, we could not run integration tests in our project because we rely on Failsafe fork mode where every test class runs in a fork. I can see no way the native plugin can do this as it just uses Unit to run the tests and Unit does not support forks. You would end up duplicating a lot of what Falsafe/Surefire do to support forks, which is a massive job, or somehow being able to extend the functionality of Surefire/Failsafe so that when they execute a fork, they actually run a native image. Either way a big amount of work.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vjovanov
vjovanov reviewed Aug 21, 2025
View reviewed changes
Comment thread samples/java-application-with-tests-in-src-main/pom.xml
</execution>
</executions>
<configuration>
<buildArgs>

@vjovanov vjovanov Aug 21, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these two needed for the testing now that all is working? These are the flags to use for easier debugging.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
vjovanov
vjovanov reviewed Aug 21, 2025
View reviewed changes
Comment thread native-maven-plugin/src/main/java/org/graalvm/buildtools/maven/NativeTestMojo.java Outdated
protected void populateApplicationClasspath() throws MojoExecutionException {
super.populateApplicationClasspath();
imageClasspath.add(Paths.get(project.getBuild().getTestOutputDirectory()));
imageClasspath.add(Path.of(testClassesDirectory));

@vjovanov vjovanov Aug 21, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@melix are we handling this case in Gradle properly, i.e. the testClassesDirs?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
vjovanov
vjovanov reviewed Aug 21, 2025
View reviewed changes
Comment thread samples/java-application-with-tests-in-src-main/pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>

@vjovanov vjovanov Aug 21, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use 3.5.3 consistently?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
vjovanov
vjovanov reviewed Aug 21, 2025
View reviewed changes
Comment thread native-maven-plugin/src/main/java/org/graalvm/buildtools/maven/NativeTestMojo.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

vjovanov
vjovanov reviewed Aug 21, 2025
View reviewed changes
Comment thread native-maven-plugin/src/main/java/org/graalvm/buildtools/maven/NativeTestMojo.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

vjovanov
vjovanov reviewed Aug 21, 2025
View reviewed changes
Comment thread native-maven-plugin/src/main/java/org/graalvm/buildtools/maven/NativeIntegrationTestMojo.java
defaultPhase = LifecyclePhase.INTEGRATION_TEST, threadSafe = true,
requiresDependencyResolution = ResolutionScope.TEST,
requiresDependencyCollection = ResolutionScope.TEST)
public class NativeIntegrationTestMojo extends NativeTestMojo {

@vjovanov vjovanov Aug 21, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dnestoro do we need to document this? Also, could we execute only native integration tests (once the JUnit issues are fixed)? What would be the command for that?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vjovanov

vjovanov commented Aug 21, 2025

Copy link
Copy Markdown
Member

Looks great from my side. Thank you very much for the contribution!

Most of the remaining questions are now on the NBT reviewers to discuss and answer.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thegridman

thegridman commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

Another commit to clean up some unused code paths. After a bit of testing I discovered that the Plugin model always has a default PluginExecution for its default goal and that Maven merges the plugins global configuration into each execution configuration. This then simplifies the code a little as it just needs to find the execution for Surefire or Failsafe that is bound to the currently executing goal.

vjovanov reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thegridman

thegridman commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

One other thing to be aware of. When using the native plugin to execute tests it must run after the Surefire or Failsafe plugin otherwise the test id files do not exist and the build fails. I'm not sure whether this is in the doc or not and maybe it goes away if you sort out the double test execution thing anyway. The native plugin is typically bound to the same phase as the Surefire or Failsafe plugin, i.e. test or integration-test and the only way to ensure execution order is to ensure the Surefire or Failsafe plugins come before the Native Plugin in the pom.xml. This is one of the flakey things about Maven.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vjovanov

vjovanov commented Aug 22, 2025

Copy link
Copy Markdown
Member

One other thing to be aware of. When using the native plugin to execute tests it must run after the Surefire or Failsafe plugin otherwise the test id files do not exist and the build fails. I'm not sure whether this is in the doc or not and maybe it goes away if you sort out the double test execution thing anyway. The native plugin is typically bound to the same phase as the Surefire or Failsafe plugin, i.e. test or integration-test and the only way to ensure execution order is to ensure the Surefire or Failsafe plugins come before the Native Plugin in the pom.xml. This is one of the flakey things about Maven.

Ouch. Maybe we can handle this with a proper error message and documentation. @dnestoro @alvarosanchez can we do this to make it easier for the users?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

alvarosanchez
alvarosanchez approved these changes Aug 25, 2025
View reviewed changes

@alvarosanchez alvarosanchez left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but this should be documented somewhere (the fact that we read test classes dir from Failsafe/Surefire), eg in the release notes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vjovanov reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
vjovanov
vjovanov approved these changes Aug 25, 2025
View reviewed changes
@vjovanov

vjovanov commented Jul 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@jormundur00 can we rebase this and spec it up?

jvukicev reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jvukicev
jvukicev force-pushed the test-dir branch from 841966c to fa9ed8d Compare July 20, 2026 13:19
thegridman and others added 6 commits July 21, 2026 09:58
@thegridman @jvukicev
Allow the test classes directory to be configured for the NativeTestMojo
bd29217
@thegridman @jvukicev
Refactoring to be able to correctly obtain configuration from either …
827268d
…Surefire or Failsafe depending on the goal being executed.
@jvukicev
Document Maven test provider configuration
21c7b8c
@jvukicev
Specify Maven test provider configuration
c796d36
@jvukicev
Ground Maven test provider implementation
c2bec94
@jvukicev
Correct Maven test release note
76e2973
jvukicev added 3 commits July 21, 2026 09:58
@jvukicev
Format Maven test specification citation
7cefc21
@jvukicev
Fix native test provider CI failures
343ba67
@jvukicev
Fix native integration test agent context
8d65eed
@jvukicev
jvukicev force-pushed the test-dir branch from ef19c3a to 8d65eed Compare July 21, 2026 08:03
@jvukicev
jvukicev merged commit 4e52742 into graalvm:master Jul 21, 2026
50 checks passed

Uh oh!

There was an error while loading. Please reload this page.

mergify Bot added a commit to robfrank/linklift that referenced this pull request Jul 27, 2026
@mergify
chore(deps): bump org.graalvm.buildtools:native-maven-plugin from 1.1…
4072ba0
….4 to 1.1.6 [skip ci]

Bumps [org.graalvm.buildtools:native-maven-plugin](https://github.com/graalvm/native-build-tools) from 1.1.4 to 1.1.6.
Release notes

*Sourced from [org.graalvm.buildtools:native-maven-plugin's releases](https://github.com/graalvm/native-build-tools/releases).*

> 1.1.6
> -----
>
> What's Changed
> --------------
>
> * Prefer GraalVM's Java when running with agent by [`@​vjovanov`](https://github.com/vjovanov) in [graalvm/native-build-tools#833](https://redirect.github.com/graalvm/native-build-tools/pull/833)
> * Make Maven agent execution ID configurable by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#933](https://redirect.github.com/graalvm/native-build-tools/pull/933)
> * Fix optional JUnit dependency resolution in Maven native tests by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#935](https://redirect.github.com/graalvm/native-build-tools/pull/935)
> * Log selected Maven metadata repository by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#936](https://redirect.github.com/graalvm/native-build-tools/pull/936)
> * Fix Maven test agent paths with spaces by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#934](https://redirect.github.com/graalvm/native-build-tools/pull/934)
> * Log Gradle agent output directory by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#937](https://redirect.github.com/graalvm/native-build-tools/pull/937)
> * Clarify JUnit launcher alignment for Maven native tests by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#938](https://redirect.github.com/graalvm/native-build-tools/pull/938)
> * Fix custom Gradle binary classpath wiring by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#939](https://redirect.github.com/graalvm/native-build-tools/pull/939)
> * Document Maven native test output directories by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#941](https://redirect.github.com/graalvm/native-build-tools/pull/941)
> * Fix Gradle agent toolchain detection by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#943](https://redirect.github.com/graalvm/native-build-tools/pull/943)
> * Fix Gradle metadata repository service scoping by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#942](https://redirect.github.com/graalvm/native-build-tools/pull/942)
> * Release 1.1.5 by [`@​graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#972](https://redirect.github.com/graalvm/native-build-tools/pull/972)
> * Fix Groovy agent predicate closures by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#959](https://redirect.github.com/graalvm/native-build-tools/pull/959)
> * Make Maven skip apply to all goals by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#960](https://redirect.github.com/graalvm/native-build-tools/pull/960)
> * Document Maven resource configuration by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#965](https://redirect.github.com/graalvm/native-build-tools/pull/965)
> * Fix layered image configuration cache test by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#958](https://redirect.github.com/graalvm/native-build-tools/pull/958)
> * Respect build-tool console colors for Native Image output by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#961](https://redirect.github.com/graalvm/native-build-tools/pull/961)
> * Normalize platform-dependent resource and test paths by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#981](https://redirect.github.com/graalvm/native-build-tools/pull/981)
> * Bump version to 1.1.6-SNAPSHOT by [`@​graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#990](https://redirect.github.com/graalvm/native-build-tools/pull/990)
> * Add class introduced in 6.1 by [`@​marcphilipp`](https://github.com/marcphilipp) in [graalvm/native-build-tools#867](https://redirect.github.com/graalvm/native-build-tools/pull/867)
> * Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-application-with-tests by [`@​dependabot`](https://github.com/dependabot)[bot] in [graalvm/native-build-tools#823](https://redirect.github.com/graalvm/native-build-tools/pull/823)
> * Fix order of access filter files by moving default to the start by [`@​ArloL`](https://github.com/ArloL) in [graalvm/native-build-tools#875](https://redirect.github.com/graalvm/native-build-tools/pull/875)
> * Allow the test classes directory to be configured for the NativeTestMojo by [`@​thegridman`](https://github.com/thegridman) in [graalvm/native-build-tools#757](https://redirect.github.com/graalvm/native-build-tools/pull/757)
> * Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-application-with-tests-in-src-main by [`@​dependabot`](https://github.com/dependabot)[bot] in [graalvm/native-build-tools#993](https://redirect.github.com/graalvm/native-build-tools/pull/993)
> * Preserve test runner argLine when configuring agent by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#992](https://redirect.github.com/graalvm/native-build-tools/pull/992)
> * Update reachability metadata to 1.0.7 by [`@​graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#995](https://redirect.github.com/graalvm/native-build-tools/pull/995)
>
> New Contributors
> ----------------
>
> * [`@​ArloL`](https://github.com/ArloL) made their first contribution in [graalvm/native-build-tools#875](https://redirect.github.com/graalvm/native-build-tools/pull/875)
> * [`@​thegridman`](https://github.com/thegridman) made their first contribution in [graalvm/native-build-tools#757](https://redirect.github.com/graalvm/native-build-tools/pull/757)
>
> **Full Changelog**: <graalvm/native-build-tools@1.1.5...1.1.6>
>
> 1.1.5
> -----
>
> What's Changed
> --------------
>
> * Release 1.1.4 by [`@​graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#963](https://redirect.github.com/graalvm/native-build-tools/pull/963)
> * Bump version to 1.1.5-SNAPSHOT by [`@​graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#964](https://redirect.github.com/graalvm/native-build-tools/pull/964)
> * Fix Maven native test resource handling by [`@​alvarosanchez`](https://github.com/alvarosanchez) in [graalvm/native-build-tools#966](https://redirect.github.com/graalvm/native-build-tools/pull/966)
> * Support autodetected Jupiter extensions in native tests by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#919](https://redirect.github.com/graalvm/native-build-tools/pull/919)
> * Document Gradle tracing agent default mode by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#922](https://redirect.github.com/graalvm/native-build-tools/pull/922)
> * Fix Gradle nativeTest test resource detection by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#929](https://redirect.github.com/graalvm/native-build-tools/pull/929)
> * Document skipNativeBuildForPom for Maven aggregators by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#921](https://redirect.github.com/graalvm/native-build-tools/pull/921)
> * Fix custom native test classpath wiring by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#925](https://redirect.github.com/graalvm/native-build-tools/pull/925)
> * Make build infrastructure runnable on newer JDKs by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#928](https://redirect.github.com/graalvm/native-build-tools/pull/928)
> * Clarify buildArgs option entries by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#931](https://redirect.github.com/graalvm/native-build-tools/pull/931)
> * Update reachability metadata to 1.0.6 by [`@​graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#971](https://redirect.github.com/graalvm/native-build-tools/pull/971)

... (truncated)


Commits

* [`7a6414c`](graalvm/native-build-tools@7a6414c) Release 1.1.6
* [`e95114f`](graalvm/native-build-tools@e95114f) Merge pull request [#995](https://redirect.github.com/graalvm/native-build-tools/issues/995) from graalvm/update-metadata-to-1.0.7
* [`b22ad4c`](graalvm/native-build-tools@b22ad4c) Update reachability metadata to 1.0.7
* [`bdcffba`](graalvm/native-build-tools@bdcffba) Preserve test runner argLine when configuring agent ([#992](https://redirect.github.com/graalvm/native-build-tools/issues/992))
* [`f817689`](graalvm/native-build-tools@f817689) Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-...
* [`4e52742`](graalvm/native-build-tools@4e52742) Allow the test classes directory to be configured for the NativeTestMojo ([#757](https://redirect.github.com/graalvm/native-build-tools/issues/757))
* [`2491c2c`](graalvm/native-build-tools@2491c2c) Fix order of access filter files by moving default to the start ([#875](https://redirect.github.com/graalvm/native-build-tools/issues/875))
* [`dd2072b`](graalvm/native-build-tools@dd2072b) Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-...
* [`e10adf0`](graalvm/native-build-tools@e10adf0) Add class introduced in 6.1
* [`53a3319`](graalvm/native-build-tools@53a3319) Bump version to 1.1.6-SNAPSHOT ([#990](https://redirect.github.com/graalvm/native-build-tools/issues/990))
* Additional commits viewable in [compare view](graalvm/native-build-tools@1.1.4...1.1.6)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=org.graalvm.buildtools:native-maven-plugin&package-manager=maven&previous-version=1.1.4&new-version=1.1.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
mergify Bot added a commit to ArcadeData/arcadedb that referenced this pull request Jul 29, 2026
@mergify
build(deps): bump org.graalvm.buildtools:native-maven-plugin from 0.1…
68bcf72
…0.6 to 1.1.6 [skip ci]

Bumps [org.graalvm.buildtools:native-maven-plugin](https://github.com/graalvm/native-build-tools) from 0.10.6 to 1.1.6.
Release notes

*Sourced from [org.graalvm.buildtools:native-maven-plugin's releases](https://github.com/graalvm/native-build-tools/releases).*

> 1.1.6
> -----
>
> What's Changed
> --------------
>
> * Prefer GraalVM's Java when running with agent by [`@​vjovanov`](https://github.com/vjovanov) in [graalvm/native-build-tools#833](https://redirect.github.com/graalvm/native-build-tools/pull/833)
> * Make Maven agent execution ID configurable by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#933](https://redirect.github.com/graalvm/native-build-tools/pull/933)
> * Fix optional JUnit dependency resolution in Maven native tests by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#935](https://redirect.github.com/graalvm/native-build-tools/pull/935)
> * Log selected Maven metadata repository by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#936](https://redirect.github.com/graalvm/native-build-tools/pull/936)
> * Fix Maven test agent paths with spaces by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#934](https://redirect.github.com/graalvm/native-build-tools/pull/934)
> * Log Gradle agent output directory by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#937](https://redirect.github.com/graalvm/native-build-tools/pull/937)
> * Clarify JUnit launcher alignment for Maven native tests by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#938](https://redirect.github.com/graalvm/native-build-tools/pull/938)
> * Fix custom Gradle binary classpath wiring by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#939](https://redirect.github.com/graalvm/native-build-tools/pull/939)
> * Document Maven native test output directories by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#941](https://redirect.github.com/graalvm/native-build-tools/pull/941)
> * Fix Gradle agent toolchain detection by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#943](https://redirect.github.com/graalvm/native-build-tools/pull/943)
> * Fix Gradle metadata repository service scoping by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#942](https://redirect.github.com/graalvm/native-build-tools/pull/942)
> * Release 1.1.5 by [`@​graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#972](https://redirect.github.com/graalvm/native-build-tools/pull/972)
> * Fix Groovy agent predicate closures by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#959](https://redirect.github.com/graalvm/native-build-tools/pull/959)
> * Make Maven skip apply to all goals by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#960](https://redirect.github.com/graalvm/native-build-tools/pull/960)
> * Document Maven resource configuration by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#965](https://redirect.github.com/graalvm/native-build-tools/pull/965)
> * Fix layered image configuration cache test by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#958](https://redirect.github.com/graalvm/native-build-tools/pull/958)
> * Respect build-tool console colors for Native Image output by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#961](https://redirect.github.com/graalvm/native-build-tools/pull/961)
> * Normalize platform-dependent resource and test paths by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#981](https://redirect.github.com/graalvm/native-build-tools/pull/981)
> * Bump version to 1.1.6-SNAPSHOT by [`@​graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#990](https://redirect.github.com/graalvm/native-build-tools/pull/990)
> * Add class introduced in 6.1 by [`@​marcphilipp`](https://github.com/marcphilipp) in [graalvm/native-build-tools#867](https://redirect.github.com/graalvm/native-build-tools/pull/867)
> * Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-application-with-tests by [`@​dependabot`](https://github.com/dependabot)[bot] in [graalvm/native-build-tools#823](https://redirect.github.com/graalvm/native-build-tools/pull/823)
> * Fix order of access filter files by moving default to the start by [`@​ArloL`](https://github.com/ArloL) in [graalvm/native-build-tools#875](https://redirect.github.com/graalvm/native-build-tools/pull/875)
> * Allow the test classes directory to be configured for the NativeTestMojo by [`@​thegridman`](https://github.com/thegridman) in [graalvm/native-build-tools#757](https://redirect.github.com/graalvm/native-build-tools/pull/757)
> * Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-application-with-tests-in-src-main by [`@​dependabot`](https://github.com/dependabot)[bot] in [graalvm/native-build-tools#993](https://redirect.github.com/graalvm/native-build-tools/pull/993)
> * Preserve test runner argLine when configuring agent by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#992](https://redirect.github.com/graalvm/native-build-tools/pull/992)
> * Update reachability metadata to 1.0.7 by [`@​graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#995](https://redirect.github.com/graalvm/native-build-tools/pull/995)
>
> New Contributors
> ----------------
>
> * [`@​ArloL`](https://github.com/ArloL) made their first contribution in [graalvm/native-build-tools#875](https://redirect.github.com/graalvm/native-build-tools/pull/875)
> * [`@​thegridman`](https://github.com/thegridman) made their first contribution in [graalvm/native-build-tools#757](https://redirect.github.com/graalvm/native-build-tools/pull/757)
>
> **Full Changelog**: <graalvm/native-build-tools@1.1.5...1.1.6>
>
> 1.1.5
> -----
>
> What's Changed
> --------------
>
> * Release 1.1.4 by [`@​graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#963](https://redirect.github.com/graalvm/native-build-tools/pull/963)
> * Bump version to 1.1.5-SNAPSHOT by [`@​graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#964](https://redirect.github.com/graalvm/native-build-tools/pull/964)
> * Fix Maven native test resource handling by [`@​alvarosanchez`](https://github.com/alvarosanchez) in [graalvm/native-build-tools#966](https://redirect.github.com/graalvm/native-build-tools/pull/966)
> * Support autodetected Jupiter extensions in native tests by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#919](https://redirect.github.com/graalvm/native-build-tools/pull/919)
> * Document Gradle tracing agent default mode by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#922](https://redirect.github.com/graalvm/native-build-tools/pull/922)
> * Fix Gradle nativeTest test resource detection by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#929](https://redirect.github.com/graalvm/native-build-tools/pull/929)
> * Document skipNativeBuildForPom for Maven aggregators by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#921](https://redirect.github.com/graalvm/native-build-tools/pull/921)
> * Fix custom native test classpath wiring by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#925](https://redirect.github.com/graalvm/native-build-tools/pull/925)
> * Make build infrastructure runnable on newer JDKs by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#928](https://redirect.github.com/graalvm/native-build-tools/pull/928)
> * Clarify buildArgs option entries by [`@​jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#931](https://redirect.github.com/graalvm/native-build-tools/pull/931)
> * Update reachability metadata to 1.0.6 by [`@​graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#971](https://redirect.github.com/graalvm/native-build-tools/pull/971)

... (truncated)


Commits

* [`7a6414c`](graalvm/native-build-tools@7a6414c) Release 1.1.6
* [`e95114f`](graalvm/native-build-tools@e95114f) Merge pull request [#995](https://redirect.github.com/graalvm/native-build-tools/issues/995) from graalvm/update-metadata-to-1.0.7
* [`b22ad4c`](graalvm/native-build-tools@b22ad4c) Update reachability metadata to 1.0.7
* [`bdcffba`](graalvm/native-build-tools@bdcffba) Preserve test runner argLine when configuring agent ([#992](https://redirect.github.com/graalvm/native-build-tools/issues/992))
* [`f817689`](graalvm/native-build-tools@f817689) Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-...
* [`4e52742`](graalvm/native-build-tools@4e52742) Allow the test classes directory to be configured for the NativeTestMojo ([#757](https://redirect.github.com/graalvm/native-build-tools/issues/757))
* [`2491c2c`](graalvm/native-build-tools@2491c2c) Fix order of access filter files by moving default to the start ([#875](https://redirect.github.com/graalvm/native-build-tools/issues/875))
* [`dd2072b`](graalvm/native-build-tools@dd2072b) Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-...
* [`e10adf0`](graalvm/native-build-tools@e10adf0) Add class introduced in 6.1
* [`53a3319`](graalvm/native-build-tools@53a3319) Bump version to 1.1.6-SNAPSHOT ([#990](https://redirect.github.com/graalvm/native-build-tools/issues/990))
* Additional commits viewable in [compare view](graalvm/native-build-tools@0.10.6...1.1.6)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=org.graalvm.buildtools:native-maven-plugin&package-manager=maven&previous-version=0.10.6&new-version=1.1.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@alvarosanchez alvarosanchez alvarosanchez approved these changes
@vjovanov vjovanov vjovanov approved these changes
@melix melix Awaiting requested review from melix
+1 more reviewer
@dnestoro dnestoro dnestoro left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@thegridman @vjovanov @alvarosanchez @dnestoro @jvukicev
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.