maven docker打包问题


	com.spotify
	docker-maven-plugin
	1.0.0
	
		${docker.image.prefix}/${project.artifactId}
		
			${docker.image.version}
			latest
		
		src/main/docker
		
			
				/
				${project.build.directory}
				${project.build.finalName}.jar
			
		
	

mvn clean package docker:build 只执行 build 操作

mvn clean package docker:build -DpushImage 执行 build 完成后 push 镜像

mvn clean package docker:build -DpushImageTag 执行 build 并 push 指定 tag 的镜像

报错:No plugin found for prefix 'docker' in the current project and in the plugin groups

在maven conf/setting.xml加入

  
	com.spotify  

转载于:https://my.oschina.net/u/1241604/blog/2251096

你可能感兴趣的:(maven docker打包问题)