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
Maven4 is missing org.codehaus.plexus.util.FileUtils #87
Comments
I've just checked the master branch of Maven, and it still has a dependency on plexus-utils: In this project, I see plexus-utils has "provided" scope - which means that you can compile against it but it will not be packaged. This is often used for e.g. Servlet API - the Web Container will provide that class at runtime, no need to ship it with a web application. Personally, I think I'd rather not use it for situations where I'm relying on code from a transitive dependency, but that's my opinion... Also, I'm not sure it's a good idea for Maven Plugins to do it this way. @khmarbaise, I see you've contributed to this project before, care to share some light? |
This class is not exported (https://github.com/apache/maven/blob/master/maven-core/src/main/resources/META-INF/maven/extension.xml#L81) so it must be replaced. Due to the plugin usage i guess a Files.walk* would replace it trivially. |
Thank you both!. Yes, we were declaring Nevertheless, there's no point in using I pushed #88 with these modifications. |
Copying files could and should be avoided ... methinks. Feels like a band-aid kind of operation. |
I haven't had a chance to investigate this yet,
I just bumped into this, and I figured it requires early reporting.
All I can say now is that testing with this plugin in a modular environment breaks in
maven 4
:maven 3.8.4
.Maven 4
is still in development, snapshot instructions are available here.I'm guessing
maven 4
stopped usingorg.codehaus.plexus:plexus-utils
,we're using it transitively here.
If that's the case, we can either add it to our pom,
of figure out another way to copy the entire directory structure.
Perhaps @mthmulders can help shed some light on if and why
maven 4
stopped usingplexus-utils
?🙂
The text was updated successfully, but these errors were encountered: