Maven Clean 问题 - 不可解析的导入 POM - 无法从 NEXUS 传输工件

我在构建新项目时遇到问题。该构建适用于项目的旧开发人员,但在克隆项目并使用相同版本的 maven 之后。它不适合我。


最初,我正在做一个 mvn 全新安装


但是,经过一些研究,我发现使用简单的 mvn clean 会发生相同的构建错误。


错误如下:


C:\workspace\some-web-app>mvn clean

[INFO] Scanning for projects...

Downloading from nexus-public: https://company-net:8080/nexus/content/groups/public/org/jboss/bom/jboss-eap-javaee7-with-tools/7.1.0.GA/jboss-eap-javaee7-with-tools-7.1.0.GA.pom

Downloading from nexus-releases: https://company-net:8080/nexus/content/repositories/releases/org/jboss/bom/jboss-eap-javaee7-with-tools/7.1.0.GA/jboss-eap-javaee7-with-tools-7.1.0.GA.pom

Downloading from nexus-public: https://company-net:8080/nexus/content/groups/public/org/jboss/bom/eap-runtime-artifacts/7.1.0.GA/eap-runtime-artifacts-7.1.0.GA.pom

Downloading from nexus-releases: https://company-net:8080/nexus/content/repositories/releases/org/jboss/bom/eap-runtime-artifacts/7.1.0.GA/eap-runtime-artifacts-7.1.0.GA.pom

Downloading from nexus-public: https://company-net:8080/nexus/content/groups/public/org/jboss/spec/jboss-javaee-7.0/1.1.0.Final-redhat-1/jboss-javaee-7.0-1.1.0.Final-redhat-1.pom

Downloading from nexus-releases: https://company-net:8080/nexus/content/repositories/releases/org/jboss/spec/jboss-javaee-7.0/1.1.0.Final-redhat-1/jboss-javaee-7.0-1.1.0.Final-redhat-1.pom

[ERROR] [ERROR] Some problems were encountered while processing the POMs:

[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-ejb-plugin is missing. @ line 292, column 22

[ERROR] Non-resolvable import POM: Could not transfer artifact org.jboss.bom:jboss-eap-javaee7-with-tools:pom:7.1.0.GA from/to nexus-public (https://company-net:8080/nexus/content/groups/p

[ERROR] Non-resolvable import POM: Could not transfer artifact org.jboss.bom:eap-runtime-artifacts:pom:7.1.0.GA from/to nexus-public (https://company-net:8080/nexus/content/groups/public/)


守候你守候我
浏览 785回答 3
3回答

哆啦的时光机

支持团队将我的机器列入白名单并使用公司 wifi 解决了问题。

慕姐8265434

您在您dependencyManagement的所有依赖项下也没有此条目。版本应添加在上dependencyManagement或直接下dependencies<dependencyManagement>&nbsp; &nbsp; <dependency>&nbsp; &nbsp; &nbsp; &nbsp; <groupId>javax.enterprise</groupId>&nbsp; &nbsp; &nbsp; &nbsp; <artifactId>cdi-api</artifactId>&nbsp; &nbsp; &nbsp; &nbsp; <scope>provided</scope>&nbsp; &nbsp; &nbsp; &nbsp; <version>whatever-version-you-need</version>&nbsp; &nbsp; </dependency></dependencyManagement>

holdtom

谢谢大家,通过连接到我的家庭 wifi(没有公司防火墙、代理等)解决了这个问题,所以我能够进一步下载依赖项,但后来我遇到了另一个问题,我将提出一个新问题。谢谢。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java