Reducing onboarding backend maven build time 83/41683/6
authorshrikantawachar <shrikant.awachar@amdocs.com>
Mon, 9 Apr 2018 07:33:56 +0000 (13:03 +0530)
committerAvi Gaffa <avi.gaffa@amdocs.com>
Mon, 9 Apr 2018 13:48:17 +0000 (13:48 +0000)
Reducing onboarding backend maven build time

Change-Id: I4ed6192bd5f9e75912057eacd921a04a943da992
Issue-ID: SDC-1189
Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
onboarding/pom.xml
pom.xml
ui-ci/pom.xml

index afc452e..08f2c92 100644 (file)
                 <version>${mvn.surefire.version}</version>
                 <configuration>
                     <forkCount>0</forkCount>
+                    <printSummary>false</printSummary>
                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
                     <additionalClasspathElements>
                         <additionalClasspathElement>${project.build.directory}/../src/test/resources</additionalClasspathElement>
diff --git a/pom.xml b/pom.xml
index d1104a1..348ffcc 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                        </activation>
                        <modules>
                                <module>build-tools</module>
+                               <module>onboarding</module>
                                <module>security-utils</module>
                                <module>common-app-api</module>
                                <module>common-be</module>
                                <module>ui-ci</module>
                                <module>sdc-os-chef</module>
                                <module>utils/webseal-simulator</module>
-                               <module>onboarding</module>
                        </modules>
 
                </profile>
index e2508d1..b0e13f1 100644 (file)
@@ -1,5 +1,5 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+                xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
        <modelVersion>4.0.0</modelVersion>
 
 
                <dependency>
                        <groupId>net.lightbody.bmp</groupId>
-                       <!-- To use the legacy, Jetty-based implementation, change the artifactId 
+                       <!-- To use the legacy, Jetty-based implementation, change the artifactId
                                to browsermob-core -->
                        <artifactId>browsermob-core</artifactId>
                        <version>2.1.4</version>
                        <!-- Create the JAR file with its dependencies -->
                        <!-- ============================================= -->
                        <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-dependency-plugin</artifactId>
+                               <version>3.1.0</version>
+                               <executions>
+                                       <execution>
+                                               <id>unpack-dependencies</id>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>unpack-dependencies</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <silent>true</silent>
+                                                       <outputDirectory>${project.build.directory}/classes</outputDirectory>
+                                                       <overWriteReleases>true</overWriteReleases>
+                                                       <overWriteSnapshots>true</overWriteSnapshots>
+                                                       <overWriteIfNewer>true</overWriteIfNewer>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-jar-plugin</artifactId>
+                               <version>3.0.2</version>
+                               <executions>
+                                       <execution>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>jar</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <archive>
+                                                               <manifest>
+                                                                       <addClasspath>false</addClasspath>
+                                                                       <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
+                                                               </manifest>
+                                                       </archive>
+                                                       <classifier>jar-with-dependencies</classifier>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <!--plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-assembly-plugin</artifactId>
                                <executions>
                                                </configuration>
                                        </execution>
                                </executions>
-                       </plugin>
+                       </plugin-->
+
                </plugins>
        </build>
        <profiles>