Skip to content
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

[MPLUGIN-508] Upgrade to Maven 4.0.0-alpha-13 #242

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Nov 29, 2023

JIRA issue: MPLUGIN-508

@gnodet gnodet changed the title Upgrade to Maven 4.0.0-alpha-9 Upgrade to Maven 4.0.0-alpha-10 Dec 20, 2023
@gnodet gnodet changed the title Upgrade to Maven 4.0.0-alpha-10 Upgrade to Maven 4.0.0-alpha-11 Dec 20, 2023
@gnodet gnodet changed the title Upgrade to Maven 4.0.0-alpha-11 Upgrade to Maven 4.0.0-alpha-12 Jan 12, 2024
@gnodet gnodet force-pushed the upgrade-maven-alpha-9 branch 3 times, most recently from 5eaabea to 18b5a59 Compare January 16, 2024 08:46
@gnodet gnodet force-pushed the upgrade-maven-alpha-9 branch 6 times, most recently from fb3eff0 to 0158608 Compare January 22, 2024 20:47
@gnodet gnodet changed the title Upgrade to Maven 4.0.0-alpha-12 [MPLUGIN-508] Upgrade to Maven 4.0.0-alpha-12 Jan 22, 2024
@gnodet gnodet modified the milestones: 3.11.0, 3.12.0 Jan 22, 2024
@hboutemy
Copy link
Member

I don't understand the objective? what does "Upgrade to Maven 4.0.0-alpha-12" mean for this plugin that is for Maven 3?
can you elaborate, please?

@gnodet
Copy link
Contributor Author

gnodet commented Mar 16, 2024

I don't understand the objective? what does "Upgrade to Maven 4.0.0-alpha-12" mean for this plugin that is for Maven 3? can you elaborate, please?

The plugin currently supports building either a Maven 3 or a Maven 4 plugin. Though I wonder if a streamlined would be better located inside Maven core...
It's used to build Maven 4 plugins with the PRs listed at apache/maven#1048

@hboutemy
Copy link
Member

The plugin currently supports building either a Maven 3 or a Maven 4 plugin.

sorry, I still need some explanations because I can't guess from this PR touching 75 files described as "Upgrade to Maven 4.0.0-alpha-12"

is this PR about adding support for Maven 4 specific plugins in addition to classical Maven 3 plugins? or just upgrading such a support added before that I overlooked?

Is there a Maven 4 plugin IT to look at such a Maven 4 plugin?

and key question: is this PR intended for 3.12.0 release, as noted in Jira?

@gnodet
Copy link
Contributor Author

gnodet commented Mar 21, 2024

The plugin currently supports building either a Maven 3 or a Maven 4 plugin.

sorry, I still need some explanations because I can't guess from this PR touching 75 files described as "Upgrade to Maven 4.0.0-alpha-12"

Most of the 75 files are just a renaming of the mavenVersion to maven3Version to make it more intuitive which one is used.

is this PR about adding support for Maven 4 specific plugins in addition to classical Maven 3 plugins? or just upgrading such a support added before that I overlooked?

The support was added quite some time ago (50482ba). This PR is just to upgrade to alpha-13 (and needs to be adjusted with the release)

Is there a Maven 4 plugin IT to look at such a Maven 4 plugin?

Yes, there's one at https://github.com/apache/maven-plugin-tools/tree/5297a91a8f8b4df54c96566b0629bb72944c2047/maven-plugin-plugin/src/it/v4api

and key question: is this PR intended for 3.12.0 release, as noted in Jira?

Yes

@gnodet gnodet changed the title [MPLUGIN-508] Upgrade to Maven 4.0.0-alpha-12 [MPLUGIN-508] Upgrade to Maven 4.0.0-alpha-13 Mar 21, 2024
@gnodet
Copy link
Contributor Author

gnodet commented Mar 21, 2024

The plugin currently supports building either a Maven 3 or a Maven 4 plugin.

sorry, I still need some explanations because I can't guess from this PR touching 75 files described as "Upgrade to Maven 4.0.0-alpha-12"

Most of the 75 files are just a renaming of the mavenVersion to maven3Version to make it more intuitive which one is used.

is this PR about adding support for Maven 4 specific plugins in addition to classical Maven 3 plugins? or just upgrading such a support added before that I overlooked?

The support was added quite some time ago (50482ba). This PR is just to upgrade to alpha-13 (and needs to be adjusted with the release)

Is there a Maven 4 plugin IT to look at such a Maven 4 plugin?

Yes, there's one at https://github.com/apache/maven-plugin-tools/tree/5297a91a8f8b4df54c96566b0629bb72944c2047/maven-plugin-plugin/src/it/v4api

and key question: is this PR intended for 3.12.0 release, as noted in Jira?

Yes

FWIW, I think the plugin supporting Maven 4 would be better located inside maven-core colocated with the API (and maybe soon the implementation extracted with apache/maven#1441). Same for the plugin-testing framework also contains support for both Maven 3 and Maven 4 in the same library, which is not really clean imho.

@hboutemy
Copy link
Member

I extracted from this huge PR updates that were not really related to Maven 4 alpha but cleanup that caused it hard to get the intent of the PR
you'll need to rebase to get a more focused PR, that we'll be able to describe: from what I see, the upgrade adds some very new approach like DI that would be useful to describe

I'd like to do a release next week: we'll need to define if we can get this update in or not

@gnodet
Copy link
Contributor Author

gnodet commented Mar 24, 2024

I extracted from this huge PR updates that were not really related to Maven 4 alpha but cleanup that caused it hard to get the intent of the PR you'll need to rebase to get a more focused PR, that we'll be able to describe: from what I see, the upgrade adds some very new approach like DI that would be useful to describe

I'd like to do a release next week: we'll need to define if we can get this update in or not

The support for 4.x plugins cannot really be finalised before the API is, given this target is moving. However, we need to keep up to date so that we can work on plugins more easily. I think the plugin could be trimmed down (just the actual plugin, we don't need other modules) and moved to maven-core to support v4 plugins...

@hboutemy
Copy link
Member

hboutemy commented Mar 29, 2024

too complex answer, I'm not sure what to do to release plugin-tools 3.12.0 this WE regarding this PR associated to MPLUGIN-508, currently marked as the only non-done issue for the release https://issues.apache.org/jira/projects/MPLUGIN/versions/12354176:

  1. release now without the PR?
  2. push to finalize to PR before releasing? (need to define the acceptance criteria)

@hboutemy
Copy link
Member

IIUC, discussion means this PR is not ready for merge and release: I'll release 3.12.0 without

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants