Maven goes to repository for a dependency from reactor

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Maven goes to repository for a dependency from reactor

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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Maven goes to repository for a dependency from reactor

Falko Modler
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: [hidden email]
> For additional commands, e-mail: [hidden email]
>


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

Reply | Threaded
Open this post in threaded view
|

Re: Maven goes to repository for a dependency from reactor

Anton Vodonosov
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" <[hidden email]>:

> 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: [hidden email]
>>  For additional commands, e-mail: [hidden email]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]

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

Reply | Threaded
Open this post in threaded view
|

Re: Maven goes to repository for a dependency from reactor

Nick_S
Hi Anton,

I have taken a look at the issues fixed in 3.0.1 and I think you'll find
the information you need in MDEP-409[1].

[1] https://issues.apache.org/jira/browse/MDEP-409

With regards,

Nick Stolwijk

~~~ Try to leave this world a little better than you found it and, when
your turn comes to die, you can die happy in feeling that at any rate you
have not wasted your time but have done your best ~~~

Lord Baden-Powell


On Sat, Nov 28, 2020 at 6:46 AM Anton Vodonosov <[hidden email]>
wrote:

> 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" <[hidden email]>:
> > 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: [hidden email]
> >>  For additional commands, e-mail: [hidden email]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Maven goes to repository for a dependency from reactor

Anton Vodonosov

MDEP-409 was fixed by passing reactor projects as the 3rd parameter
to dependencyGraphBuilder.buildDependencyGraph:
https://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/tree/TreeMojo.java?r1=1791410&r2=1791409&pathrev=1791410

My plugin already have this. Right now old dependency:tree fails
but my plugin works.

But I don't think memory fails me, my plugin was failing.
Maybe it was caused by some state of the ~/.m2 directory.

Well, thank you. If I reproduce this again I will follow up.

Best regards,
- Anton

28.11.2020, 18:30, "Nick Stolwijk" <[hidden email]>:

> Hi Anton,
>
> I have taken a look at the issues fixed in 3.0.1 and I think you'll find
> the information you need in MDEP-409[1].
>
> [1] https://issues.apache.org/jira/browse/MDEP-409
>
> With regards,
>
> Nick Stolwijk
>
> ~~~ Try to leave this world a little better than you found it and, when
> your turn comes to die, you can die happy in feeling that at any rate you
> have not wasted your time but have done your best ~~~
>
> Lord Baden-Powell
>
> On Sat, Nov 28, 2020 at 6:46 AM Anton Vodonosov <[hidden email]>
> wrote:
>
>>  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" <[hidden email]>:
>>  > 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: [hidden email]
>>  >> For additional commands, e-mail: [hidden email]
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: [hidden email]
>>  > For additional commands, e-mail: [hidden email]
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: [hidden email]
>>  For additional commands, e-mail: [hidden email]

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

Reply | Threaded
Open this post in threaded view
|

Re: Maven goes to repository for a dependency from reactor

Anton Vodonosov
BTW, dependency:resovle still works the old way, even in the latest version:

   $ cd redisson
   $ mvn -X org.apache.maven.plugins:maven-dependency-plugin:3.1.2:resolve


[ERROR] Failed to execute goal on project redisson-all: Could not resolve dependencies for project org.redisson:redisson-all:jar:3.14.1-SNAPSHOT: Could not find artifact org.redisson:redisson:jar:3.14.1-SNAPSHOT in snapshots-repo (https://oss.sonatype.org/content/repositories/snapshots) -> [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: Could not find artifact org.redisson:redisson:jar:3.14.1-SNAPSHOT in snapshots-repo (https://oss.sonatype.org/content/repositories/snapshots)
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: Could not find artifact org.redisson:redisson:jar:3.14.1-SNAPSHOT in snapshots-repo (https://oss.sonatype.org/content/repositories/snapshots)
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: Could not find artifact org.redisson:redisson:jar:3.14.1-SNAPSHOT in snapshots-repo (https://oss.sonatype.org/content/repositories/snapshots)
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: Could not find artifact org.redisson:redisson:jar:3.14.1-SNAPSHOT in snapshots-repo (https://oss.sonatype.org/content/repositories/snapshots)
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: Could not find artifact org.redisson:redisson:jar:3.14.1-SNAPSHOT in snapshots-repo (https://oss.sonatype.org/content/repositories/snapshots)
at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:39)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)




28.11.2020, 20:57, "Anton Vodonosov" <[hidden email]>:

> MDEP-409 was fixed by passing reactor projects as the 3rd parameter
> to dependencyGraphBuilder.buildDependencyGraph:
> https://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/tree/TreeMojo.java?r1=1791410&r2=1791409&pathrev=1791410
>
> My plugin already have this. Right now old dependency:tree fails
> but my plugin works.
>
> But I don't think memory fails me, my plugin was failing.
> Maybe it was caused by some state of the ~/.m2 directory.
>
> Well, thank you. If I reproduce this again I will follow up.
>
> Best regards,
> - Anton
>
> 28.11.2020, 18:30, "Nick Stolwijk" <[hidden email]>:
>>  Hi Anton,
>>
>>  I have taken a look at the issues fixed in 3.0.1 and I think you'll find
>>  the information you need in MDEP-409[1].
>>
>>  [1] https://issues.apache.org/jira/browse/MDEP-409
>>
>>  With regards,
>>
>>  Nick Stolwijk
>>
>>  ~~~ Try to leave this world a little better than you found it and, when
>>  your turn comes to die, you can die happy in feeling that at any rate you
>>  have not wasted your time but have done your best ~~~
>>
>>  Lord Baden-Powell
>>
>>  On Sat, Nov 28, 2020 at 6:46 AM Anton Vodonosov <[hidden email]>
>>  wrote:
>>
>>>   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" <[hidden email]>:
>>>   > 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: [hidden email]
>>>   >> For additional commands, e-mail: [hidden email]
>>>   >
>>>   > ---------------------------------------------------------------------
>>>   > To unsubscribe, e-mail: [hidden email]
>>>   > For additional commands, e-mail: [hidden email]
>>>
>>>   ---------------------------------------------------------------------
>>>   To unsubscribe, e-mail: [hidden email]
>>>   For additional commands, e-mail: [hidden email]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]

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