Re: pvn package command dependencies error
finally i was forced to install maven3.6.3 with opnjdk-8 and the problem was solved. thank you. On 2021/05/06 08:03:07, Compte Messagerie wrote: > thank you for reply > i installed apache-maven-3.6. with java-11 > i ran mvp package -e > and the result is: > > INFO] --< org.dspace.modules:solr >--- > [INFO] Building DSpace SOLR :: Local Customizations 6.3 > [9/11] > [INFO] [ war > ]- > [INFO] > > [INFO] Reactor Summary for DSpace Assembly and Configuration 6.3: > [INFO] > [INFO] DSpace Addon Modules ... SUCCESS [ 0.620 > s] > [INFO] DSpace Kernel :: Additions and Local Customizations SUCCESS [ 13.597 > s] > [INFO] DSpace XML-UI (Manakin) :: Local Customizations SUCCESS [01:13 > min] > [INFO] DSpace JSP-UI :: Local Customizations .. SUCCESS [01:26 > min] > [INFO] DSpace RDF :: Local Customizations . SUCCESS [01:41 > min] > [INFO] DSpace REST :: Local Customizations SUCCESS [01:50 > min] > [INFO] DSpace SWORD :: Local Customizations ... SUCCESS [01:14 > min] > [INFO] DSpace SWORD v2 :: Local Customizations SUCCESS [01:14 > min] > [INFO] DSpace SOLR :: Local Customizations FAILURE [ 0.205 > s] > [INFO] DSpace OAI-PMH :: Local Customizations . SKIPPED > [INFO] DSpace Assembly and Configuration .. SKIPPED > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 08:55 min > [INFO] Finished at: 2021-05-06T10:48:15+01:00 > [INFO] > > [ERROR] Failed to execute goal on project solr: Could not resolve > dependencies for project org.dspace.modules:solr:war:6.3: Could not find > artifact jdk.tools:jdk.tools:jar:1.6 at specified path > /usr/lib/jvm/java-11-openjdk-11.0.11.0.9-0.el8_3.x86_64/../lib/tools.jar -> > [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal on project solr: Could not resolve dependencies for project > org.dspace.modules:solr:war:6.3: Could not find artifact > jdk.tools:jdk.tools:jar:1.6 at specified path > /usr/lib/jvm/java-11-openjdk-11.0.11.0.9-0.el8_3.x86_64/../lib/tools.jar > at > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies > (LifecycleDependencyResolver.java:269) > at > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies > (LifecycleDependencyResolver.java:147) > at > org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved > (MojoExecutor.java:248) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:202) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:156) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:148) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:117) > 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:128) > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) > 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:957) > at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) > at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:62) > at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke (Method.java:566) > 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) > Caused by: org.apache.maven.project.DependencyResolutionException: Could not > resolve dependencies for project org.dspace.modules:solr:war:6.3: Could
Re: pvn package command dependencies error
thank you for reply i installed apache-maven-3.6. with java-11 i ran mvp package -e and the result is: INFO] --< org.dspace.modules:solr >--- [INFO] Building DSpace SOLR :: Local Customizations 6.3 [9/11] [INFO] [ war ]- [INFO] [INFO] Reactor Summary for DSpace Assembly and Configuration 6.3: [INFO] [INFO] DSpace Addon Modules ... SUCCESS [ 0.620 s] [INFO] DSpace Kernel :: Additions and Local Customizations SUCCESS [ 13.597 s] [INFO] DSpace XML-UI (Manakin) :: Local Customizations SUCCESS [01:13 min] [INFO] DSpace JSP-UI :: Local Customizations .. SUCCESS [01:26 min] [INFO] DSpace RDF :: Local Customizations . SUCCESS [01:41 min] [INFO] DSpace REST :: Local Customizations SUCCESS [01:50 min] [INFO] DSpace SWORD :: Local Customizations ... SUCCESS [01:14 min] [INFO] DSpace SWORD v2 :: Local Customizations SUCCESS [01:14 min] [INFO] DSpace SOLR :: Local Customizations FAILURE [ 0.205 s] [INFO] DSpace OAI-PMH :: Local Customizations . SKIPPED [INFO] DSpace Assembly and Configuration .. SKIPPED [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 08:55 min [INFO] Finished at: 2021-05-06T10:48:15+01:00 [INFO] [ERROR] Failed to execute goal on project solr: Could not resolve dependencies for project org.dspace.modules:solr:war:6.3: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path /usr/lib/jvm/java-11-openjdk-11.0.11.0.9-0.el8_3.x86_64/../lib/tools.jar -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project solr: Could not resolve dependencies for project org.dspace.modules:solr:war:6.3: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path /usr/lib/jvm/java-11-openjdk-11.0.11.0.9-0.el8_3.x86_64/../lib/tools.jar at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) 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:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) 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:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) 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) Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.dspace.modules:solr:war:6.3: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path /usr/lib/jvm/java-11-openjdk-11.0.11.0.9-0.el8_3.x86_64/../lib/tools.jar at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:209) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies
Re: pvn package command dependencies error
Hey Mark, I just browsed through the commits (git show :/block). You can easily redirect to http like so as mirrors are not blocked: maven-snapshots-https maven-snapshots-https https://oss.sonatype.org/content/repositories/snapshots maven-snapshots maven-restlet-https maven-restlet-https https://maven.restlet.org maven-restlet apache.snapshots-https apache.snapshots-https https://repository.apache.org/snapshots apache.snapshots It works… Kinda. The certificate of https://maven.restlet.org is expired. But other than that, this is how you bypass the http block. HTH Am Di., 4. Mai 2021 um 15:42 Uhr schrieb Mark H. Wood : > > On Tue, May 04, 2021 at 12:29:20PM +0200, Benjamin Marwell wrote: > > you need to use https URLs in your repositories. http URLs are now > > blocked by default. > > That should resolve the issue you are having. > > He can't. The problem is with a transitive dependency of Solr 4.10.4 > and is in Solr's POM. This is a known problem for DSpace: > > https://stackoverflow.com/q/66962265/2916377 > > It was activated by a recent Maven upgrade which blocks unencrypted > repository accesses by default. > > > You should take a look at your $HOME/.m2/settings.xml, as well as > > potential occurrences of repository tags in your pom.xml files. > > That won't help in this case, since the problem lies in a necessarily > ancient version of a third-party dependency. One could either > override the block in .m2/settings.xml or manually acquire a copy of > the restlet artifact and install it in one's local repository (perhaps > using 'mvn install:install-file'). > > There are breaking changes in newer releases of Solr which won't be > accounted for in DSpace until the next major release (which should > come soon). Moving to a newer Solr release is a rather involved > process due to those changes, and I don't know of anyone who has done > it with a released version of DSpace. > > -- > Mark H. Wood > Lead Technology Analyst > > University Library > Indiana University - Purdue University Indianapolis > 755 W. Michigan Street > Indianapolis, IN 46202 > 317-274-0749 > www.ulib.iupui.edu - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: pvn package command dependencies error
On Tue, May 04, 2021 at 12:29:20PM +0200, Benjamin Marwell wrote: > you need to use https URLs in your repositories. http URLs are now > blocked by default. > That should resolve the issue you are having. He can't. The problem is with a transitive dependency of Solr 4.10.4 and is in Solr's POM. This is a known problem for DSpace: https://stackoverflow.com/q/66962265/2916377 It was activated by a recent Maven upgrade which blocks unencrypted repository accesses by default. > You should take a look at your $HOME/.m2/settings.xml, as well as > potential occurrences of repository tags in your pom.xml files. That won't help in this case, since the problem lies in a necessarily ancient version of a third-party dependency. One could either override the block in .m2/settings.xml or manually acquire a copy of the restlet artifact and install it in one's local repository (perhaps using 'mvn install:install-file'). There are breaking changes in newer releases of Solr which won't be accounted for in DSpace until the next major release (which should come soon). Moving to a newer Solr release is a rather involved process due to those changes, and I don't know of anyone who has done it with a released version of DSpace. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu signature.asc Description: PGP signature
Re: pvn package command dependencies error
Hi, you need to use https URLs in your repositories. http URLs are now blocked by default. That should resolve the issue you are having. You should take a look at your $HOME/.m2/settings.xml, as well as potential occurrences of repository tags in your pom.xml files. Best regards, Ben Am Mo., 3. Mai 2021 um 22:43 Uhr schrieb Compte Messagerie : > > hello, > i try to install dspace 6.3 on centos8 with apache-maven-3.8.1 and > openjdk11 > where i execute $mvn package -X//for debug > it ends with: > > [INFO] --< org.dspace.modules:solr > >--- > [INFO] Building DSpace SOLR :: Local Customizations 6.3 > [9/11] > [INFO] [ war > ]- > [INFO] > > [INFO] Reactor Summary for DSpace Assembly and Configuration 6.3: > [INFO] > [INFO] DSpace Addon Modules ... SUCCESS [ > 0.612 s] > [INFO] DSpace Kernel :: Additions and Local Customizations SUCCESS [ > 3.153 s] > [INFO] DSpace XML-UI (Manakin) :: Local Customizations SUCCESS [03:51 > min] > [INFO] DSpace JSP-UI :: Local Customizations .. SUCCESS [02:12 > min] > [INFO] DSpace RDF :: Local Customizations . SUCCESS [03:20 > min] > [INFO] DSpace REST :: Local Customizations SUCCESS [02:22 > min] > [INFO] DSpace SWORD :: Local Customizations ... SUCCESS [03:08 > min] > [INFO] DSpace SWORD v2 :: Local Customizations SUCCESS [02:56 > min] > [INFO] DSpace SOLR :: Local Customizations FAILURE [ > 0.209 s] > [INFO] DSpace OAI-PMH :: Local Customizations . SKIPPED > [INFO] DSpace Assembly and Configuration .. SKIPPED > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 17:56 min > [INFO] Finished at: 2021-05-03T14:36:24+01:00 > [INFO] > > > [ERROR] Failed to execute goal on project solr: Could not resolve > dependencies for project org.dspace.modules:solr:war:6.3: Failed to collect > dependencies at org.dspace:dspace-solr:jar:classes:6.3 -> > org.apache.solr:solr-core:jar:4.10.4 -> > org.restlet.jee:org.restlet:jar:2.1.1: Failed to read artifact descriptor > for org.restlet.jee:org.restlet:jar:2.1.1: Could not transfer artifact > org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-default-http-blocker ( > http://0.0.0.0/): Blocked mirror for repositories: [maven-snapshots ( > http://oss.sonatype.org/content/repositories/snapshots, default, > snapshots), maven-restlet (http://maven.restlet.org, default, > releases+snapshots), apache.snapshots ( > http://repository.apache.org/snapshots, default, disabled)] -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal on project solr: Could not resolve dependencies for project > org.dspace.modules:solr:war:6.3: Failed to collect dependencies at > org.dspace:dspace-solr:jar:classes:6.3 -> > org.apache.solr:solr-core:jar:4.10.4 -> > org.restlet.jee:org.restlet:jar:2.1.1 > at > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies > (LifecycleDependencyResolver.java:269) > at > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies > (LifecycleDependencyResolver.java:147) > at > org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved > (MojoExecutor.java:248) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:202) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:156) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:148) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:117) > 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:128) > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) > 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:957) > at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) > at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke >
pvn package command dependencies error
hello, i try to install dspace 6.3 on centos8 with apache-maven-3.8.1 and openjdk11 where i execute $mvn package -X//for debug it ends with: [INFO] --< org.dspace.modules:solr >--- [INFO] Building DSpace SOLR :: Local Customizations 6.3 [9/11] [INFO] [ war ]- [INFO] [INFO] Reactor Summary for DSpace Assembly and Configuration 6.3: [INFO] [INFO] DSpace Addon Modules ... SUCCESS [ 0.612 s] [INFO] DSpace Kernel :: Additions and Local Customizations SUCCESS [ 3.153 s] [INFO] DSpace XML-UI (Manakin) :: Local Customizations SUCCESS [03:51 min] [INFO] DSpace JSP-UI :: Local Customizations .. SUCCESS [02:12 min] [INFO] DSpace RDF :: Local Customizations . SUCCESS [03:20 min] [INFO] DSpace REST :: Local Customizations SUCCESS [02:22 min] [INFO] DSpace SWORD :: Local Customizations ... SUCCESS [03:08 min] [INFO] DSpace SWORD v2 :: Local Customizations SUCCESS [02:56 min] [INFO] DSpace SOLR :: Local Customizations FAILURE [ 0.209 s] [INFO] DSpace OAI-PMH :: Local Customizations . SKIPPED [INFO] DSpace Assembly and Configuration .. SKIPPED [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 17:56 min [INFO] Finished at: 2021-05-03T14:36:24+01:00 [INFO] [ERROR] Failed to execute goal on project solr: Could not resolve dependencies for project org.dspace.modules:solr:war:6.3: Failed to collect dependencies at org.dspace:dspace-solr:jar:classes:6.3 -> org.apache.solr:solr-core:jar:4.10.4 -> org.restlet.jee:org.restlet:jar:2.1.1: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.1.1: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-default-http-blocker ( http://0.0.0.0/): Blocked mirror for repositories: [maven-snapshots ( http://oss.sonatype.org/content/repositories/snapshots, default, snapshots), maven-restlet (http://maven.restlet.org, default, releases+snapshots), apache.snapshots ( http://repository.apache.org/snapshots, default, disabled)] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project solr: Could not resolve dependencies for project org.dspace.modules:solr:war:6.3: Failed to collect dependencies at org.dspace:dspace-solr:jar:classes:6.3 -> org.apache.solr:solr-core:jar:4.10.4 -> org.restlet.jee:org.restlet:jar:2.1.1 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) 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:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) 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:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) 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) Caused