Falko, thank you for the response. It works indeed.

However, the case with maven-dependency-plugin is a simplification of my case.
 
I actually faced this error first in the plugin I develop (since it was 
reproducible also
with the more well known dependency plugin I mentioned only it in email).
 
My plugin builds dependency tree using the DependencyGraphBuilder injected
into the plugin when it's loaded by maven:
 
https://github.com/avodonosov/hashver-maven-plugin/blob/master/src/main/java/pro/avodonosov/mvnhashver/HashVerMojo.java#L99
 
Can you tell what is secret in the dependency plugin 3.0.1+ that makes it work?
What should I fix in my plugin, in other words.
 
Best regards,
- Anton

27.11.2020, 00:15, "Falko Modler" <[email protected]>:
> Try: mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.2:tree
>
> I'll actually work with 3.0.1+ but not with 2.8 which is the default for
> that repo.
>
> Am 25.11.2020 um 22:18 schrieb Anton Vodonosov:
>>  When I run `mvn -X dependency:tree` in the root directory
>>  of redisson (https://github.com/redisson/redisson), I get the below error.
>>
>>  Question: why does maven tries to resolve the `redisson` dependency
>>  of the `redisson-all` module using a remote repository, when `redisson`
>>  is a part of the reactor?
>>  
>> https://github.com/redisson/redisson/blob/683b0dfce2c97c576722176019f14404d1bf7223/pom.xml#L55
>>  
>> https://github.com/redisson/redisson/blob/683b0dfce2c97c576722176019f14404d1bf7223/redisson-all/pom.xml#L77
>>
>>  [ERROR] Failed to execute goal on project redisson-all: Could not resolve 
>> dependencies for project org.redisson:redisson-all:jar:3.14.1-SNAPSHOT: 
>> Failure to find org.redisson:redisson:jar:3.14.1-SNAPSHOT in 
>> https://oss.sonatype.org/content/repositories/snapshots was cached in the 
>> local repository, resolution will not be reattempted until the update 
>> interval of snapshots-repo has elapsed or updates are forced -> [Help 1]
>>  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
>> goal on project redisson-all: Could not resolve dependencies for project 
>> org.redisson:redisson-all:jar:3.14.1-SNAPSHOT: Failure to find 
>> org.redisson:redisson:jar:3.14.1-SNAPSHOT in 
>> https://oss.sonatype.org/content/repositories/snapshots was cached in the 
>> local repository, resolution will not be reattempted until the update 
>> interval of snapshots-repo has elapsed or updates are forced
>>          at 
>> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
>>          at 
>> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
>>          at 
>> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:245)
>>          at 
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
>>          at 
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>          at 
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>          at 
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>>          at 
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>>          at 
>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>          at 
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>>          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>>          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>>          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>>          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
>>          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
>>          at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
>>          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:289)
>>          at 
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>          at 
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>          at 
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>>  Caused by: org.apache.maven.project.DependencyResolutionException: Could 
>> not resolve dependencies for project 
>> org.redisson:redisson-all:jar:3.14.1-SNAPSHOT: Failure to find 
>> org.redisson:redisson:jar:3.14.1-SNAPSHOT in 
>> https://oss.sonatype.org/content/repositories/snapshots was cached in the 
>> local repository, resolution will not be reattempted until the update 
>> interval of snapshots-repo has elapsed or updates are forced
>>          at 
>> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:211)
>>          at 
>> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
>>          ... 23 more
>>  Caused by: org.eclipse.aether.resolution.DependencyResolutionException: 
>> Failure to find org.redisson:redisson:jar:3.14.1-SNAPSHOT in 
>> https://oss.sonatype.org/content/repositories/snapshots was cached in the 
>> local repository, resolution will not be reattempted until the update 
>> interval of snapshots-repo has elapsed or updates are forced
>>          at 
>> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
>>          at 
>> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:205)
>>          ... 24 more
>>  Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: 
>> Failure to find org.redisson:redisson:jar:3.14.1-SNAPSHOT in 
>> https://oss.sonatype.org/content/repositories/snapshots was cached in the 
>> local repository, resolution will not be reattempted until the update 
>> interval of snapshots-repo has elapsed or updates are forced
>>          at 
>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
>>          at 
>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
>>          at 
>> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
>>          ... 25 more
>>  Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure 
>> to find org.redisson:redisson:jar:3.14.1-SNAPSHOT in 
>> https://oss.sonatype.org/content/repositories/snapshots was cached in the 
>> local repository, resolution will not be reattempted until the update 
>> interval of snapshots-repo has elapsed or updates are forced
>>          at 
>> org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:231)
>>          at 
>> org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:206)
>>          at 
>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:585)
>>          at 
>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:503)
>>          at 
>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
>>          ... 27 more
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: [email protected]
>>  For additional commands, e-mail: [email protected]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to