maven pom 文件 中
一直报红
还有一个依赖也一直爆红 不知道该怎么解决
已经尝试过 换成阿里云下载了 一直下载失败
你这个依赖是你创建的吧? parent /parent 这个标签你可以把 relativePath这个标签去掉
把报红的标签去掉试下
你去问下同事,刚进公司不要害怕
有的公司里面自己有私有的Maven仓库,所以有的依赖在外部网站上拉取不到,可以问问同事,要一个setting.xml,修改里面本地仓库位置为自己的,然后重新拉下依赖
要想引用需添加maven仓库:
https://maven.mangoautomation.net/repository/ias-release/
在 Maven构件检索平台(全球最大的)可以找到该构件:
https://mvnrepository.com/artifact/com.infiniteautomation/modbus4j/3.1.0
<!-- https://mvnrepository.com/artifact/com.infiniteautomation/modbus4j -->
<dependency>
<groupId>com.infiniteautomation</groupId>
<artifactId>modbus4j</artifactId>
<version>3.1.0</version>
</dependency>
在Maven的settings.xml中添加多个仓库,参考:
https://blog.csdn.net/qq_27022241/article/details/108583504