We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For this to work, plugins must be registered as build extensions <extensions>true</extensions> see https://gist.github.com/cstamas/191a6bb660c7b1cca1a325248af30d1f
<extensions>true</extensions>
Once apache/maven-install-plugin#15 and apache/maven-deploy-plugin#20 is merged/released, then this trick above will not be needed anymore.
Reason: current "naive" atEnd implementation uses static member https://github.com/apache/maven-install-plugin/blob/master/src/main/java/org/apache/maven/plugins/install/InstallMojo.java#L58 but as Mojo class-loaders are re-created per module (by different conditions), the static is "lost" as in case of new class-loader, the old data is not there. Hence, as extension force Maven to load plugins once, and keep it throughout the build, and that makes static member "live" thru whole build,
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For this to work, plugins must be registered as build extensions
<extensions>true</extensions>
see https://gist.github.com/cstamas/191a6bb660c7b1cca1a325248af30d1fOnce apache/maven-install-plugin#15 and apache/maven-deploy-plugin#20 is merged/released, then this trick above will not be needed anymore.
Reason: current "naive" atEnd implementation uses static member https://github.com/apache/maven-install-plugin/blob/master/src/main/java/org/apache/maven/plugins/install/InstallMojo.java#L58 but as Mojo class-loaders are re-created per module (by different conditions), the static is "lost" as in case of new class-loader, the old data is not there. Hence, as extension force Maven to load plugins once, and keep it throughout the build, and that makes static member "live" thru whole build,
The text was updated successfully, but these errors were encountered: