spotless icon indicating copy to clipboard operation
spotless copied to clipboard

Maven plugin - override ratchetFrom from parent pom to disable ratchet

Open jandhollander opened this issue 4 years ago • 3 comments

I have a parent pom that defines <ratchetFrom>origin/main</ratchetFrom>

However, I would like to override this in the child pom to not use the ratchet feature. The way Maven allows overriding of parameters is that you need to specify the tag to override in your child pom configuration, but doing so never results in disabling of the ratchet feature, but shows a "apply failed: Invalid ref name: xxxx" error. Even if an empty ratchetFrom tag is defined.

I looked around in the code and found that if ratchetFrom is defined, no matter the value, the ratchet feature is enabled.

Is there a way around this?

jandhollander avatar Feb 16 '22 16:02 jandhollander

Is there a way around this?

Sounds like a PR could fix it ;-)

nedtwigg avatar Feb 16 '22 18:02 nedtwigg

I'll see what I can do...

jandhollander avatar Feb 17 '22 08:02 jandhollander

Fixed in plugin-maven 2.21.0.

nedtwigg avatar Feb 19 '22 05:02 nedtwigg