mvn clean install 提示 POM 檔案有問題,但是專案在別人的電腦上是可以執行的,在我這邊就報錯,另外我新建專案時也提示 pom 檔案有問題

TD發表於2020-06-03

第一次使用 maven,按照網上的教程都配置好環境了,然後 mvn -version 驗證安裝成功了,setting 檔案也是同事給我的,按理說沒有啥問題,但是他給我寫好的工程匯入到我這邊就提示下面的錯誤,看了大半天也沒解決,求助~~~

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] The parents form a cycle: org.glassfish.jersey:jersey-bom:2.30.1 -> org.eclipse.ee4j:project:1.0.5 -> org.eclipse.ee4j:project:1.0.5 @ org.glassfish.jersey:jersey-bom:2.29.1
[FATAL] The parents form a cycle: org.apache.logging.log4j:log4j-bom:2.13.2 -> org.apache.logging:logging-parent:1 -> org.apache.logging:logging-parent:1 @ org.apache.logging.log4j:log4j-bom:2.12.1
[ERROR] Invalid packaging for parent POM redis.clients:jedis:2.6.0, must be "pom" but is "jar" @ redis.clients:jedis:2.6.0, D:\mavenLib\org\sonatype\oss\oss-parent\7\oss-parent-7.pom, line 9, column 13
[ERROR] Invalid packaging for parent POM redis.clients:jedis:2.6.0, must be "pom" but is "jar" @ redis.clients:jedis:2.6.0, D:\mavenLib\org\sonatype\oss\oss-parent\7\oss-parent-7.pom, line 9, column 13
[ERROR] Invalid packaging for parent POM redis.clients:jedis:2.6.0, must be "pom" but is "jar" @ redis.clients:jedis:2.6.0, D:\mavenLib\org\sonatype\oss\oss-parent\7\oss-parent-7.pom, line 9, column 13
[FATAL] The parents form a cycle: io.netty:netty-bom:4.1.49.Final -> org.sonatype.oss:oss-parent:7 -> org.sonatype.oss:oss-parent:7 @ redis.clients:jedis:2.6.0
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]

[ERROR] The project com.hikvision.ys7:webhooks-dubbo:1.0.0 (D:\dubbo_autotest\webhooks-dubbo\pom.xml) has 6 errors
[ERROR] The parents form a cycle: org.glassfish.jersey:jersey-bom:2.30.1 -> org.eclipse.ee4j:project:1.0.5 -> org.eclipse.ee4j:project:1.0.5 @ org.glassfish.jersey:jersey-bom:2.29.1
[ERROR] The parents form a cycle: org.apache.logging.log4j:log4j-bom:2.13.2 -> org.apache.logging:logging-parent:1 -> org.apache.logging:logging-parent:1 @ org.apache.logging.log4j:log4j-bom:2.12.1
[ERROR] Invalid packaging for parent POM redis.clients:jedis:2.6.0, must be "pom" but is "jar" @ redis.clients:jedis:2.6.0, D:\mavenLib\org\sonatype\oss\oss-parent\7\oss-parent-7.pom, line 9, column 13
[ERROR] Invalid packaging for parent POM redis.clients:jedis:2.6.0, must be "pom" but is "jar" @ redis.clients:jedis:2.6.0, D:\mavenLib\org\sonatype\oss\oss-parent\7\oss-parent-7.pom, line 9, column 13
[ERROR] Invalid packaging for parent POM redis.clients:jedis:2.6.0, must be "pom" but is "jar" @ redis.clients:jedis:2.6.0, D:\mavenLib\org\sonatype\oss\oss-parent\7\oss-parent-7.pom, line 9, column 13
[ERROR] The parents form a cycle: io.netty:netty-bom:4.1.49.Final -> org.sonatype.oss:oss-parent:7 -> org.sonatype.oss:oss-parent:7 @ redis.clients:jedis:2.6.0
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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

相關文章