欢乐树 发表于 2022-2-23 15:25:21

mvn install错误,找不到包

Some problems were encountered while processing the POMs:
Non-resolvable parent POM for o2oa:o2oa_custom:6.4: Failure to find o2oa:o2server:pom:6.4 in http://maven.aliyun.com/nexus/content/groups/public was cached in the loc
al repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced and 'parent.relativePath' points at wrong local
POM @ line 5, column 10
The project o2oa:o2oa_custom:6.4 (D:\O2OAtest1\o2custom-sample-master\pom.xml) has 1 error
   Non-resolvable parent POM for o2oa:o2oa_custom:6.4: Failure to find o2oa:o2server:pom:6.4 in http://maven.aliyun.com/nexus/content/groups/public was cached in the
local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced and 'parent.relativePath' points at wrong lo
cal POM @ line 5, column 10 ->



欢乐树 发表于 2022-2-23 15:26:06

我下载的示例工程。按照视频的操作执行,完全一样,但是报错啊。什么情况。说这个

启蒙星 发表于 2022-2-24 10:51:39

检查下图片中的pom文件是否一致,另外第一次mvn install执行要在大项目目录下,如示例的o2oa_custom

欢乐树 发表于 2022-2-24 11:17:52

启蒙星 发表于 2022-2-24 10:51
检查下图片中的pom文件是否一致,另外第一次mvn install执行要在大项目目录下,如示例的o2oa_custom ...

一样的,我用的ieda,在D:\O2OAtest1\o2custom-sample-master>mvn install 这样执行的

启蒙星 发表于 2022-2-28 10:11:02

测试下框红框的maven仓库地址是否能正确访问:https://maven.o2oa.net/repository/maven-public/,我看你的报错只从阿里的仓库下载,理论上程序配置的仓库优先

欢乐树 发表于 2022-2-28 19:59:09

本帖最后由 欢乐树 于 2022-2-28 20:53 编辑

启蒙星 发表于 2022-2-28 10:11
测试下框红框的maven仓库地址是否能正确访问:https://maven.o2oa.net/repository/maven-public/,我看你的 ...
我配置了2个远程仓库,现在好了,但是无法打包。。我按照视频教程下载的示例代码,我改了其中一个包的名字,前2个成功了,最后自己更改包名字的提示Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default) on project x_test_core_entity: Fatal error compiling: 无效的目标发行版:11 ->
提示这个。。

启蒙星 发表于 2022-3-1 09:43:08

好像是jdk版本不对,要求是jdk11

欢乐树 发表于 2022-3-1 10:04:32

启蒙星 发表于 2022-3-1 09:43
好像是jdk版本不对,要求是jdk11

哦哦·~好,谢谢你,我试试,我idea设置了jdk11, 但是本机是jdk8,原来这样不行啊。
页: [1]
查看完整版本: mvn install错误,找不到包