aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGautam Shah <gautams@amdocs.com>2018-04-21 16:18:37 +0530
committerGAUTAMS <gautams@amdocs.com>2018-04-26 17:47:29 +0530
commit3de22e1c6c2711072ce996335e7250445a39d320 (patch)
treec7a528bee3166b3262eef9977b0f87923df0e99f /common
parentd71a8de8c7b688eabb250e524dc4f6000b3233b6 (diff)
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>
Diffstat (limited to 'common')
-rw-r--r--common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/pom.xml27
-rw-r--r--common/pom.xml52
2 files changed, 58 insertions, 21 deletions
diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/pom.xml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/pom.xml
index 22a518aa36..ca8f6f8792 100644
--- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/pom.xml
+++ b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/pom.xml
@@ -61,24 +61,6 @@
<artifactId>reflections</artifactId>
<version>${org.reflections.version}</version>
</dependency>
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- <scope>test</scope>
- <version>6.8.5</version>
- <exclusions>
- <exclusion>
- <artifactId>snakeyaml</artifactId>
- <groupId>org.yaml</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- <version>${junit.version}</version>
- </dependency>
</dependencies>
<build>
@@ -86,7 +68,7 @@
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
- <version>${mvn.jaxb2.version}</version>
+ <version>${mvn.jaxb2.version}</version>
<executions>
<execution>
<phase>generate-sources</phase>
@@ -98,7 +80,12 @@
<configuration>
<schemaDirectory>src/main/resources</schemaDirectory>
<generatePackage>org.openecomp.sdc.generator.aai.xml</generatePackage>
- <generateDirectory>target/generated-sources/aai/xml</generateDirectory>
+ <generateDirectory>target/generated-sources/custom/aai/xml</generateDirectory>
+ <removeOldOutput>false</removeOldOutput>
+ <cleanPackageDirectories>true</cleanPackageDirectories>
+ <forceRegenerate>false</forceRegenerate>
+ <debug>false</debug>
+ <verbose>false</verbose>
<schemaIncludes>
<include>aai_schema_v11.xsd</include>
</schemaIncludes>
diff --git a/common/pom.xml b/common/pom.xml
index 092c8994a8..54d3a1b3c3 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>