【发布时间】:2020-06-12 14:47:19
【问题描述】:
在 build.xml 中添加了 maven jar 依赖项,目标如下。
<artifact:dependencies pathId="dependency.classpath">
<dependency groupId="org.glassfish.metro" artifactId="webservices-rt" version="2.4.3"/>
</artifact:dependencies>
在构建期间出现错误
[artifact:dependencies] 1) org.glassfish.metro:webservices-rt:jar:2.4.3
[artifact:dependencies]
[artifact:dependencies] Try downloading the file manually from the project website.
[artifact:dependencies]
[artifact:dependencies] Then, install it using the command:
[artifact:dependencies] mvn install:install-file -DgroupId=org.glassfish.metro -DartifactId=webservices-rt -Dversion=2.4.3 -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there:
[artifact:dependencies] mvn deploy:deploy-file -DgroupId=org.glassfish.metro -DartifactId=webservices-rt -Dversion=2.4.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) org.apache.maven:super-pom:pom:2.0
[artifact:dependencies] 2) org.glassfish.metro:webservices-rt:jar:2.4.3
【问题讨论】:
-
你到底用什么来构建所有这些?这是 Ant 的 Maven 扩展吗?