-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a parameter to be able to skip build native for pom type modules, leave it as false per default for backward compat #593
Conversation
… leave it as false per default for backward compat Signed-off-by: Olivier Lamy <olamy@apache.org>
Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application. When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated. If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public. |
Hi @olamy, thanks for the PR. Maybe @alina-yur can help us find out what's going on with the OCA portal. In the meantime, could you maybe extend the description of the PR a bit and make it clear why this is needed and what problem this solves? Thank you! :) |
hi @olamy! Thank you for reporting, I passed your message to the OCA team. In the meantime, can you please try again (and ideally from a different browser), maybe it was a one-time glitch? |
@alina-yur @fniephaus all good. I tried again and it works. Thanks |
Thank you for signing the OCA. |
@olamy your OCA is now approved. happy contributing :) |
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.
Why do you need yet another skip parameter? Is skipNativeBuild
not enough?
Using that in a sub-module would also make the sub-sub-modules skip native, which is not what we want. Btw, just so you know, @olamy is a committer on the Apache Maven project itself, and is involved in countless maven plugin projects around the maven ecosystem. I trust his experience when it comes to proper maven plugin behavior and maintainability of both the maven plugin and the projects that use the maven plugin. |
Right, in that case I think the mojo should just simply skip execution for pom projects, without needing an extra parameter. @olamy I understand your intention was to not introduce breaking changes, which I appreciate, but we can probably regard this issue as a bug, in which case it's fine to do the change I proposed.
Thanks for the heads-up. I didn't mean to question his skills at all. Mine was a pure question that, in retrospect, could have been written differently. Sorry if it sounded too harsh, not my intention. |
There are many maven plugins that simply hardcode skipping of a project if it has no source, the easiest way is to skip This second approach also helps with nonstandard project packaging types (eg: |
@alvarosanchez it looks @joakime explained perfectly why I choose this way of skipping :) |
Thanks a lot for contributing and making clear why this is the right approach! :) |
When using in a multi module Apache Maven build, the plugin can cause some issues for
pom
type project.Such
See some details here jetty/jetty.project#11683