【发布时间】:2019-11-25 11:14:15
【问题描述】:
按照一些 maven docker 示例,想出了以下代码,运行 mvn 包 dockerfile:build 但得到这些错误: [错误] 在当前项目和存储库中可用的插件组 [org.apache.maven.plugins, org.codehaus.mojo] 中找不到前缀“dockerfile”的插件...
<?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>
<groupId>com.mycompnay.learning</groupId>
<artifactId>my-app-base-pom</artifactId>
<version>0.0.1</version>
<properties>
<dockerfile.version>0.0.1</dockerfile.version>
<docker.image.prefix>AdminService</docker.image.prefix>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>0.0.1</version>
<executions>
<execution>
<id>default</id>
<goals>
<goal>build</goal>
</goals>
<configuration>
<repository>docker.io/kkapelon/docker-maven-comparsion</repository>
<tag>projectVersion</tag>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
请问我应该从这里去哪里?
【问题讨论】: