Problem while building the custom-connector for Chaptr 1: Lab 7: Exer. 2: Task 3

This topic has 1 reply, 2 voices, and was last updated 4 years, 9 months ago by Jamie Bowen.

  • Author
    Posts
  • #19353
     pryton
    Participant

    Hi guys,

    i am learning in the selfpaced training. I am at the Chapter 1: Lab 7: Exercise 2: Task 3:
    and working with the IDM 4.0.0 version and have a problem when i will run the command ” mvn -X install ”

    below you can see the output, what is the reason? I already tried to set the parent pom.xml to empty <relativepath/> tag. but still the same issue.

    here is the output:

    burhan@pryton:~/Schreibtisch/forgerock/labfiles/advancedProvisioning/openidm/samples/sample3/create-connector$ mvn -X clean install
    Apache Maven 3.3.9
    Maven home: /usr/share/maven
    Java version: 1.8.0_131, vendor: Oracle Corporation
    Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
    Default locale: de_DE, platform encoding: UTF-8
    OS name: “linux”, version: “4.10.0-37-generic”, arch: “amd64”, family: “unix”
    [DEBUG] Created new class realm maven.api
    [DEBUG] Importing foreign packages into class realm maven.api
    [DEBUG] Imported: javax.enterprise.inject.* < plexus.core
    [DEBUG] Imported: javax.enterprise.util.* < plexus.core
    [DEBUG] Imported: javax.inject.* < plexus.core
    [DEBUG] Imported: org.apache.maven.* < plexus.core
    [DEBUG] Imported: org.apache.maven.artifact < plexus.core
    [DEBUG] Imported: org.apache.maven.classrealm < plexus.core
    [DEBUG] Imported: org.apache.maven.cli < plexus.core
    [DEBUG] Imported: org.apache.maven.configuration < plexus.core
    [DEBUG] Imported: org.apache.maven.exception < plexus.core
    [DEBUG] Imported: org.apache.maven.execution < plexus.core
    [DEBUG] Imported: org.apache.maven.execution.scope < plexus.core
    [DEBUG] Imported: org.apache.maven.lifecycle < plexus.core
    [DEBUG] Imported: org.apache.maven.model < plexus.core
    [DEBUG] Imported: org.apache.maven.monitor < plexus.core
    [DEBUG] Imported: org.apache.maven.plugin < plexus.core
    [DEBUG] Imported: org.apache.maven.profiles < plexus.core
    [DEBUG] Imported: org.apache.maven.project < plexus.core
    [DEBUG] Imported: org.apache.maven.reporting < plexus.core
    [DEBUG] Imported: org.apache.maven.repository < plexus.core
    [DEBUG] Imported: org.apache.maven.rtinfo < plexus.core
    [DEBUG] Imported: org.apache.maven.settings < plexus.core
    [DEBUG] Imported: org.apache.maven.toolchain < plexus.core
    [DEBUG] Imported: org.apache.maven.usability < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.* < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.events < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core
    [DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core
    [DEBUG] Imported: org.codehaus.classworlds < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.* < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.component < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.container < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.context < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.logging < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.personality < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
    [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
    [DEBUG] Imported: org.eclipse.aether.* < plexus.core
    [DEBUG] Imported: org.eclipse.aether.artifact < plexus.core
    [DEBUG] Imported: org.eclipse.aether.collection < plexus.core
    [DEBUG] Imported: org.eclipse.aether.deployment < plexus.core
    [DEBUG] Imported: org.eclipse.aether.graph < plexus.core
    [DEBUG] Imported: org.eclipse.aether.impl < plexus.core
    [DEBUG] Imported: org.eclipse.aether.installation < plexus.core
    [DEBUG] Imported: org.eclipse.aether.internal.impl < plexus.core
    [DEBUG] Imported: org.eclipse.aether.metadata < plexus.core
    [DEBUG] Imported: org.eclipse.aether.repository < plexus.core
    [DEBUG] Imported: org.eclipse.aether.resolution < plexus.core
    [DEBUG] Imported: org.eclipse.aether.spi < plexus.core
    [DEBUG] Imported: org.eclipse.aether.transfer < plexus.core
    [DEBUG] Imported: org.eclipse.aether.version < plexus.core
    [DEBUG] Imported: org.slf4j.* < plexus.core
    [DEBUG] Imported: org.slf4j.helpers.* < plexus.core
    [DEBUG] Imported: org.slf4j.spi.* < plexus.core
    [DEBUG] Populating class realm maven.api
    [INFO] Error stacktraces are turned on.
    [DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
    [DEBUG] Reading user settings from /home/burhan/.m2/settings.xml
    [DEBUG] Reading global toolchains from /usr/share/maven/conf/toolchains.xml
    [DEBUG] Reading user toolchains from /home/burhan/.m2/toolchains.xml
    [DEBUG] Using local repository at /home/burhan/.m2/repository
    [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /home/burhan/.m2/repository
    [INFO] Scanning for projects…
    [DEBUG] Using transporter WagonTransporter with priority -1.0 for http://maven.forgerock.org/repo/releases
    [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for http://maven.forgerock.org/repo/releases
    Downloading: http://maven.forgerock.org/repo/releases/org/forgerock/openicf/connectors/connectors-parent/1.5.0.0/connectors-parent-1.5.0.0.pom
    [DEBUG] Writing tracking file /home/burhan/.m2/repository/org/forgerock/openicf/connectors/connectors-parent/1.5.0.0/connectors-parent-1.5.0.0.pom.lastUpdated
    [ERROR] [ERROR] Some problems were encountered while processing the POMs:
    [FATAL] Non-resolvable parent POM for org.forgerock.openicf.connectors:hrdb-connector:1.4.1.0: Could not transfer artifact org.forgerock.openicf.connectors:connectors-parent:pom:1.5.0.0 from/to forgerock-staging-repository (http://maven.forgerock.org/repo/releases): Not authorized , ReasonPhrase:Unauthorized. and ‘parent.relativePath’ points at wrong local POM @ line 28, column 13
    @

    [ERROR] The build could not read 1 project -> [Help 1]
    org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
    [FATAL] Non-resolvable parent POM for org.forgerock.openicf.connectors:hrdb-connector:1.4.1.0: Could not transfer artifact org.forgerock.openicf.connectors:connectors-parent:pom:1.5.0.0 from/to forgerock-staging-repository (http://maven.forgerock.org/repo/releases): Not authorized , ReasonPhrase:Unauthorized. and ‘parent.relativePath’ points at wrong local POM @ line 28, column 13

    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:422)
    at org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:419)
    at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:410)
    at org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:83)
    at org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:491)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:219)
    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)
    [ERROR]
    [ERROR] The project org.forgerock.openicf.connectors:hrdb-connector:1.4.1.0 (/home/burhan/Schreibtisch/forgerock/labfiles/advancedProvisioning/openidm/samples/sample3/create-connector/pom.xml) has 1 error
    [ERROR] Non-resolvable parent POM for org.forgerock.openicf.connectors:hrdb-connector:1.4.1.0: Could not transfer artifact org.forgerock.openicf.connectors:connectors-parent:pom:1.5.0.0 from/to forgerock-staging-repository (http://maven.forgerock.org/repo/releases): Not authorized , ReasonPhrase:Unauthorized. and ‘parent.relativePath’ points at wrong local POM @ line 28, column 13 -> [Help 2]
    org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer artifact org.forgerock.openicf.connectors:connectors-parent:pom:1.5.0.0 from/to forgerock-staging-repository (http://maven.forgerock.org/repo/releases): Not authorized , ReasonPhrase:Unauthorized.
    at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:197)
    at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:246)
    at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:1000)
    at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:800)
    at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:329)
    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:469)
    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:438)
    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:401)
    at org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:419)
    at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:410)
    at org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:83)
    at org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:491)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:219)
    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.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.forgerock.openicf.connectors:connectors-parent:pom:1.5.0.0 from/to forgerock-staging-repository (http://maven.forgerock.org/repo/releases): Not authorized , ReasonPhrase:Unauthorized.
    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.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
    at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:193)
    … 25 more
    Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.forgerock.openicf.connectors:connectors-parent:pom:1.5.0.0 from/to forgerock-staging-repository (http://maven.forgerock.org/repo/releases): Not authorized , ReasonPhrase:Unauthorized.
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
    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)
    … 29 more
    Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Not authorized , ReasonPhrase:Unauthorized.
    at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1005)
    at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:960)
    at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
    at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
    at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
    at org.eclipse.aether.transport.wagon.WagonTransporter$GetTaskRunner.run(WagonTransporter.java:560)
    at org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:427)
    at org.eclipse.aether.transport.wagon.WagonTransporter.get(WagonTransporter.java:404)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
    … 34 more
    [ERROR]
    [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/ProjectBuildingException
    [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

    #19448
     Jamie Bowen
    Moderator

    Hi @prtyon,

    You need to authenticate your build to be able to access our maven repositories so the dependencies may be downloaded for your build. To do that please follow the following knowledge base article;

    https://backstage.forgerock.com/knowledge/kb/article/a74096897

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?