-
Notifications
You must be signed in to change notification settings - Fork 77
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
chore: drop legacy, use resolver #560
Conversation
Changes: * skip uses of archaic classes, use resolver * update wrapper to 3.9.2 * update ITs to mute "plugin validation"
@SoEBeS @khmarbaise Something is off re ITs: all IT classes are annotated with Example: BasicIT groupid_artifactid_should_be_ok mvn-arguments:
but BasicIT null_check_profile_activation:
(no progress and mute plugin validation missing) |
Co-authored-by: Tim te Beek <timtebeek@gmail.com>
I'm seeing one failure
Not sure if this change might be related. -return repositorySystem.createArtifact(parts[0], parts[1], parts[2], "runtime", "jar");
+return new DefaultArtifact(parts[0], parts[1], "runtime", "jar", parts[2]); Any insights there? I could also dive in; we already really appreciate you chiming in with this improvement here! Any background as to what prompted you to contribute? Would love to help and discuss if there's anything more we can do. |
Yup, I mixed up two methods of old "repo sys" the createArtifact and same *withClassifier (assumed "runtime" is classifier, but is actually scope), fixing it. |
"runtime" is not classifier, it is scope.
As this is redundant, plexus component will anyway use Maven provided container instead (and it generates warning for plugin as well).
re contribution: was really just led to this project while was looking how Quarkus handles "project upgrade" of theirs... and as Maven dev, just wanted to give plugin an update (as it emits warning with Maven 3.9.x due use of ArtifactRepository type that misbehaves when "split repo: feature of new Maven is used, see https://issues.apache.org/jira/browse/MNG-7706). |
Co-authored-by: Tim te Beek <timtebeek@gmail.com>
Appreciate the help! Already discussed with @mthmulders if there's anything we can do for Maven 4, such as reproducible builds by inserting plugin version numbers through a recipe, as well as dropping now optional parent version numbers. Happy to think through any other use cases you might have to help Maven developers & users. |
Am actually in process of update (major, as it lags a lot of maintenance) the maven-archetype, and had a wild idea to "merry" the archetype and some sort of rewrite (so to say, to keep archetypes "live", not one off), but this is maybe not archetype thing (that is essentially "just" template), but some plugin that amalgamates the two: uses archetype for commands like "add new module" to existing project, that creates new module out of some archetype, while uses rewrite to wire up new module into parent etc. Am just tinkering, will ping once I have scratches around it. |
Sure! Continuous maintenance on archetype-started projects sounds right up our alley with OpenRewrite and Moderne; Feel free to share your thoughts and progress, either here or via our public Slack. |
Changes:
update wrapper to latest, set wrapped Maven to 3.9.2