-
Notifications
You must be signed in to change notification settings - Fork 267
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
display-plugin-updates goal hang #354
Comments
Hit on the same problem. Downgrading the maven version to 3.5.4 solves this issue. |
The same issue in mvn 3.6.2 |
FYI, I still facing this problem with this pom. |
I've got the same (?) issue, with Maven 3.6.3 and
It seems to boil down to the case of a plugin which is only included by an active profile, without being part of the default build. Having this plugin's version set in @onacit: the pom.xml you've linked to seems similar in it's usage of the When
I'm not really able to debug this further, but just one last note: googling for |
With Java11 on Windows 10: versions plugin 2.8.1 display-plugin-updates is successful with maven 3.6.0 (and earlier), and unsuccessful (hangs) with maven 3.6.1 (and later). maven 3.6.1 was released on 2019-09-03, changes: http://maven.apache.org/docs/3.6.1/release-notes.html |
Same issue here with maven 3.8.1 and versions-maven-plugin 2.7 |
Same issue here with maven 3.8.1 and versions-maven-plugin 2.7 |
Same issue with maven 3.8.3 and versions-maven-plugin 2.8.1. Stack trace:
|
Still an issue from 3.8.4 wrapper |
That's because there are two classes with the same simple class name:
MNG-6799 is about the latter while the stack traces shown in this ticket show the former. Strangely enough, when I'm trying to reproduce it, StringVisitorModelInterporator gets injected as PR #549 changed the model interpolator to the non-deprecated one. Chances are that the error is not present in the new one. However, I'm investigating why it occurred with the old one in the first place. The old model interpolator implements recursion using its own stack ( while ( !interpolationTargets.isEmpty() )
{
Object obj = interpolationTargets.removeFirst();
traverseObjectWithParents( obj.getClass(), obj );
} The above code removes the currently processed element from This risks an infinite recursion loop if the analysed model contains cycles. So, it's possible that the function is fed a model with cycles in it. But it's highly possible that the new implementation is already protected against that. |
@slachiewicz the issue can be closed (resolved in 2.10.0) |
And by the way, should anyone be interested in getting to the root cause of that issue (which does not lie within this project, but in maven-compat), the model (also built by maven and not the plugin) contains circular dependencies in InputLocation/InputSource metadata for the model elements. The simplest fix for that in maven-compat would be to skip interpolating InputLocation altogether. But, as I said, that's not within this plugin. Here's a branch I created based on the 2.9.1-SNAPSHOT just before the fix, to get to the root cause of the issue, with a build.log in the it directory containing the trace of the interpolation. To execute the test: mvn -P run-its clean verify -DskipTests -Dcheckstyle.skip -Dinvoker.test=it-display-plugin-updates-013* |
I just found the
display-plugin-updates
goal hang.I got following output with
-X
option.No more output is coming.
Here comes my environment.
The text was updated successfully, but these errors were encountered: