OKD v3.11,Java v1.8,maven v3.6
我正在尝试在私有AWS中运行的okd上使用s2i部署应用程序。当我尝试构建时,出现以下错误。我尝试更改settings.xml中的代理,但没有用。谁能帮我解决问题。
[INFO]扫描项目...
[INFO] Downloading: https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.2.1.RELEASE/spring-boot-starter-parent-2.2.1.RELEASE.pom [INFO] Downloading: https://maven.repository.redhat.com/ga/org/springframework/boot/spring-boot-starter-parent/2.2.1.RELEASE/spring-boot-starter-parent-2.2.1.RELEASE.pom [INFO] Downloading: https://maven.repository.redhat.com/earlyaccess/all/org/springframework/boot/spring-boot-starter-parent/2.2.1.RELEASE/spring-boot-starter-parent-2.2.1.RELEASE.pom [INFO] Downloading: https://maven.repository.redhat.com/techpreview/all/org/springframework/boot/spring-boot-starter-parent/2.2.1.RELEASE/spring-boot-starter-parent-2.2.1.RELEASE.pom [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for com.cg:rest:0.0.1-SNAPSHOT: Could not transfer artifact
org.springframework.boot:spring-boot-starter-parent:pom:2.2.1.RELEASE 从/到中央(https://repo1.maven.org/maven2):repo1.maven.org: 名称或服务未知,并且“ parent.relativePath”指向错误 第5行第10列的本地POM @
[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 com.cg:rest:0.0.1-SNAPSHOT: Could not transfer artifact
org.springframework.boot:spring-boot-starter-parent:pom:2.2.1.RELEASE 从/到中央(https://repo1.maven.org/maven2):repo1.maven.org: 名称或服务未知,并且“ parent.relativePath”指向错误 第5行第10列的本地POM 在org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:382) 在org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:400) 在org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:391) 在org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:78) 在org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:511) 在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:221) 在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) 在org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) 在org.apache.maven.cli.MavenCli.execute(MavenCli.java:993) 在org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345) 在org.apache.maven.cli.MavenCli.main(MavenCli.java:191) 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:498) 在org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) 在org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 在org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) 在org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] [ERROR] The project com.cg:rest:0.0.1-SNAPSHOT (/tmp/src/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for com.cg:rest:0.0.1-SNAPSHOT: Could not transfer artifact
org.springframework.boot:spring-boot-starter-parent:pom:2.2.1.RELEASE 从/到中央(https://repo1.maven.org/maven2):repo1.maven.org: 名称或服务未知,并且“ parent.relativePath”指向错误 本地POM @第5行,第10列:未知主机repo1.maven.org:名称或 服务未知-> [帮助2]
org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer artifact
org.springframework.boot:spring-boot-starter-parent:pom:2.2.1.RELEASE 从/到中央(https://repo1.maven.org/maven2):repo1.maven.org: 名称或服务未知 在org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:197) 在org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:243)
at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:1051) at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:829) at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:331) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:429) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:398) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:362) at org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:400) at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:391) at org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:78) at org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:511) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:221) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345) at org.apache.maven.cli.MavenCli.main(MavenCli.java:191) 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
转移神器 org.springframework.boot:spring-boot-starter-parent:pom:2.2.1.RELEASE 从/到中央(https://repo1.maven.org/maven2):repo1.maven.org: 名称或服务未知 在org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:453) 在org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:255) 在org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:232) 在org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:303) 在org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:193) ...另外25个 引起原因:org.eclipse.aether.transfer.ArtifactTransferException:无法传输工件 org.springframework.boot:spring-boot-starter-parent:pom:2.2.1.RELEASE 从/到中央(https://repo1.maven.org/maven2):repo1.maven.org: 名称或服务未知 在org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:52) 在org.eclipse.aether.connector.basic.BasicRepositoryConnector $ TaskRunner.run(BasicRepositoryConnector.java:364) 在org.eclipse.aether.util.concurrency.RunnableErrorForwarder $ 1.run(RunnableErrorForwarder.java:76) 在org.eclipse.aether.connector.basic.BasicRepositoryConnector $ DirectExecutor.execute(BasicRepositoryConnector.java:590)处 在org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:258) 在org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:529) 在org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:430) ...另外29个 原因:org.apache.maven.wagon.TransferFailedException:repo1.maven.org:名称或服务未知 在org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1066) 在org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:960) 在org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) 在org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) 在org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61) 在org.eclipse.aether.transport.wagon.WagonTransporter $ GetTaskRunner.run(WagonTransporter.java:569) 在org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:436) 在org.eclipse.aether.transport.wagon.WagonTransporter.get(WagonTransporter.java:413)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:456) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:359) ... 34 more Caused by: java.net.UnknownHostException: repo1.maven.org: Name or service not known at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324) at java.net.InetAddress.getAllByName0(InetAddress.java:1277) at java.net.InetAddress.getAllByName(InetAddress.java:1193) at java.net.InetAddress.getAllByName(InetAddress.java:1127) at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:113) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:832) at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:983) ... 43 more [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/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException error: build error: non-zero (13) exit code from registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift