Skip to content

Skip the transform goals on request and when the classes directory is missing - #75

Merged
dmlloyd merged 1 commit into
smallrye:mainfrom
SiteNetSoft:fix-transform-missing-directory
Nov 17, 2026
Merged

dmlloyd merged 1 commit into
smallrye:mainfrom
SiteNetSoft:fix-transform-missing-directory

Conversation

@jnbdz

@jnbdz jnbdz commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

A build that skips test compilation fails in transform-test, because target/test-classes does not exist. transform fails the same way in a module without sources. The plugin also had no way to skip it.

  • A missing classes directory is not an error anymore. The goal logs "Nothing to transform" and returns.
  • Both goals have a skip parameter, with the property smallrye.ffm.skip.
  • transform-test honours maven.test.skip, like the compiler and Surefire plugins.

TransformMojoSkipTest runs the two goals against a missing directory, an empty directory, skip and maven.test.skip.

… missing

Both goals get a skip parameter, smallrye.ffm.skip. transform-test also
honours maven.test.skip. A missing classes directory, as in a module without
tests or without sources, is logged and no longer fails the build.
@dmlloyd
dmlloyd merged commit a0317ba into smallrye:main Nov 17, 2026
4 checks passed
@github-actions github-actions Bot added this to the 1.0 milestone Nov 17, 2026
@jnbdz
jnbdz deleted the fix-transform-missing-directory branch November 17, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

maven-plugin: transform-test fails when target/test-classes does not exist; no skip parameter

2 participants