我想运行创建一个超级jar来创建它的docker映像。我正在使用spring-boot-maven-plugin创建uber jar。
我的pom文件如下:
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>MainClassName</mainClass>
<layout>JAR</layout>
<finalName>JARName</finalName>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
运行命令:mvn clean package
错误:[错误]无法在项目projectName上执行目标org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:repackage(默认)(目标) rg.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:重新打包失败:源必须引用现有文件,得到C:\ GIT \ projectLocation \ target \ classes->