Commit f3f70647 by 钟明宏

优化,升级版本为1.2.3-RELEASE

parent dee95ff6
......@@ -6,12 +6,12 @@
<parent>
<groupId>cn.yunmaozj</groupId>
<artifactId>yunmaozj-parent</artifactId>
<version>1.0.0.12</version>
<version>1.0.0.14</version>
</parent>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>1.2.2-RELEASE</version>
<version>1.2.3-RELEASE</version>
<packaging>maven-plugin</packaging>
<name>docker-maven-plugin</name>
<description>A maven plugin for docker</description>
......
......@@ -426,9 +426,11 @@ public class BuildMojo extends AbstractDockerMojo {
final List<String> copiedPaths = copyResources(destination);
createDockerFile(destination, copiedPaths);
} else {
final Resource resource = new Resource();
resource.setDirectory(dockerDirectory);
resources.add(resource);
if (resources.size() == 0) {
final Resource resource = new Resource();
resource.setDirectory(dockerDirectory);
resources.add(resource);
}
copyResources(destination);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment