首页 » bug飞 » spring boot docker 报错UNC path is missing sharename

Failed to execute goal com.spotify:docker-maven-plugin:0.2.3:build (default-cli) on project thor-quest: Exception caught: UNC path is missing sharename: /

这个是dockerdirectory配置不对导致,还有要去掉,具体如下


<build>
        <finalName>thor-quest</finalName>
        <plugins>
         
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>1.2.0</version>
                <configuration>
                    <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
                    <dockerDirectory>${project.basedir}</dockerDirectory>
                    <resources>
                        <resource>
                            <!--<targetPath>/</targetPath>-->
                            <directory>${project.build.directory}</directory>
                            <include>${project.build.finalName}.jar</include>
                        </resource>
                    </resources>
                </configuration>
            </plugin>
        </plugins>
    </build>

添加新评论