-
Notifications
You must be signed in to change notification settings - Fork 10
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
Upgrade Maven api to 3.2.5 - drop support for Maven 2.x #99
Comments
I can do that. |
Great - please try step by step |
Had a look. Currently the project uses old-ish components (metadata and artifact resolver and not Maven Resolver etc) in its API - in the FactoryHelper interface. To be honest, I would put this interface in some "utils" module as I don't really see why it would be part of the API. But, if we want to keep this API unchanged, then there's no way to completely get rid of those old components. Should we change this API? Or deprecate it? Personally, I think I would probably retire (i.e. stop using it in the plugin), and deprecate it. There's no Maven Compat at all anymore. |
|
So far, the plugin is small, but it's a bit more intertwined than Versions or Enforcer. So, for the time being I'm going for the big bang, later on I may introduce gradual changes when I have it more or less done. |
Resolves mojohaus#143: migration to JSR330
Resolves mojohaus#143: migration to JSR330
Resolves mojohaus#143: migration to JSR330
for stage 2: https://issues.apache.org/jira/browse/MNG-7548 |
@slawekjaranowski do you know if maven-artifact-manager is also to be replaced? (it provides a DefaultRepositoryMetadataManager and can be an alternative to maven-compat) |
Resolves mojohaus#143: migration to JSR330
If that is the case then this ticket can be resolved by #144 alone. |
Resolves mojohaus#143: migration to JSR330
Resolves #143: migration to JSR330
@ajarmoniuk what left here to do? |
Right. I have no idea why I stopped with this. archetype-common needs to be bumped. Looking into it. Old version of |
… from Maven 2. - Snapshot artifact metadata is no longer supported as separate artifact types as of Maven 3 - Ditto for Group artifact metadata - Bumped archetype-common to 3.2.1
While investigating regarding this issue (unrelatd to this plugin) https://issues.apache.org/jira/browse/MNG-7705 I arrived here and found this: https://github.com/mojohaus/mrm/blob/master/mrm-maven-plugin/src/main/java/org/codehaus/mojo/mrm/plugin/DefaultFactoryHelper.java#L9 This is what "true legacy" means: this plugin completely circumvents resolver, and locking... it aged as a good milk 😄 |
Howdy @cstamas Yes, it's been there indeed and I didn't remove it. Should we rather use https://maven.apache.org/resolver/maven-resolver-api/apidocs/org/eclipse/aether/metadata/package-summary.html from Maven Resolver? |
The truth is, I am not quite knowledgeable what this plugin tries to do, BUT if it attempts to mimic remote repository, why would I choose this plugin over to fire up some HTTP server in my tests? My point is: with plain HTTP sever you are in full control, moreover, is easy to check and validate what is being served to Maven (as HTTP Server would really just deliver laid down files via HTTP), while with even one breadcrumb of logic on "server side", you just complicate things, make them error prone and bug prone, and the worse way: the user of plugin wonders why it does not work, while the problem is on "server side", not in user plugin that is being tested. |
To change - new way
The text was updated successfully, but these errors were encountered: