This topic has 1 reply, 2 voices, and was last updated 5 years, 2 months ago by full2.

  • Author
    Posts
  • #17554
     anand2
    Participant

    Hi,

    I’m using OpenDJ with java 8 to access the LDAP and also using Maven to build the Application.When i try to build using the Maven am getting the following build error.Please help me to solve it.

    Downloading: http://maven.forgerock.org/repo/releases/org/forgerock/opendj/opendj-ldap-sdk/2.6.11/opendj-ldap-sdk-2.6.11.pom
    [INFO] ————————————————————————
    [INFO] BUILD FAILURE
    [INFO] ————————————————————————
    [INFO] Total time: 2.262s
    [INFO] Finished at: Thu Jun 01 15:47:11 MDT 2017
    [INFO] Final Memory: 8M/155M
    [INFO] ————————————————————————
    [ERROR] Failed to execute goal on project gdmp-directoryservice: Could not resolve dependencies for project com.medtronic.gdmp:gdmp-directoryservice:jar:4.0.0: Failed to collect dependencies for [log4j:log4j:jar:1.2.16 (compile), junit:junit:jar:4.12 (test), org.forgerock.opendj:opendj-ldap-sdk:jar:2.6.11 (compile), javax.servlet:javax.servlet-api:jar:3.1.0 (provided), org.springframework:spring-context:jar:4.2.4.RELEASE (compile), org.springframework:spring-test:jar:4.2.4.RELEASE (test), org.springframework:spring-webmvc:jar:4.2.4.RELEASE (compile), javax.servlet:jstl:jar:1.2 (compile), org.glassfish.jersey.ext:jersey-spring3:jar:2.22.2 (compile), org.aspectj:aspectjweaver:jar:1.8.5 (compile), org.glassfish.jersey.media:jersey-media-json-jackson:jar:2.22.2 (compile), commons-logging:commons-logging:jar:1.2 (compile), commons-validator:commons-validator:jar:1.5.1 (compile)]: Failed to read artifact descriptor for org.forgerock.opendj:opendj-ldap-sdk:jar:2.6.11: Could not transfer artifact org.forgerock.opendj:opendj-ldap-sdk:pom:2.6.11 from/to forgerock-staging-repository (http://maven.forgerock.org/repo/releases): Access denied to http://maven.forgerock.org/repo/releases/org/forgerock/opendj/opendj-ldap-sdk/2.6.11/opendj-ldap-sdk-2.6.11.pom. Error code 401, Unauthorized -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project gdmp-directoryservice: Could not resolve dependencies for project com.medtronic.gdmp:gdmp-directoryservice:jar:4.0.0: Failed to collect dependencies for [log4j:log4j:jar:1.2.16 (compile), junit:junit:jar:4.12 (test), org.forgerock.opendj:opendj-ldap-sdk:jar:2.6.11 (compile), javax.servlet:javax.servlet-api:jar:3.1.0 (provided), org.springframework:spring-context:jar:4.2.4.RELEASE (compile), org.springframework:spring-test:jar:4.2.4.RELEASE (test), org.springframework:spring-webmvc:jar:4.2.4.RELEASE (compile), javax.servlet:jstl:jar:1.2 (compile), org.glassfish.jersey.ext:jersey-spring3:jar:2.22.2 (compile), org.aspectj:aspectjweaver:jar:1.8.5 (compile), org.glassfish.jersey.media:jersey-media-json-jackson:jar:2.22.2 (compile), commons-logging:commons-logging:jar:1.2 (compile), commons-validator:commons-validator:jar:1.5.1 (compile)]
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
    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:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    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:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project com.medtronic.gdmp:gdmp-directoryservice:jar:4.0.0: Failed to collect dependencies for [log4j:log4j:jar:1.2.16 (compile), junit:junit:jar:4.12 (test), org.forgerock.opendj:opendj-ldap-sdk:jar:2.6.11 (compile), javax.servlet:javax.servlet-api:jar:3.1.0 (provided), org.springframework:spring-context:jar:4.2.4.RELEASE (compile), org.springframework:spring-test:jar:4.2.4.RELEASE (test), org.springframework:spring-webmvc:jar:4.2.4.RELEASE (compile), javax.servlet:jstl:jar:1.2 (compile), org.glassfish.jersey.ext:jersey-spring3:jar:2.22.2 (compile), org.aspectj:aspectjweaver:jar:1.8.5 (compile), org.glassfish.jersey.media:jersey-media-json-jackson:jar:2.22.2 (compile), commons-logging:commons-logging:jar:1.2 (compile), commons-validator:commons-validator:jar:1.5.1 (compile)]
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:158)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
    … 22 more
    Caused by: org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for [log4j:log4j:jar:1.2.16 (compile), junit:junit:jar:4.12 (test), org.forgerock.opendj:opendj-ldap-sdk:jar:2.6.11 (compile), javax.servlet:javax.servlet-api:jar:3.1.0 (provided), org.springframework:spring-context:jar:4.2.4.RELEASE (compile), org.springframework:spring-test:jar:4.2.4.RELEASE (test), org.springframework:spring-webmvc:jar:4.2.4.RELEASE (compile), javax.servlet:jstl:jar:1.2 (compile), org.glassfish.jersey.ext:jersey-spring3:jar:2.22.2 (compile), org.aspectj:aspectjweaver:jar:1.8.5 (compile), org.glassfish.jersey.media:jersey-media-json-jackson:jar:2.22.2 (compile), commons-logging:commons-logging:jar:1.2 (compile), commons-validator:commons-validator:jar:1.5.1 (compile)]
    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:258)
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:308)
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)
    … 23 more
    Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.forgerock.opendj:opendj-ldap-sdk:jar:2.6.11
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:296)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)
    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:412)
    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:240)
    … 25 more
    Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.forgerock.opendj:opendj-ldap-sdk:pom:2.6.11 from/to forgerock-staging-repository (http://maven.forgerock.org/repo/releases): Access denied to http://maven.forgerock.org/repo/releases/org/forgerock/opendj/opendj-ldap-sdk/2.6.11/opendj-ldap-sdk-2.6.11.pom. Error code 401, Unauthorized
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281)
    … 28 more
    Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.forgerock.opendj:opendj-ldap-sdk:pom:2.6.11 from/to forgerock-staging-repository (http://maven.forgerock.org/repo/releases): Access denied to http://maven.forgerock.org/repo/releases/org/forgerock/opendj/opendj-ldap-sdk/2.6.11/opendj-ldap-sdk-2.6.11.pom. Error code 401, Unauthorized
    at org.sonatype.aether.connector.async.AsyncRepositoryConnector$3.wrap(AsyncRepositoryConnector.java:1546)
    at org.sonatype.aether.connector.async.AsyncRepositoryConnector$3.wrap(AsyncRepositoryConnector.java:1537)
    at org.sonatype.aether.connector.async.AsyncRepositoryConnector$GetTask.flush(AsyncRepositoryConnector.java:1035)
    at org.sonatype.aether.connector.async.AsyncRepositoryConnector.get(AsyncRepositoryConnector.java:409)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:457)
    … 31 more
    Caused by: org.sonatype.aether.connector.async.AuthorizationException: Access denied to http://maven.forgerock.org/repo/releases/org/forgerock/opendj/opendj-ldap-sdk/2.6.11/opendj-ldap-sdk-2.6.11.pom. Error code 401, Unauthorized
    at org.sonatype.aether.connector.async.AsyncRepositoryConnector.handleResponseCode(AsyncRepositoryConnector.java:472)
    at org.sonatype.aether.connector.async.AsyncRepositoryConnector.access$1800(AsyncRepositoryConnector.java:90)
    at org.sonatype.aether.connector.async.AsyncRepositoryConnector$GetTask$1.onCompleted(AsyncRepositoryConnector.java:750)
    at org.sonatype.aether.connector.async.CompletionHandler.onCompleted(CompletionHandler.java:180)
    at org.sonatype.aether.connector.async.CompletionHandler.onCompleted(CompletionHandler.java:39)
    at com.ning.http.client.providers.netty.NettyResponseFuture.getContent(NettyResponseFuture.java:244)
    at com.ning.http.client.providers.netty.NettyResponseFuture.done(NettyResponseFuture.java:269)
    at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.markAsDone(NettyAsyncHttpProvider.java:1560)
    at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.finishUpdate(NettyAsyncHttpProvider.java:1577)
    at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.messageReceived(NettyAsyncHttpProvider.java:1271)
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:783)
    at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:149)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:783)
    at org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:131)
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:783)
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302)
    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndFireMessageReceived(ReplayingDecoder.java:522)
    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506)
    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443)
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
    at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(HttpClientCodec.java:77)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
    at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)
    at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
    at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
    [ERROR]
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

    Below is my Porm.xml

    <repositories>
    <repository>
    <id>forgerock-staging-repository</id>
    <name>ForgeRock Release Repository</name>
    <url>http://maven.forgerock.org/repo/repo</url&gt;
    <snapshots>
    <enabled>false</enabled>
    </snapshots>
    </repository>
    <repository>
    <id>forgerock-snapshots-repository</id>
    <name>ForgeRock Snapshot Repository</name>
    <url>http://maven.forgerock.org/repo/repo</url&gt;
    <releases>
    <enabled>false</enabled>
    </releases>
    </repository>
    </repositories>
    <dependencies>
    …..
    <dependency>
    <groupId>org.forgerock.opendj</groupId>
    <artifactId>opendj-ldap-sdk</artifactId>
    <version>2.6.0</version>
    </dependency>
    </dependencies>

    #17605
     full2
    Participant

    As far as I know, ForgeRock has its maven repositories stopped.

    You may browsr some threads in these forums (look for maven, repository or something similar) telling the same

    By the way, to ForgeRock, is there any news, about maven repositories? Any estimated date of recovery?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?