Rearranging togglez to avoid dependency issues
[sdc.git] / openecomp-be / pom.xml
1 <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
5     <name>openecomp-sdc</name>
6     <groupId>org.openecomp.sdc</groupId>
7     <artifactId>openecomp-sdc</artifactId>
8     <packaging>pom</packaging>
9
10     <url>http://maven.apache.org</url>
11
12     <parent>
13         <groupId>org.openecomp.sdc</groupId>
14         <artifactId>sdc-onboarding</artifactId>
15         <version>1.2.0-SNAPSHOT</version>
16         <relativePath>../onboarding</relativePath>
17     </parent>
18
19     <modules>
20         <module>/api</module>
21         <module>/lib</module>
22         <module>/configuration</module>
23         <module>/tools/swagger-ui</module>
24         <module>/tools/migration/1702_to_1707_zusammen</module>
25         <module>/tools/zusammen-tools</module>
26         <module>/backend</module>
27     </modules>
28
29     <dependencies>
30         <dependency>
31             <groupId>com.fasterxml.jackson.core</groupId>
32             <artifactId>jackson-annotations</artifactId>
33             <version>${jackson.version}</version>
34         </dependency>
35
36         <!-- Feature Toggle support libraries-->
37         <dependency>
38             <groupId>org.togglz</groupId>
39             <artifactId>togglz-core</artifactId>
40             <version>${togglz.version}</version>
41         </dependency>
42
43         <dependency>
44             <groupId>org.togglz</groupId>
45             <artifactId>togglz-testing</artifactId>
46             <version>${togglz.version}</version>
47             <scope>test</scope>
48         </dependency>
49     </dependencies>
50
51     <build>
52         <plugins>
53
54             <!-- ================================================== -->
55             <!-- Set the JDK compiler version.                      -->
56             <!-- ================================================== -->
57             <plugin>
58                 <groupId>org.apache.maven.plugins</groupId>
59                 <artifactId>maven-compiler-plugin</artifactId>
60                 <version>${mvn.compiler.version}</version>
61                 <inherited>true</inherited>
62                 <configuration>
63                     <source>${java.source}</source>
64                     <target>${java.target}</target>
65                 </configuration>
66             </plugin>
67             <!-- blackduck maven plugin -->
68             <!--
69             <plugin>
70                 <groupId>com.blackducksoftware.integration</groupId>
71                 <artifactId>hub-maven-plugin</artifactId>
72                 <version>${mvn.hub.version}</version>
73                 <inherited>false</inherited>
74                 <configuration>
75                     <target>${project.basedir}</target>
76                 </configuration>
77                 <executions>
78                     <execution>
79                         <id>create-bdio-file</id>
80                         <phase>package</phase>
81                         <goals>
82                             <goal>createHubOutput</goal>
83                         </goals>
84                     </execution>
85                 </executions>
86             </plugin>-->
87
88             <plugin>
89                 <groupId>org.codehaus.mojo</groupId>
90                 <artifactId>license-maven-plugin</artifactId>
91                 <version>${mvn.license.version}</version>
92                 <configuration>
93                     <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
94                     <processStartTag>============LICENSE_START=======================================================</processStartTag>
95                     <processEndTag>============LICENSE_END=========================================================</processEndTag>
96                     <sectionDelimiter>================================================================================</sectionDelimiter>
97                     <licenseName>apache_v2</licenseName>
98                     <inceptionYear>2017</inceptionYear>
99                     <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
100                     <projectName>SDC</projectName>
101                     <canUpdateCopyright>true</canUpdateCopyright>
102                     <canUpdateDescription>true</canUpdateDescription>
103                     <canUpdateLicense>true</canUpdateLicense>
104                     <emptyLineAfterHeader>true</emptyLineAfterHeader>
105                     <verbose>false</verbose>
106                     <includes>
107                         <include>**/*.java</include>
108                         <include>**/*.js</include>
109                         <include>**/*.ts</include>
110                     </includes>
111                     <roots>
112                         <root>src</root>
113                         <root>app</root>
114                         <root>server-mock</root>
115                         <root>typings</root>
116                     </roots>
117                 </configuration>
118                 <executions>
119                     <execution>
120                         <id>first</id>
121                         <goals>
122                             <goal>update-file-header</goal>
123                         </goals>
124                         <!--phase>process-sources</phase-->
125                     </execution>
126                 </executions>
127             </plugin>
128             <plugin>
129                 <groupId>org.jacoco</groupId>
130                 <artifactId>jacoco-maven-plugin</artifactId>
131                 <version>${jacoco.version}</version>
132                 <executions>
133                     <execution>
134                         <goals>
135                             <goal>prepare-agent</goal>
136                         </goals>
137                     </execution>
138                     <execution>
139                         <id>report</id>
140                         <phase>prepare-package</phase>
141                         <goals>
142                             <goal>report</goal>
143                         </goals>
144                     </execution>
145                     <execution>
146                         <id>post-unit-test</id>
147                         <phase>test</phase>
148                         <goals>
149                             <goal>report</goal>
150                         </goals>
151                         <configuration>
152                             <!-- Sets the path to the file which contains the execution data. -->
153
154                             <dataFile>target/jacoco.exec</dataFile>
155                             <!-- Sets the output directory for the code coverage report. -->
156                             <outputDirectory>target/jacoco-ut</outputDirectory>
157                         </configuration>
158                     </execution>
159                 </executions>
160             </plugin>
161             <!-- Jacoco consolidation Report -->
162             <plugin>
163                 <groupId>org.apache.maven.plugins</groupId>
164                 <artifactId>maven-antrun-plugin</artifactId>
165                 <version>${mvn.antrun.version}</version>
166                 <executions>
167                     <execution>
168                         <phase>post-integration-test</phase>
169                         <goals>
170                             <goal>run</goal>
171                         </goals>
172                         <configuration>
173                             <target>
174                                 <!-- Execute an ant task within maven -->
175                                 <echo message="Generating JaCoCo Reports" />
176                                 <taskdef name="report" classname="org.jacoco.ant.ReportTask">
177                                     <classpath path="${basedir}/target/jacoco-jars/org.jacoco.ant.jar" />
178                                 </taskdef>
179                                 <mkdir dir="${basedir}/target/coverage-report" />
180                                 <report>
181                                     <executiondata>
182                                         <fileset dir="${basedir}">
183                                             <include name="**/*jacoco.exec" />
184                                         </fileset>
185                                     </executiondata>
186                                     <structure name="jacoco-multi Coverage Project">
187                                         <group name="jacoco-multi">
188                                             <classfiles>
189                                                 <fileset dir="${basedir}">
190                                                     <include name="**/target/classes/**" />
191                                                 </fileset>
192                                             </classfiles>
193                                             <sourcefiles encoding="UTF-8">
194                                                 <fileset dir="${basedir}">
195                                                     <include name="**/target/generated-sources/**" />
196                                                 </fileset>
197                                             </sourcefiles>
198                                         </group>
199                                     </structure>
200                                     <html destdir="${basedir}/target/coverage-report/html" />
201                                     <xml destfile="${basedir}/target/coverage-report/coverage-report.xml" />
202                                     <csv destfile="${basedir}/target/coverage-report/coverage-report.csv" />
203                                 </report>
204                             </target>
205                         </configuration>
206                     </execution>
207                 </executions>
208                 <dependencies>
209                     <dependency>
210                         <groupId>org.jacoco</groupId>
211                         <artifactId>org.jacoco.ant</artifactId>
212                         <version>${jacoco.version}</version>
213                     </dependency>
214                 </dependencies>
215             </plugin>
216
217         </plugins>
218     </build>
219
220     <!--Added to resolve blackduck operational risks for indirect dependencies referred -->
221     <dependencyManagement>
222         <dependencies>
223             <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
224             <dependency>
225                 <groupId>commons-beanutils</groupId>
226                 <artifactId>commons-beanutils</artifactId>
227                 <version>${commons.beanutils.version}</version>
228             </dependency>
229             <!-- https://mvnrepository.com/artifact/com.beust/jcommander -->
230             <dependency>
231                 <groupId>com.beust</groupId>
232                 <artifactId>jcommander</artifactId>
233                 <version>${jcommander.version}</version>
234             </dependency>
235             <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpasyncclient -->
236             <dependency>
237                 <groupId>org.apache.httpcomponents</groupId>
238                 <artifactId>httpasyncclient</artifactId>
239                 <version>${httpasyncclient.version}</version>
240             </dependency>
241             <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
242             <dependency>
243                 <groupId>com.sun.xml.bind</groupId>
244                 <artifactId>jaxb-impl</artifactId>
245                 <version>${jaxb.impl.version}</version>
246             </dependency>
247             <!-- https://mvnrepository.com/artifact/org.beanshell/bsh -->
248             <dependency>
249                 <groupId>org.beanshell</groupId>
250                 <artifactId>bsh</artifactId>
251                 <version>${bsh.version}</version>
252             </dependency>
253             <!-- https://mvnrepository.com/artifact/commons-digester/commons-digester -->
254             <dependency>
255                 <groupId>commons-digester</groupId>
256                 <artifactId>commons-digester</artifactId>
257                 <version>${commons.digester.version}</version>
258             </dependency>
259             <!-- https://mvnrepository.com/artifact/com.fasterxml/classmate -->
260             <dependency>
261                 <groupId>com.fasterxml</groupId>
262                 <artifactId>classmate</artifactId>
263                 <version>${classmate.version}</version>
264             </dependency>
265             <!--1702 -->
266             <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
267             <dependency>
268                 <groupId>org.slf4j</groupId>
269                 <artifactId>slf4j-api</artifactId>
270                 <version>${slf4j.version}</version>
271             </dependency>
272             <dependency>
273                 <groupId>org.codehaus.groovy</groupId>
274                 <artifactId>groovy-all</artifactId>
275                 <version>${groovy.version}</version>
276             </dependency>
277              <dependency>
278                 <groupId>org.codehaus.janino</groupId>
279                 <artifactId>janino</artifactId>
280                 <version>${janino.version}</version>
281                 <scope>provided</scope>
282             </dependency>
283         </dependencies>
284     </dependencyManagement>
285
286 </project>
287