rewrite: [MAVEN] Resolving Poms.... MavenDownloadingExceptions
What version of OpenRewrite are you using?
I am using
OPEN_REWRITE_MAVEN_PLUGIN_VERSION=“5.5.2” OPEN_REWRITE_MIGRATE_JAVA_VERSION=“2.1.0” OPEN_REWRITE_TESTING_VERSION=“2.0.11”
FYI I always have this problem even with Open Rewrite previous versions (v7)
How are you running OpenRewrite?
I am using the Maven plugin and run mvn:rewrite:run command, and my project is a multi modules project.
What is the smallest, simplest way to reproduce the problem?
I dont known how to tell you how to reproduce the problem. The problem only occurs when i work in remote with my corporate VPN. In the company I don’t have any problem.
What did you expect to see?
No exception and a speed maven resolution like when I’m in my company buildings (Resolving poms take a few seconds/minutes)
What did you see instead?
A long time blocked on log [INFO] Project [bwd] Resolving Poms... It can vary from 30 minutes to 2 hours. After this time elapsed all my recipes run correctly
What is the full stack trace of any errors you encountered?
[INFO] Project [bwd] Resolving Poms...
[DEBUG]
org.openrewrite.maven.MavenDownloadingExceptions
at org.openrewrite.maven.MavenDownloadingExceptions.append (MavenDownloadingExceptions.java:44)
at org.openrewrite.maven.tree.MavenResolutionResult.resolveDependencies (MavenResolutionResult.java:179)
at org.openrewrite.maven.MavenParser.parseInputs (MavenParser.java:107)
at org.openrewrite.Parser.parse (Parser.java:58)
at org.openrewrite.maven.MavenMojoProjectParser.parseMaven (MavenMojoProjectParser.java:412)
at org.openrewrite.maven.MavenMojoProjectParser.listSourceFiles (MavenMojoProjectParser.java:140)
at org.openrewrite.maven.AbstractRewriteMojo.loadSourceSet (AbstractRewriteMojo.java:257)
at org.openrewrite.maven.AbstractRewriteMojo.listResults (AbstractRewriteMojo.java:239)
at org.openrewrite.maven.AbstractRewriteRunMojo.execute (AbstractRewriteRunMojo.java:53)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Are you interested in contributing a fix to OpenRewrite?
About this issue
- Original URL
- State: open
- Created 9 months ago
- Comments: 16 (5 by maintainers)
Instructions for the snapshot versions are documented here: https://docs.openrewrite.org/reference/snapshot-instructions The links at the bottom of that page link to the latest snapshot versions as available through Sonatype OSS snapshots:
Seems we’ve changed a few things around how such errors were reported, so the details might have gotten lost. I’ve added
When you
mvn installthat branch locally, as well as the rewrite-maven-plugin, and use the snapshot versions in your project (temporarily) you should be able to uncover what the underlying exceptions are. Hope that helps you debug and potentially resolve the underlying issue.Given that it requires your VPN to show the issue I didn’t know how else to help you other than provide that code change and instructions to debug on your machine. I’m hoping you’re able to provide your part of the puzzle in seeing this through.