让Maven构建如下:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<dependencies>
<dependency>
<groupId>com.oopsconsultancy</groupId>
<artifactId>xmltask</artifactId>
<version>1.14</version>
</dependency>
</dependencies>
</plugin>对于我的项目groupel-orchestrate ::
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>concat-hosts-and-install-uninstall</id>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>导致生成失败的原因如下:
未能在项目群编排上执行目标org.apache.maven.plugins:maven-antrun-plugin:1.7:run (concat hosts and install-uninstall):1.14在中央(https://repo.maven.apache.org/maven2) ->帮助1
我该怎么做才能克服这个错误呢?
发布于 2019-12-23 09:19:18
您试图使用的插件并不存在于Maven中央存储库中,而是只出现在亚特兰蒂斯第三方存储库上。为了能够使用,您需要将该存储库添加到构建中,如下所示:
<pluginRepositories>
<pluginRepository>
<id>atlassian-third-party-repo</id>
<name>atlassian-third-party-repo</name>
<url>https://maven.atlassian.com/3rdparty/</url>
</pluginRepository>
</pluginRepositories>https://stackoverflow.com/questions/59451684
复制相似问题