gpt4 book ai didi

java - 在使用 commons-beanutils 的项目的 mvn clean build 上出现 Maven 错误 - 'parent.artifactId' 必须更改

转载 作者:行者123 更新时间:2023-12-02 00:30:43 25 4
gpt4 key购买 nike

这是基于 mulesoft 的 Maven 项目,并使用命令“mvn -X clean install”运行,并且构建失败,必须更改“parent.artifactId”,我如何跟踪并解决错误。公共(public)日志下载。另外,commons-parent 下载到本地存储库,但仍然看不到错误是什么以及如何修复

构建失败并出现以下错误:

警告] commons-logging:commons-logging:jar:1.2 的 POM 无效,传递依赖项(如果有)将不可用:构建 commons-logging:commons-logging 的有效模型时遇到 1 个问题:1.22019-09-19T21:42:05.3626113Z [FATAL] 'parent.artifactId' 必须更改,父元素不能具有与项目相同的 groupId:artifactId。 @

这是依赖树的一部分

[INFO] +- org.mule.modules:mule-validation-module:jar:mule-plugin:1.4.0:compile
[INFO] | \- commons-validator:commons-validator:jar:1.6:compile
[INFO] | +- commons-digester:commons-digester:jar:1.8.1:compile
[INFO] | \- commons-logging:commons-logging:jar:1.2:compile

这是启用调试时的错误。

2019-09-19T21:42:05.2870015Z Downloaded from central: http://somehost.some.com:8081/repository/mulesoft-group/org/apache/httpcomponents/project/8/project-8.pom (35 kB at 1.3 MB/s)
2019-09-19T21:42:05.2870363Z [DEBUG] Writing tracking file /root/.m2/repository/org/apache/httpcomponents/project/8/_remote.repositories
2019-09-19T21:42:05.2876255Z [DEBUG] Writing tracking file /root/.m2/repository/org/apache/httpcomponents/project/8/project-8.pom.lastUpdated
2019-09-19T21:42:05.2975015Z [DEBUG] Using transporter WagonTransporter with priority -1.0 for http://somehost.some.com:8081/repository/mulesoft-group/
2019-09-19T21:42:05.2976429Z [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for http://somehost.some.com:8081/repository/mulesoft-group/
2019-09-19T21:42:05.2977199Z Downloading from central: http://somehost.some.com:8081/repository/mulesoft-group/commons-logging/commons-logging/1.2/commons-logging-1.2.pom
2019-09-19T21:42:05.3047240Z Progress (1): commons-logging-1.2.pom (4.1/19 kB)
2019-09-19T21:42:05.3050582Z Progress (1): commons-logging-1.2.pom (7.8/19 kB)
2019-09-19T21:42:05.3054356Z Progress (1): commons-logging-1.2.pom (12/19 kB)
2019-09-19T21:42:05.3057335Z Progress (1): commons-logging-1.2.pom (16/19 kB)
2019-09-19T21:42:05.3229423Z Progress (1): commons-logging-1.2.pom (19 kB)
2019-09-19T21:42:05.3229897Z
2019-09-19T21:42:05.3230797Z [WARNING] Checksum validation failed, expected 075c03ba4b01932842a996ef8d3fc1ab61ddeac2 but is 6823fb52ed23861f0b46c247e2d0bbff5510b398 from central for http://somehost.some.com:8081/repository/mulesoft-group/commons-logging/commons-logging/1.2/commons-logging-1.2.pom
2019-09-19T21:42:05.3305334Z Progress (1): commons-logging-1.2.pom (4.1/19 kB)
2019-09-19T21:42:05.3308907Z Progress (1): commons-logging-1.2.pom (7.8/19 kB)
2019-09-19T21:42:05.3312625Z Progress (1): commons-logging-1.2.pom (12/19 kB)
2019-09-19T21:42:05.3316742Z Progress (1): commons-logging-1.2.pom (16/19 kB)
2019-09-19T21:42:05.3425761Z Progress (1): commons-logging-1.2.pom (19 kB)
2019-09-19T21:42:05.3426873Z [WARNING] Could not validate integrity of download from http://somehost.some.com:8081/repository/mulesoft-group/commons-logging/commons-logging/1.2/commons-logging-1.2.pom
2019-09-19T21:42:05.3428984Z org.eclipse.aether.transfer.ChecksumFailureException: Checksum validation failed, expected 075c03ba4b01932842a996ef8d3fc1ab61ddeac2 but is 6823fb52ed23861f0b46c247e2d0bbff5510b398
2019-09-19T21:42:05.3435423Z at org.eclipse.aether.connector.basic.ChecksumValidator.validateExternalChecksums (ChecksumValidator.java:174)
2019-09-19T21:42:05.3440358Z at org.eclipse.aether.connector.basic.ChecksumValidator.validate (ChecksumValidator.java:103)
2019-09-19T21:42:05.3444416Z at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask (BasicRepositoryConnector.java:456)
2019-09-19T21:42:05.3447867Z at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:360)
2019-09-19T21:42:05.3451475Z at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run (RunnableErrorForwarder.java:75)
2019-09-19T21:42:05.3454708Z at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute (BasicRepositoryConnector.java:583)
2019-09-19T21:42:05.3456941Z at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get (BasicRepositoryConnector.java:259)
2019-09-19T21:42:05.3459419Z at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads (DefaultArtifactResolver.java:498)
2019-09-19T21:42:05.3461936Z at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:399)
2019-09-19T21:42:05.3470505Z at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:224)
2019-09-19T21:42:05.3494763Z at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact (DefaultArtifactResolver.java:201)
2019-09-19T21:42:05.3501673Z at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom (DefaultArtifactDescriptorReader.java:261)
2019-09-19T21:42:05.3503236Z at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor (DefaultArtifactDescriptorReader.java:192)
2019-09-19T21:42:05.3503631Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor (DefaultDependencyCollector.java:539)
2019-09-19T21:42:05.3537465Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult (DefaultDependencyCollector.java:522)
2019-09-19T21:42:05.3539242Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency (DefaultDependencyCollector.java:411)
2019-09-19T21:42:05.3540350Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency (DefaultDependencyCollector.java:365)
2019-09-19T21:42:05.3541338Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process (DefaultDependencyCollector.java:353)
2019-09-19T21:42:05.3542292Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.doRecurse (DefaultDependencyCollector.java:507)
2019-09-19T21:42:05.3543487Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency (DefaultDependencyCollector.java:460)
2019-09-19T21:42:05.3544534Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency (DefaultDependencyCollector.java:365)
2019-09-19T21:42:05.3545671Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process (DefaultDependencyCollector.java:353)
2019-09-19T21:42:05.3546927Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.doRecurse (DefaultDependencyCollector.java:507)
2019-09-19T21:42:05.3547929Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency (DefaultDependencyCollector.java:460)
2019-09-19T21:42:05.3548865Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency (DefaultDependencyCollector.java:365)
2019-09-19T21:42:05.3549837Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process (DefaultDependencyCollector.java:353)
2019-09-19T21:42:05.3550794Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.doRecurse (DefaultDependencyCollector.java:507)
2019-09-19T21:42:05.3551747Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency (DefaultDependencyCollector.java:460)
2019-09-19T21:42:05.3552714Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency (DefaultDependencyCollector.java:365)
2019-09-19T21:42:05.3553945Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process (DefaultDependencyCollector.java:353)
2019-09-19T21:42:05.3554960Z at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies (DefaultDependencyCollector.java:256)
2019-09-19T21:42:05.3556128Z at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies (DefaultRepositorySystem.java:282)
2019-09-19T21:42:05.3557129Z at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolveInternal (DefaultPluginDependenciesResolver.java:202)
2019-09-19T21:42:05.3558078Z at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve (DefaultPluginDependenciesResolver.java:149)
2019-09-19T21:42:05.3559220Z at org.apache.maven.plugin.internal.DefaultMavenPluginManager.resolveExtensionArtifacts (DefaultMavenPluginManager.java:910)
2019-09-19T21:42:05.3560234Z at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupExtensionsRealm (DefaultMavenPluginManager.java:841)
2019-09-19T21:42:05.3561209Z at org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm (DefaultProjectBuildingHelper.java:197)
2019-09-19T21:42:05.3562188Z at org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssembled (DefaultModelBuildingListener.java:100)
2019-09-19T21:42:05.3563249Z at org.apache.maven.model.building.ModelBuildingEventCatapult$1.fire (ModelBuildingEventCatapult.java:44)
2019-09-19T21:42:05.3564480Z at org.apache.maven.model.building.DefaultModelBuilder.fireEvent (DefaultModelBuilder.java:1348)
2019-09-19T21:42:05.3565568Z at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:443)
2019-09-19T21:42:05.3566561Z at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:423)
2019-09-19T21:42:05.3574950Z at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:580)
2019-09-19T21:42:05.3576229Z at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:372)
2019-09-19T21:42:05.3577236Z at org.apache.maven.graph.DefaultGraphBuilder.collectProjects (DefaultGraphBuilder.java:400)
2019-09-19T21:42:05.3583109Z at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor (DefaultGraphBuilder.java:391)
2019-09-19T21:42:05.3615097Z at org.apache.maven.graph.DefaultGraphBuilder.build (DefaultGraphBuilder.java:78)
2019-09-19T21:42:05.3615784Z at org.apache.maven.DefaultMaven.buildGraph (DefaultMaven.java:511)
2019-09-19T21:42:05.3618209Z at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:221)
2019-09-19T21:42:05.3618481Z at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
2019-09-19T21:42:05.3618642Z at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
2019-09-19T21:42:05.3618954Z at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
2019-09-19T21:42:05.3619138Z at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
2019-09-19T21:42:05.3619324Z at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
2019-09-19T21:42:05.3619477Z at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
2019-09-19T21:42:05.3619661Z at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
2019-09-19T21:42:05.3619853Z at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
2019-09-19T21:42:05.3620013Z at java.lang.reflect.Method.invoke (Method.java:498)
2019-09-19T21:42:05.3620194Z at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
2019-09-19T21:42:05.3620381Z at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
2019-09-19T21:42:05.3620579Z at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
2019-09-19T21:42:05.3620762Z at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
2019-09-19T21:42:05.3620936Z
2019-09-19T21:42:05.3622494Z [WARNING] Checksum validation failed, expected 075c03ba4b01932842a996ef8d3fc1ab61ddeac2 but is 6823fb52ed23861f0b46c247e2d0bbff5510b398 from central for http://somehost.some.com:8081/repository/mulesoft-group/commons-logging/commons-logging/1.2/commons-logging-1.2.pom
2019-09-19T21:42:05.3623464Z Downloaded from central: http://somehost.some.com:8081/repository/mulesoft-group/commons-logging/commons-logging/1.2/commons-logging-1.2.pom (19 kB at 325 kB/s)
2019-09-19T21:42:05.3624062Z [DEBUG] Writing tracking file /root/.m2/repository/commons-logging/commons-logging/1.2/_remote.repositories
2019-09-19T21:42:05.3624674Z [DEBUG] Writing tracking file /root/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.pom.lastUpdated
2019-09-19T21:42:05.3625454Z [WARNING] The POM for commons-logging:commons-logging:jar:1.2 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for commons-logging:commons-logging:1.2
2019-09-19T21:42:05.3626113Z [FATAL] 'parent.artifactId' must be changed, the parent element cannot have the same groupId:artifactId as the project. @
2019-09-19T21:42:05.3626248Z
2019-09-19T21:42:05.3626810Z [DEBUG] Using transporter WagonTransporter with priority -1.0 for http://somehost.some.com:8081/repository/mulesoft-group/
2019-09-19T21:42:05.3627503Z [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for http://somehost.some.com:8081/repository/mulesoft-group/
2019-09-19T21:42:05.3628373Z Downloading from central: http://somehost.some.com:8081/repository/mulesoft-group/commons-codec/commons-codec/1.10/commons-codec-1.10.pom
2019-09-19T21:42:05.3688093Z Progress (1): commons-codec-1.10.pom (4.1/12 kB)
2019-09-19T21:42:05.3690839Z Progress (1): commons-codec-1.10.pom (7.8/12 kB)
2019-09-19T21:42:05.3805171Z Progress (1): commons-codec-1.10.pom (12 kB)

最佳答案

有两个问题,第一个问题,你的存储库中有 jar 与它们的 .md5 和 sha1 不匹配的 Artifact ,但这只是一个警告,第二个问题,你有 2 个 poms,一个父级和一个模块,但是两者都有相同的artifactId,它们必须有不同的id才能maven将它们作为不同的artifacts处理。

问题出在内部公共(public)日志记录存储库上,其中父 ID 实际上是公共(public)日志记录,不应该是,应该是公共(public)父级。

关于java - 在使用 commons-beanutils 的项目的 mvn clean build 上出现 Maven 错误 - 'parent.artifactId' 必须更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58019539/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com