blob: e93576a8031283d4e4bdce6a3d86ac188f46124b [file] [log] [blame]
Michael Landof5f13c42017-02-19 12:35:04 +02001<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4
AviZi280f8012017-06-09 02:39:56 +03005 <name>openecomp-sdc</name>
Michael Landof5f13c42017-02-19 12:35:04 +02006 <artifactId>openecomp-sdc</artifactId>
Michael Landof5f13c42017-02-19 12:35:04 +02007 <packaging>pom</packaging>
AviZi280f8012017-06-09 02:39:56 +03008
Michael Landof5f13c42017-02-19 12:35:04 +02009 <url>http://maven.apache.org</url>
10
AviZi280f8012017-06-09 02:39:56 +030011 <parent>
12 <groupId>org.openecomp.sdc</groupId>
13 <artifactId>sdc-onboarding</artifactId>
Michael Landod8a0dea2018-06-02 19:23:27 +030014 <version>1.3.0-SNAPSHOT</version>
vempodecd2df2018-07-23 19:07:37 +030015 <relativePath>../onboarding/pom.xml</relativePath>
AviZi280f8012017-06-09 02:39:56 +030016 </parent>
Michael Landof5f13c42017-02-19 12:35:04 +020017
AviZi280f8012017-06-09 02:39:56 +030018 <dependencies>
19 <dependency>
talioce889ad2017-11-12 16:12:35 +020020 <groupId>org.togglz</groupId>
21 <artifactId>togglz-core</artifactId>
22 <version>${togglz.version}</version>
23 </dependency>
talioce889ad2017-11-12 16:12:35 +020024 <dependency>
25 <groupId>org.togglz</groupId>
talioce889ad2017-11-12 16:12:35 +020026 <artifactId>togglz-testing</artifactId>
27 <version>${togglz.version}</version>
28 <scope>test</scope>
29 </dependency>
AviZi280f8012017-06-09 02:39:56 +030030 </dependencies>
Michael Landof5f13c42017-02-19 12:35:04 +020031
32 <build>
33 <plugins>
34
35 <!-- ================================================== -->
36 <!-- Set the JDK compiler version. -->
37 <!-- ================================================== -->
38 <plugin>
39 <groupId>org.apache.maven.plugins</groupId>
40 <artifactId>maven-compiler-plugin</artifactId>
AviZi280f8012017-06-09 02:39:56 +030041 <version>${mvn.compiler.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020042 <inherited>true</inherited>
Gautam Shahb145c082018-05-27 13:32:07 +053043 <executions>
44 <execution>
45 <id>default-compile</id>
46 <configuration>
47 <skipMain>${skipMainSourceCompile}</skipMain>
48 </configuration>
49 </execution>
50 <execution>
51 <id>default-testCompile</id>
52 <configuration>
53 <skip>${skipTestSourceCompile}</skip>
54 </configuration>
55 </execution>
56 </executions>
Michael Landof5f13c42017-02-19 12:35:04 +020057 <configuration>
58 <source>${java.source}</source>
59 <target>${java.target}</target>
Gautam Shahb145c082018-05-27 13:32:07 +053060 </configuration>
61 </plugin>
62 <plugin>
63 <groupId>org.openecomp.sdc.onboarding</groupId>
64 <artifactId>artifact-copy-plugin</artifactId>
65 <version>${project.version}</version>
66 <executions>
67 <execution>
68 <goals>
69 <goal>init-artifact-helper</goal>
Gautam Shah03205da2018-06-01 08:38:32 +053070 <!--<goal>copy-helper</goal>-->
Gautam Shahb145c082018-05-27 13:32:07 +053071 <goal>calibrate-artifact-helper</goal>
72 </goals>
73 </execution>
74 </executions>
75 <configuration>
76 <groupId>org.openecomp.sdc</groupId>
77 <artifactId>build-data-installer</artifactId>
78 <version>${project.version}</version>
Gautam Shahb145c082018-05-27 13:32:07 +053079 <artifactHelper>
80 <project>${project}</project>
Gautam Shah03205da2018-06-01 08:38:32 +053081 <session>${session}</session>
82 <unicornRoot>org.openecomp.sdc:sdc-onboarding/target/build-data</unicornRoot>
Gautam Shahb145c082018-05-27 13:32:07 +053083 </artifactHelper>
84 </configuration>
85 </plugin>
86 <plugin>
Gautam Shah3de22e12018-04-21 16:18:37 +053087 <groupId>org.openecomp.sdc.onboarding</groupId>
88 <artifactId>compile-helper-plugin</artifactId>
89 <version>${project.version}</version>
Gautam Shahb145c082018-05-27 13:32:07 +053090 <dependencies>
91 <dependency>
Gautam Shahb145c082018-05-27 13:32:07 +053092 <groupId>org.openecomp.sdc.onboarding</groupId>
93 <artifactId>pmd-helper-plugin</artifactId>
94 <version>${project.version}</version>
95 </dependency>
96 </dependencies>
Gautam Shah3de22e12018-04-21 16:18:37 +053097 <executions>
98 <execution>
99 <goals>
Gautam Shah3de22e12018-04-21 16:18:37 +0530100 <goal>init-helper</goal>
Gautam Shahb145c082018-05-27 13:32:07 +0530101 <goal>pre-compile-helper</goal>
102 <goal>post-compile-helper</goal>
103 <goal>pre-test-compile-helper</goal>
104 <goal>post-test-run-helper</goal>
Gautam Shah3de22e12018-04-21 16:18:37 +0530105 </goals>
106 </execution>
107 </executions>
108 <configuration>
109 <excludePackaging>pom</excludePackaging>
110 <excludeDependencies>test,runtime</excludeDependencies>
Gautam Shahb145c082018-05-27 13:32:07 +0530111 <generatedSourceLocation>${project.build.directory}/generated-sources</generatedSourceLocation>
Gautam Shah3de22e12018-04-21 16:18:37 +0530112 <buildState>
Gautam Shah3de22e12018-04-21 16:18:37 +0530113 <project>${project}</project>
vempodecd2df2018-07-23 19:07:37 +0300114 <compileStateFilePath>org.openecomp.sdc:sdc-onboarding/target/build-data/compileState.dat
115 </compileStateFilePath>
Gautam Shah3de22e12018-04-21 16:18:37 +0530116 </buildState>
117 </configuration>
118 </plugin>
119 <plugin>
Gautam Shahb145c082018-05-27 13:32:07 +0530120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-pmd-plugin</artifactId>
122 <version>${maven.pmd.plugin.version}</version>
123 <dependencies>
124 <dependency>
125 <groupId>org.openecomp.sdc</groupId>
126 <artifactId>build-tools</artifactId>
127 <version>${build.tools.version}</version>
128 </dependency>
129 <dependency>
130 <groupId>net.sourceforge.pmd</groupId>
131 <artifactId>pmd-core</artifactId>
132 <version>${pmd.core.version}</version>
133 </dependency>
134 <dependency>
135 <groupId>net.sourceforge.pmd</groupId>
136 <artifactId>pmd-java</artifactId>
137 <version>${pmd.java.version}</version>
138 </dependency>
139 </dependencies>
140 <configuration>
141 <skip>${skipPMD}</skip>
142 <showPmdLog>false</showPmdLog>
143 <analysisCache>false</analysisCache>
144 <analysisCacheLocation>${project.build.directory}/pmd/pmd.cache</analysisCacheLocation>
145 <failOnViolation>false</failOnViolation>
146 <printFailingErrors>false</printFailingErrors>
147 <format>csv</format>
148 <targetDirectory>${project.build.directory}/pmd</targetDirectory>
149 <includeTests>true</includeTests>
150 <linkXRef>false</linkXRef>
151 <aggregate>false</aggregate>
152 <rulesets>
153 <ruleset>/category/java/bestpractices.xml</ruleset>
154 <ruleset>/category/java/codestyle.xml</ruleset>
155 <ruleset>/category/java/design.xml</ruleset>
156 <ruleset>/category/java/errorprone.xml</ruleset>
157 <ruleset>/category/java/multithreading.xml</ruleset>
158 <ruleset>/category/java/performance.xml</ruleset>
159 <ruleset>/category/java/security.xml</ruleset>
160 </rulesets>
161 </configuration>
162 <executions>
163 <execution>
164 <goals>
165 <goal>check</goal>
166 </goals>
167 <phase>integration-test</phase>
168 </execution>
169 </executions>
170 </plugin>
171 <plugin>
172 <groupId>org.openecomp.sdc.onboarding</groupId>
173 <artifactId>pmd-helper-plugin</artifactId>
174 <version>${project.version}</version>
Gautam Shahb145c082018-05-27 13:32:07 +0530175 <executions>
176 <execution>
177 <goals>
178 <goal>init-pmd-helper</goal>
179 <goal>post-verify-helper</goal>
180 </goals>
181 </execution>
182 </executions>
183 <configuration>
184 <excludePackaging>pom</excludePackaging>
185 <pmdTargetLocation>${project.build.directory}/pmd/pmd.xml</pmdTargetLocation>
186 <pmdFailureReportLocation>${project.build.directory}/pmd.txt</pmdFailureReportLocation>
187 <pmdReportFile>${project.build.directory}/pmd/pmd.csv</pmdReportFile>
188 <persistingModuleCoordinates>org.openecomp.sdc:build-data-installer</persistingModuleCoordinates>
vempodecd2df2018-07-23 19:07:37 +0300189 <pmdCurrentStateFilePath>org.openecomp.sdc:sdc-onboarding/target/build-data/pmdState.dat
190 </pmdCurrentStateFilePath>
Gautam Shahb145c082018-05-27 13:32:07 +0530191 <pmdStateFile>${project.build.outputDirectory}/pmd.dat</pmdStateFile>
vempodecd2df2018-07-23 19:07:37 +0300192 <compiledFilesList>
193 ${project.build.directory}/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
194 </compiledFilesList>
195 <compiledTestFilesList>
196 ${project.build.directory}/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
197 </compiledTestFilesList>
Gautam Shahb145c082018-05-27 13:32:07 +0530198 </configuration>
199 </plugin>
200 <plugin>
201 <groupId>org.apache.maven.plugins</groupId>
202 <artifactId>maven-jar-plugin</artifactId>
203 <version>${mvn.jar.version}</version>
204 <configuration>
205 <archive>
206 <addMavenDescriptor>${mvnDsc}</addMavenDescriptor>
207 </archive>
208 <excludes>
209 <exclude>${emptyJAR}</exclude>
210 </excludes>
211 </configuration>
212 </plugin>
213 <plugin>
AviZi280f8012017-06-09 02:39:56 +0300214 <groupId>org.codehaus.mojo</groupId>
215 <artifactId>license-maven-plugin</artifactId>
216 <version>${mvn.license.version}</version>
217 <configuration>
218 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
vempodecd2df2018-07-23 19:07:37 +0300219 <processStartTag>============LICENSE_START=======================================================
220 </processStartTag>
221 <processEndTag>============LICENSE_END=========================================================
222 </processEndTag>
223 <sectionDelimiter>================================================================================
224 </sectionDelimiter>
AviZi280f8012017-06-09 02:39:56 +0300225 <licenseName>apache_v2</licenseName>
226 <inceptionYear>2017</inceptionYear>
227 <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
228 <projectName>SDC</projectName>
229 <canUpdateCopyright>true</canUpdateCopyright>
230 <canUpdateDescription>true</canUpdateDescription>
231 <canUpdateLicense>true</canUpdateLicense>
232 <emptyLineAfterHeader>true</emptyLineAfterHeader>
233 <verbose>false</verbose>
234 <includes>
235 <include>**/*.java</include>
236 <include>**/*.js</include>
237 <include>**/*.ts</include>
238 </includes>
239 <roots>
240 <root>src</root>
241 <root>app</root>
242 <root>server-mock</root>
243 <root>typings</root>
244 </roots>
245 </configuration>
246 <executions>
247 <execution>
248 <id>first</id>
249 <goals>
250 <goal>update-file-header</goal>
251 </goals>
AviZi280f8012017-06-09 02:39:56 +0300252 </execution>
253 </executions>
254 </plugin>
Avi Gaffa7d6d63c2017-09-10 15:22:07 +0300255 <plugin>
256 <groupId>org.jacoco</groupId>
257 <artifactId>jacoco-maven-plugin</artifactId>
258 <version>${jacoco.version}</version>
259 <executions>
260 <execution>
261 <goals>
262 <goal>prepare-agent</goal>
263 </goals>
264 </execution>
265 <execution>
266 <id>report</id>
267 <phase>prepare-package</phase>
268 <goals>
269 <goal>report</goal>
270 </goals>
271 </execution>
shrikantawachared640f62017-10-05 19:18:38 +0530272 <execution>
273 <id>post-unit-test</id>
274 <phase>test</phase>
275 <goals>
276 <goal>report</goal>
277 </goals>
278 <configuration>
279 <!-- Sets the path to the file which contains the execution data. -->
shrikantawachared640f62017-10-05 19:18:38 +0530280 <dataFile>target/jacoco.exec</dataFile>
281 <!-- Sets the output directory for the code coverage report. -->
282 <outputDirectory>target/jacoco-ut</outputDirectory>
283 </configuration>
284 </execution>
Avi Gaffa7d6d63c2017-09-10 15:22:07 +0300285 </executions>
286 </plugin>
AviZi280f8012017-06-09 02:39:56 +0300287
Michael Landof5f13c42017-02-19 12:35:04 +0200288 </plugins>
289 </build>
290
Gautam Shah3de22e12018-04-21 16:18:37 +0530291 <modules>
292 <module>/api</module>
293 <module>/lib</module>
294 <module>/tools/swagger-ui</module>
295 <module>/tools/zusammen-tools</module>
296 <module>/backend</module>
297 </modules>
Avi Zivc175a0d2018-03-15 13:21:44 +0200298 <profiles>
Avi Zivc175a0d2018-03-15 13:21:44 +0200299
300 <profile>
301 <id>docker</id>
302 <activation>
303 <activeByDefault>false</activeByDefault>
304 </activation>
305
306 <modules>
307 <module>/dist</module>
308 </modules>
309 </profile>
310 </profiles>
Michael Landof5f13c42017-02-19 12:35:04 +0200311</project>
312