Graal: Add skip configuration property to native-image-maven-plugin

Created on 25 Mar 2019  路  7Comments  路  Source: oracle/graal

In order to allow skiping native builds (say when running builds on environments not currently supported or CI's that are testing other sections of the project, there should be a skip configuration property that would avoid running the build.

This is a blocker for https://github.com/netty/netty/pull/8963

feature native-image

Most helpful comment

Ok. I will add that. It will be part of RC15.

All 7 comments

@olpaw could you advise on how to proceed here on the netty issue.

@pmlopes is having such a skip configuration property common practice among maven-plugins?

i.e. can this also be addressed by binding the plugin execution to a profile.
see https://maven.apache.org/guides/introduction/introduction-to-profiles.html

skip configuration is quite common on many pluging, e.g.: failsafe, surefire, exec, etc... profiles are another alternative but it can become quite messy or complicated to setup, specially in the netty case:

In their case, they skip plugins when the build is run with skipTests or a specific skip property, so their advice is to have a skipNativeImageTestsuite which i can use to skip other plugins but it get's hard to configure with profiles.

The native image plugin should be skipped if skipTests is active or skipNativeImageTestsuite so the hard part is to do OR operations to enable the profile.

Ok. I will add that. It will be part of RC15.

Fixed on master (d9b047d9e35f225b3e92fa60b62f03ee64ba68d0)

@olpaw thanks for fixing.

Was this page helpful?
0 / 5 - 0 ratings