我在maven中遇到了构建错误 [英] I am getting a build error in maven
问题描述
您好我无法从中央maven存储库下载jar依赖项。
[错误]插件com.fmr.ctg.hr.hrdh.bro:hrdh-h2-maven-plugin:1.0-SNAPSHOT或者一个
的依赖关系无法解决:无法读取工件描述符
r com.fmr.ctg.hr.hrdh.bro:hrdh -h2-maven-plugin:jar:1.0-SNAPSHOT :找不到
artifact com.fmr.ctg.hr.hrdh.bro:hrdh -h2-maven-plugin:pom:1.0-SNAPSHOT - > [帮助
1]
罐子有依赖性
pom.xml
< plugin>
< groupid> com.fmr.ctg.hr.hrdh.bro
< artifactid> hrdh -h2-maven-plugin
< version> 1.0-SNAPSHOT
< dependencies>
< dependency>
< groupid> com.h2database
< artifactid> h2
< scope> runtime
< version> $ { h2.version}
本地存储库有h2 .database jar。但不知何故,本地存储库删除了hrdh-h2-maven-plugin。
我试过mvn clean install -U但它没有将jar下载到本地存储库。
我们使用的是具有此jar的Nexus存储库。如何让Maven下载这个jar。
请帮忙。
Hi I am not able to download a jar dependency from the central maven repository.
[ERROR] Plugin com.fmr.ctg.hr.hrdh.bro:hrdh-h2-maven-plugin:1.0-SNAPSHOT or one
of its dependencies could not be resolved: Failed to read artifact descriptor fo
r com.fmr.ctg.hr.hrdh.bro:hrdh-h2-maven-plugin:jar:1.0-SNAPSHOT: Could not find
artifact com.fmr.ctg.hr.hrdh.bro:hrdh-h2-maven-plugin:pom:1.0-SNAPSHOT -> [Help
1]
The jar has a dependency
pom.xml
<plugin>
<groupid>com.fmr.ctg.hr.hrdh.bro
<artifactid>hrdh-h2-maven-plugin
<version>1.0-SNAPSHOT
<dependencies>
<dependency>
<groupid>com.h2database
<artifactid>h2
<scope>runtime
<version>${h2.version}
The local repository has the h2.database jar. But somehow the local repository has the hrdh-h2-maven-plugin deleted.
I tried mvn clean install -U but it does not download the jar into local repository.
we use a Nexus repository which has this jar. How do I get Maven to download this jar.
Kindly help.
推荐答案
{h2.version }
本地存储库有h2.database jar 。但不知何故,本地存储库删除了hrdh-h2-maven-plugin。
我试过mvn clean install -U但它没有将jar下载到本地存储库。
我们使用的是具有此jar的Nexus存储库。如何让Maven下载这个罐子。
请帮忙。
{h2.version}
The local repository has the h2.database jar. But somehow the local repository has the hrdh-h2-maven-plugin deleted.
I tried mvn clean install -U but it does not download the jar into local repository.
we use a Nexus repository which has this jar. How do I get Maven to download this jar.
Kindly help.
这篇关于我在maven中遇到了构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!