Fix pom for docker files 25/48025/1
authorStone, Avi (as206k) <as206k@att.com>
Thu, 17 May 2018 10:04:39 +0000 (13:04 +0300)
committerStone, Avi (as206k) <as206k@att.com>
Thu, 17 May 2018 10:06:10 +0000 (13:06 +0300)
Fix poms for docker files so the docker job would run

Change-Id: I630106bc83f098e286f3e83913b064f507cc9294
Issue-ID: SDC-1339
Signed-off-by: Stone, Avi (as206k) <as206k@att.com>
dcaedt_be/pom.xml
dcaedt_tools/pom.xml

index 0c999ad..ee6e5ab 100644 (file)
                                </dependency>
                        </dependencies>
                </profile>
+               <profile>
+                 <id>docker</id>
+                       <build>
+                       <plugins>
+                               <plugin>
+                                               <artifactId>maven-resources-plugin</artifactId>
+                                               <version>3.0.2</version>
+                                               <executions>
+                                                               <execution>
+                                                                               <id>copy-dcae-be-war</id>
+                                                                               <phase>validate</phase>
+                                                                               <goals>
+                                                                                               <goal>copy-resources</goal>
+                                                                               </goals>
+                                                                               <configuration>
+                                                                                               <outputDirectory>${project.parent.basedir}/docker/docker_be/target</outputDirectory>
+                                                                                               <resources>
+                                                                                                               <resource>
+                                                                                                                               <directory>${project.basedir}/target</directory>
+                                                                                                                               <includes>
+                                                                                                                                               <include>dcae.war</include>
+                                                                                                                               </includes>
+                                                                                                               </resource>
+                                                                                               </resources>
+                                                                               </configuration>
+                                                               </execution>
+                                               </executions>
+                               </plugin>
+                       </plugins>
+               </build>
+               </profile>
+
        </profiles>
        <build>
                <finalName>dcae</finalName>
index 630d8aa..83993f8 100644 (file)
         <artifactId>dcae_dt_be_main</artifactId>
         <version>1.2.0-SNAPSHOT</version>
     </parent>
+    <profiles>
+      <profile>
+        <id>docker</id>
+        <build>
+          <plugins>
+            <plugin>
+                <artifactId>maven-resources-plugin</artifactId>
+                <version>3.0.2</version>
+                <executions>
+                    <execution>
+                        <id>copy-dcae-tools-jar</id>
+                        <phase>validate</phase>
+                        <goals>
+                            <goal>copy-resources</goal>
+                        </goals>
+                        <configuration>
+                            <outputDirectory>${project.parent.basedir}/docker/docker_tools/target</outputDirectory>
+                            <resources>
+                                <resource>
+                                    <directory>${project.basedir}/target</directory>
+                                    <includes>
+                                        <include>dcaedt_tools-${project.version}-jar-with-dependencies.jar</include>
+                                    </includes>
+                                </resource>
+                            </resources>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>copy-dcae-config-json</id>
+                        <phase>validate</phase>
+                        <goals>
+                            <goal>copy-resources</goal>
+                        </goals>
+                        <configuration>
+                            <outputDirectory>${project.parent.basedir}/docker/docker_tools/chef-solo/cookbooks/Deploy-DCAE/files/default</outputDirectory>
+                            <resources>
+                                <resource>
+                                    <directory>${project.basedir}/src/main/resources/conf</directory>
+                                    <includes>
+                                        <include>config.json</include>
+                                    </includes>
+                                </resource>
+                            </resources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+          </plugins>
+        </build>
+      </profile>
+    </profiles>
     <build>
         <plugins>
             <plugin>