Plugins reorder
authorJoanna Jeremicz <joanna.jeremicz@nokia.com>
Thu, 20 Feb 2020 13:52:01 +0000 (14:52 +0100)
committerJoanna Jeremicz <joanna.jeremicz@nokia.com>
Fri, 21 Feb 2020 06:47:13 +0000 (07:47 +0100)
Shade plugin should run before docker image is built

Issue-ID: AAF-996
Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
Change-Id: I212e029a8f8e1ca15fadc97232dce0205153c980

certServiceClient/pom.xml
pom.xml

index f32501b..bd51d73 100644 (file)
             </properties>
             <build>
                 <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-shade-plugin</artifactId>
+                        <version>${maven-shade-plugin.version}</version>
+                        <executions>
+                            <execution>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>shade</goal>
+                                </goals>
+                                <configuration>
+                                    <transformers>
+                                        <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+                                            <mainClass>org.onap.aaf.certservice.client.CertServiceClientApp</mainClass>
+                                        </transformer>
+                                    </transformers>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
                     <plugin>
                         <groupId>io.fabric8</groupId>
                         <artifactId>docker-maven-plugin</artifactId>
                             </images>
                         </configuration>
                     </plugin>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-shade-plugin</artifactId>
-                        <version>3.2.2</version>
-                        <executions>
-                            <execution>
-                                <phase>package</phase>
-                                <goals>
-                                    <goal>shade</goal>
-                                </goals>
-                                <configuration>
-                                    <transformers>
-                                        <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-                                            <mainClass>org.onap.aaf.certservice.client.CertServiceClientApp</mainClass>
-                                        </transformer>
-                                    </transformers>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
                 </plugins>
             </build>
         </profile>
diff --git a/pom.xml b/pom.xml
index 8393442..ba2fce8 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -54,6 +54,7 @@
         <docker-maven-plugin.version>0.33.0</docker-maven-plugin.version>
         <junit.version>5.5.2</junit.version>
         <mockito-junit-jupiter.version>2.17.0</mockito-junit-jupiter.version>
+        <maven-shade-plugin.version>3.2.2</maven-shade-plugin.version>
 
         <!-- Docker -->
         <skipDockerPush>true</skipDockerPush>