I need to copy filekafka.client.truststore.jks
、kafka_client_jaas.conf
totarget/docker/fengxin58/demo-fabric8/0.0.1-SNAPSHOT/build/maven
, after building the project using the default configuration,but only app.jar is found after building operation under target dir maven
pom.xml
<! -- docker plugin -->
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.24.0</version>
<configuration>
<images>
<image>
<! --
A sanitized version of the artefact id so that
it can be used as part of an Docker image name.
I.e. it is converted to all lower case (as required by Docker)
%a component id
-->
<name>fengxin58/%a:%v</name>
<registry>registry.cn-hangzhou.aliyuncs.com</registry>
<build>
<! --<filter>true</filter>-->
<dockerFileDir>${basedir}/src/main/docker</dockerFileDir>
<assembly>
<descriptorRef>artifact</descriptorRef>
<! The output directory of the --jar, with the default value of maven-- >
<! --<name>maven</name>-->
<! --default value is dir-->
<mode>dir</mode>
</assembly>
<tags>
<tag>${project.version}</tag>
</tags>
</build>
</image>
</images>
</configuration>
</plugin>
Do you have any students to answer?