- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这是基于 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/
POM 是否可以声明(或至少发布)artifactId包含系统属性?我的意思是实际项目的 artifactId,而不是依赖项。 我正在使用 maven 构建一个 scala 项目,因此,为了允许为不同
我有一个看起来像这样的依赖项: dependencies { apt 'io.sweers.barber:barber-compiler:1.3.0' compile 'io.swee
这个问题已经有答案了: How to add local jar files to a Maven project? (35 个回答) 已关闭 7 年前。 我想将“html2image”库添加到我的项
最近几天我尝试使用 webservices 和 jboss4,我偶然发现了以下问题: 我在我的 pom.xml 中包含了这个依赖: org.jboss jboss-jaxws
我想要一个父 pom 为众多子 pom 定义一些要继承的属性。但是,当我尝试在父 pom 的这些属性之一中使用 artifactId 时,它会在子 pom 的有效 pom 中重复。下面是非常基本的例子
The underlying mechanism used to indicate which version of Scala a library was compiled against is t
我使用Gradle构建项目(Java)。 Gradle 2.3,Java7/8。效果很好。 要构建项目,我们定义在编译,测试(testRuntime)和运行时阶段需要什么所有库,并在“依赖关系”部分定
我的gradle文件中有以下条目 dependencies { compile 'org.A:A:1.0' } 会下载“org.B:B:1.0”,因为这是依赖关系。(在gradle中未明确提及
在处理项目时,我的要求是创建一个模块。 该命令将类似于: mvn archetype:generate \ -DarchetypeCatalog=local \ -DartifactId=te
我需要构建不同类型的库,它们仅在 list 信息上有所不同。 制作不同的项目不是一个好主意,因为来源完全相同。 我尝试了模块 pom,但是子 pom 无法引用父源。 我也尝试过使用 artifactI
我正在使用 Maven 构建一些不同的 Web 项目,并考虑如何命名它们的 Artifact 。对于 REST API 层,共享一些类很方便,所以我想创建 exchange-api.jar 文件,这些
我是 Java 新手。我想从文档中创建一个网络服务“Implementing a simple OWS service ”,但在 pom 文件中有两个错误: Missing artifact org.
我正在将现有项目转换为 Maven 以进行构建/依赖项/等,并且我正在尝试弄清楚如何列出其依赖项。 我知道它使用的一堆包,但我不确定它们将包含在哪个 Artifact 中。groupId 很容易弄清楚
我已经使用 archetype:create-from-project 从多模块项目中创建了一个原型(prototype)。 archetype-metadata.xml 如下所示,我想要的是当我运行
我有一个 maven POM,我想将其用作模板,根据我传递给它的参数生成具有不同名称的 Artifact 。但我不知道如何在运行时指定 artifactId。 如果我参数化 像这样的元素: foo-$
我刚刚尝试在 Maven 中创建一个项目,其 artifactId 完全由非英文字符(“日本国”)组成。 我从 Maven 得到以下反馈: 错误] fatal error [信息] ---------
我正在使用 gradle 的出版物和 Artifactory 插件向 Artifactory 发布一个由不同模块组成的 SDK。 所有内容都已发布,所有模块都分组在 build 中使用我在 gradl
我正在上传一些 my-libs.zip到 S3 并且无法获得覆盖默认值的语法 artifactId .目前artifactId ,捡到的是project.name来自 settings.gradle
我对 Akka 的 Java API 版本控制约定很好奇,但我在他们的文档中找不到任何内容。 如果您访问 Maven 存储库并搜索可用的 akka-actor 版本,您将找到如下条目: 'com.ty
我有一个多模块项目,我想按照 Maven Reactor 的排列顺序获取 artifactId 列表。这可以通过 Maven 命令行来完成吗? 到目前为止,我已经掌握了部分信息 mvn validat
我是一名优秀的程序员,十分优秀!