Failed to execute goal on project day77_nPortal: Could not resolve dependencies for project com.qf:day77_nPortal:jar:1.0-SNAPSHOT: Could not find artifact com.qf:day77_nService:jar:1.0-SNAPSHOT
时间: 2023-12-03 22:44:36 浏览: 192
这个错误提示意味着你的项目找不到依赖的 `com.qf:day77_nService:jar:1.0-SNAPSHOT` 包。这可能是因为:
1. 你忘记在项目的 pom.xml 文件中添加依赖。
2. 你的依赖配置错误,导致 Maven 没有从正确的仓库中获取到依赖。
3. 依赖包没有正确安装到本地或者远程仓库中。
你可以检查一下以上几点,排除问题所在。如果你确认依赖配置正确,可以尝试手动安装依赖到本地或者远程仓库中。你可以使用以下命令将依赖安装到本地仓库中:
```bash
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
```
其中,`<path-to-file>` 是依赖包的路径,`<group-id>`、`<artifact-id>`、`<version>` 和 `<packaging>` 分别是依赖包的 Maven 坐标信息。
相关问题
Failed to execute goal on project middle-ground-app: Could not resolve dependencies for
project com.example:middle-ground-app:jar:1.0-SNAPSHOT: Failed to collect dependencies at org.springframework.boot:spring-boot-starter-web:jar:2.5.4: Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-web:jar:2.5.4: Could not transfer artifact org.springframework.boot:spring-boot-starter-web:pom:2.5.4 from/to central (https://repo.maven.apache.org/maven2): Failed to transfer file: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-web/2.5.4/spring-boot-starter-web-2.5.4.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]
This error message suggests that the project "middle-ground-app" failed to download a required dependency ("spring-boot-starter-web") from the Maven Central repository. The error message indicates that the download failed because the repository is requesting HTTPS, but the download was attempted using HTTP. To resolve this issue, you should update your Maven settings to use HTTPS when connecting to the Maven Central repository. You may need to update your settings.xml file or add the appropriate configuration to your project's pom.xml file. Alternatively, you can try running the build command again, as this error may have been caused by a temporary issue with the repository.
阅读全文
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![html](https://img-home.csdnimg.cn/images/20241231044918.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)