Reducing onboarding backend maven build time
Reducing onboarding backend maven build time
Change-Id: Id0178cbf010e46f741f4bff11e14b0801f14d4b8
Issue-ID: SDC-1189
Signed-off-by: GAUTAMS <gautams@amdocs.com>
diff --git a/common/pom.xml b/common/pom.xml
index 092c899..54d3a1b 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -11,7 +11,7 @@
<groupId>org.openecomp.sdc</groupId>
<artifactId>sdc-onboarding</artifactId>
<version>1.2.0-SNAPSHOT</version>
- <relativePath>../onboarding</relativePath>
+ <relativePath>../onboarding</relativePath>
</parent>
<properties>
@@ -163,6 +163,56 @@
<target>${java.target}</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.openecomp.sdc.onboarding</groupId>
+ <artifactId>compile-helper-plugin</artifactId>
+ <version>${project.version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>pre-compile-helper</goal>
+ <goal>pre-test-compile-helper</goal>
+ <goal>post-compile-helper</goal>
+ <goal>post-test-run-helper</goal>
+ <goal>init-helper</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <excludePackaging>pom</excludePackaging>
+ <excludeDependencies>test,runtime</excludeDependencies>
+ <staleThreshold>10000</staleThreshold>
+ <mainSourceLocation>${basedir}/src/main/java</mainSourceLocation>
+ <testSourceLocation>${basedir}/src/test/java</testSourceLocation>
+ <mainResourceLocation>${basedir}/src/main/resources</mainResourceLocation>
+ <testResourceLocation>${basedir}/src/test/resources</testResourceLocation>
+ <mainCompiledLocation>${project.build.directory}/classes</mainCompiledLocation>
+ <testCompiledLocation>${project.build.directory}/test-classes</testCompiledLocation>
+ <compiledFilesList>
+ ${project.build.directory}/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
+ </compiledFilesList>
+ <inputSourceFilesList>
+ ${project.build.directory}/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
+ </inputSourceFilesList>
+ <inputTestFilesList>
+ ${project.build.directory}/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
+ </inputTestFilesList>
+ <compiledTestFilesList>
+ ${project.build.directory}/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
+ </compiledTestFilesList>
+ <buildState>
+ <moduleBuildDataFile>${project.build.directory}/build-data/ModuleDependencies.dat
+ </moduleBuildDataFile>
+ <resourceBuildDataFile>${project.build.directory}/build-data/ResourceDependencies.dat
+ </resourceBuildDataFile>
+ <project>${project}</project>
+ <buildStateFilePath>org.openecomp.sdc:sdc-onboarding/target/build-data/BuildState.dat
+ </buildStateFilePath>
+ <resourceStateFilePath>org.openecomp.sdc:sdc-onboarding/target/build-data/ResourceState.dat
+ </resourceStateFilePath>
+ </buildState>
+ </configuration>
+ </plugin>
<!-- blackduck maven plugin -->
<!--<plugin>