Java mvn clean install 提示 POM 文件有问题,但是项目在别人的电脑上是可以运行的,在我这边就报错,另外我新建项目时也提示 pom 文件有问题

TD · 2020年06月03日 · 最后由 TD 回复于 2020年06月05日 · 3349 次阅读

第一次使用 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

共收到 2 条回复 时间 点赞
仅楼主可见
TD #1 · 2020年06月05日 Author
xinufo 回复

maven conf 里面的 setting.xml 问题,已解决了

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册