我在下载野蝇依赖项时遇到问题



大家好,我在下载快速入门/Hello-world 的依赖项时遇到问题,用于野蝇。

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.wildfly.quickstarts</groupId>
<artifactId>quickstart-parent</artifactId>
<!--
Maintain separation between the artifact id and the version to help prevent
merge conflicts between commits changing the GA and those changing the V.
-->
<version>19.0.0.Beta1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>helloworld</artifactId>
<packaging>war</packaging>
<name>Quickstart: helloworld</name>
<description>Helloworld</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<distribution>repo</distribution>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
</license>
</licenses>
<dependencies>
<!-- Import the CDI API, we use provided scope as the API is included in WildFly -->
<dependency>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<scope>provided</scope>
</dependency>
<!-- Import the Common Annotations API (JSR-250), we use provided scope
as the API is included in WildFly -->
<dependency>
<groupId>org.jboss.spec.javax.annotation</groupId>
<artifactId>jboss-annotations-api_1.3_spec</artifactId>
<scope>provided</scope>
</dependency>
<!-- Import the Servlet API, we use provided scope as the API is included in WildFly -->
<dependency>
<groupId>org.jboss.spec.javax.servlet</groupId>
<artifactId>jboss-servlet-api_4.0_spec</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

构建后日食列表 erros:

[错误] 无法解析的导入 POM:无法传输工件 org.wildfly.bom:wildfly-jakartaee8- with-tools:pom:19.0.0.Beta1-SNAPSHOT from/to centralnexus (https://fabricaportal.accenture.com/nexus/repository/OI_Central/(: 拒绝访问 https://fabricaportal.accenture.com/nexus/repository/OI_Central/org/wildfly/bom/wildfly-jakartaee8- with-tools/19.0.0.Beta1-SNAPSHOT/wildfly-jakartaee8-with-tools-19.0.0.Beta1-SNAPSHOT.pom.错误代码 401, 未经授权 @ org.wildfly.quickstarts:quickstart-parent:19.0.0.Beta1-SNAPSHOT, C:\Users\victor.hugo.b.silva\Desktop\quickstart\pom.xml,第 101 行,第 25 列 [错误]'dependencies.dependency.version' for jakarta.enterprise:jakarta.enterprise.cdi-api:jar is 失踪。@ 第 47 行,第 21 列 [错误]'dependencies.dependency.version' for org.jboss.spec.javax.annotation:jboss-annotations- api_1.3_spec:jar 缺失。@ 第 55 行,第 21 列 [错误]'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet- 缺少 api_4.0_spec:jar。@ 第 62 行,第 21 列

但是在项目中,没有为任何依赖项声明版本

您尝试下载的网站属于埃森哲。 也许您是埃森哲的员工。 我建议您编辑设置.xml并添加 maven 中央存储库而不是埃森哲。

https://repo1.maven.org/maven2/

这个错误实际上是因为我使用的版本而发生的,我还没有依赖项,所以我把它改成了18.0.0

最新更新