Correcting problems related to ccsdk,new odl
[appc.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ============LICENSE_START=======================================================
4 ONAP : APPC
5 ================================================================================
6 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7 ================================================================================
8 Copyright (C) 2017 Amdocs
9 =============================================================================
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
13
14       http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22 ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 ============LICENSE_END=========================================================
24 -->
25 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
27     <parent>
28         <groupId>org.onap.ccsdk.parent</groupId>
29         <artifactId>odlparent-carbon-sr1</artifactId>
30         <version>0.0.1-SNAPSHOT</version>
31     </parent>
32
33
34     <modelVersion>4.0.0</modelVersion>
35     <packaging>pom</packaging>
36     <groupId>org.openecomp.appc</groupId>
37     <artifactId>appc</artifactId>
38     <version>1.1.0-SNAPSHOT</version>
39     <name>appc</name>
40     <description>Construct the Application Controller component for the ECOMP project.</description>
41     <inceptionYear>2015-07-20</inceptionYear>
42     <organization>
43         <name>OpenECOMP</name>
44     </organization>
45
46
47     <!-- ================================================================================== -->
48     <!-- Configuration properties -->
49     <!-- ================================================================================== -->
50     <properties>
51         <!-- VERSIONS -->
52
53
54         <cdp.pal.version>1.1.7-oss</cdp.pal.version>
55         <dmaap.client.version>0.2.12</dmaap.client.version>
56         <eelf.version>0.0.1</eelf.version>
57         <eelf.maven.plugin.version>0.0.1</eelf.maven.plugin.version>
58         <cadi-version>1.3.0</cadi-version>
59         <inno-version>1.2.11</inno-version>
60         <dme2-version>3.1.200</dme2-version>
61         <bundle.plugin.version>2.5.0</bundle.plugin.version>
62         <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
63         <equinox.osgi.version>3.8.1.v20120830-144521</equinox.osgi.version>
64         <apache.httpcomponents.version>4.4</apache.httpcomponents.version>
65         <commons.lang3.version>3.4</commons.lang3.version>
66         <antlr.version>4.5.1</antlr.version>
67         <mysql.connector.version>5.1.39</mysql.connector.version>
68         <logback.version>1.1.1</logback.version>
69         <toscalib.version>1.1.0</toscalib.version>
70         <sdc-client.version>1.1.13-SNAPSHOT</sdc-client.version>
71         <jackson.yml.version>2.3.2</jackson.yml.version>
72
73         <!-- SONAR -->
74         <sonar.language>java</sonar.language>
75         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
76         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
77         <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
78         <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
79         <sonar.projectVersion>${project.version}</sonar.projectVersion>
80
81         <salGeneratorPath>target/generated-sources/yang-gen-sal</salGeneratorPath>
82         <maven.javadoc.failOnError>false</maven.javadoc.failOnError>
83         <!-- ADDING TO SUPPORT APPC-PROVIDER-MODEL yang-gen-sal FOLDER GENERATION -->
84         <yang.file.directory>src/main/yang</yang.file.directory>
85         <features.file>features.xml</features.file>
86         <jmxGeneratorPath>target/generated-sources/yang-gen-config</jmxGeneratorPath>
87         <!-- <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath> -->
88
89     </properties>
90
91
92     <!-- ================================================================================== -->
93     <!-- Javadoc Generation Plugin -->
94     <!-- ================================================================================== -->
95     <reporting>
96         <plugins>
97             <plugin>
98                 <groupId>org.apache.maven.plugins</groupId>
99                 <artifactId>maven-javadoc-plugin</artifactId>
100                 <version>2.10</version>
101                 <configuration>
102                     <excludePackageNames>org.onap.ccsdk.sli</excludePackageNames>
103                     <failOnError>false</failOnError>
104                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
105                     <docletArtifact>
106                         <groupId>org.umlgraph</groupId>
107                         <artifactId>umlgraph</artifactId>
108                         <version>5.6</version>
109                     </docletArtifact>
110                     <additionalparam>-views</additionalparam>
111                     <useStandardDocletOptions>true</useStandardDocletOptions>
112                 </configuration>
113             </plugin>
114         </plugins>
115     </reporting>
116
117
118     <!-- ================================================================================== -->
119     <!-- Distribution Management Sites -->
120     <!-- ================================================================================== -->
121     <distributionManagement>
122         <!-- This site is used for Javadocs -->
123         <site>
124             <id>ecomp-site</id>
125             <url>dav:${onap.nexus.url}/sites/site/org/onap/appc/${project.version}</url>
126         </site>
127     </distributionManagement>
128
129
130     <!-- ================================================================================== -->
131     <!-- Define plugin repositories -->
132     <!-- ================================================================================== -->
133     <pluginRepositories>
134         <pluginRepository>
135             <id>opendaylight-mirror</id>
136             <name>opendaylight-mirror</name>
137             <url>https://nexus.opendaylight.org/content/repositories/public/</url>
138             <releases>
139                 <enabled>true</enabled>
140                 <updatePolicy>never</updatePolicy>
141             </releases>
142             <snapshots>
143                 <enabled>false</enabled>
144             </snapshots>
145         </pluginRepository>
146         <pluginRepository>
147             <id>opendaylight-snapshot</id>
148             <name>opendaylight-snapshot</name>
149             <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
150             <releases>
151                 <enabled>false</enabled>
152             </releases>
153             <snapshots>
154                 <enabled>true</enabled>
155             </snapshots>
156         </pluginRepository>
157         <!-- Black Duck plugin dependencies -->
158         <pluginRepository>
159             <id>JCenter</id>
160             <name>JCenter Repository</name>
161             <url>http://jcenter.bintray.com</url>
162         </pluginRepository>
163         <pluginRepository>
164             <id>Restlet</id>
165             <name>Restlet Repository</name>
166             <url>http://maven.restlet.com</url>
167         </pluginRepository>
168     </pluginRepositories>
169
170
171     <!-- ================================================================================== -->
172     <!-- Define project-wide dependencies -->
173     <!-- ================================================================================== -->
174     <dependencyManagement>
175         <dependencies>
176             <dependency>
177                 <groupId>org.opendaylight.controller</groupId>
178                 <artifactId>config-api</artifactId>
179                 <version>${odl.controller.config.api.version}</version>
180             </dependency>
181             <dependency>
182                 <groupId>org.opendaylight.controller</groupId>
183                 <artifactId>sal-binding-config</artifactId>
184                 <version>${odl.mdsal.version}</version>
185             </dependency>
186             <dependency>
187                 <groupId>org.opendaylight.controller</groupId>
188                 <artifactId>sal-binding-api</artifactId>
189                 <version>${odl.mdsal.version}</version>
190             </dependency>
191             <dependency>
192                 <groupId>org.opendaylight.controller</groupId>
193                 <artifactId>sal-test-model</artifactId>
194                 <version>${odl.mdsal.version}</version>
195             </dependency>
196             <dependency>
197                 <groupId>org.opendaylight.netconf</groupId>
198                 <artifactId>sal-rest-connector</artifactId>
199                 <version>${odl.mdsal.version}</version>
200             </dependency>
201             <dependency>
202                 <groupId>org.opendaylight.controller</groupId>
203                 <artifactId>sal-binding-broker-impl</artifactId>
204                 <version>${odl.mdsal.version}</version>
205             </dependency>
206             <dependency>
207                 <groupId>org.opendaylight.controller</groupId>
208                 <artifactId>sal-common-util</artifactId>
209                 <version>${odl.mdsal.version}</version>
210             </dependency>
211             <dependency>
212                 <groupId>org.opendaylight.mdsal</groupId>
213                 <artifactId>yang-binding</artifactId>
214                 <version>${odl.mdsal.yang.binding.version}</version>
215             </dependency>
216             <dependency>
217                 <groupId>org.opendaylight.yangtools</groupId>
218                 <artifactId>yang-common</artifactId>
219                 <version>${odl.yangtools.version}</version>
220             </dependency>
221             <dependency>
222                 <groupId>org.opendaylight.controller</groupId>
223                 <artifactId>features-mdsal</artifactId>
224                 <version>${odl.mdsal.features.version}</version>
225                 <classifier>features</classifier>
226                 <type>xml</type>
227             </dependency>
228             <dependency>
229                 <groupId>org.opendaylight.mdsal</groupId>
230                 <artifactId>features-mdsal</artifactId>
231                 <version>${odl.mdsal.features.version}</version>
232                 <classifier>features</classifier>
233                 <type>xml</type>
234             </dependency>
235             <dependency>
236                 <groupId>org.opendaylight.controller</groupId>
237                 <artifactId>opendaylight-karaf-empty</artifactId>
238                 <version>${odl.karaf.empty.distro.version}</version>
239                 <type>zip</type>
240             </dependency>
241             <dependency>
242                 <groupId>org.opendaylight.mdsal.model</groupId>
243                 <artifactId>ietf-inet-types</artifactId>
244                 <version>${odl.ietf-inet-types.version}</version>
245             </dependency>
246             <dependency>
247                 <groupId>org.opendaylight.mdsal.model</groupId>
248                 <artifactId>ietf-yang-types</artifactId>
249                 <version>${odl.ietf-yang-types.version}</version>
250             </dependency>
251             <!-- CURRENTLY DOES NOT EXIST IN 3.0. Replacement? -->
252             <!-- Required for launching the feature tests -->
253             <!-- <dependency> -->
254             <!-- <groupId>org.opendaylight.yangtools</groupId> -->
255             <!-- <artifactId>features-test</artifactId> -->
256             <!-- <version>${odl.yangtools.version}</version> -->
257             <!-- <scope>test</scope> -->
258             <!-- </dependency> -->
259
260             <!-- YANG tools -->
261             <dependency>
262                 <groupId>org.opendaylight.yangtools</groupId>
263                 <artifactId>features-yangtools</artifactId>
264                 <version>${odl.yangtools.version}</version>
265                 <classifier>features</classifier>
266                 <type>xml</type>
267             </dependency>
268             <!-- SDNC -->
269             <dependency>
270                 <groupId>org.onap.ccsdk.sli.core</groupId>
271                 <artifactId>sli-common</artifactId>
272                 <version>${sdnctl.sli.version}</version>
273             </dependency>
274             <dependency>
275                 <groupId>org.onap.ccsdk.sli.core</groupId>
276                 <artifactId>sli-provider</artifactId>
277                 <version>${sdnctl.sli.version}</version>
278             </dependency>
279             <!-- dblib -->
280             <dependency>
281                 <groupId>org.onap.ccsdk.sli.core</groupId>
282                 <artifactId>dblib-provider</artifactId>
283                 <version>${sdnctl.dblib.version}</version>
284             </dependency>
285             <!-- A&AI service provider dependency override in order to use a stable 
286                 version -->
287             <dependency>
288                 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
289                 <artifactId>aai-service-provider</artifactId>
290                 <version>${sdnctl.aai.service.version}</version>
291             </dependency>
292             <!-- APPC -->
293             <dependency>
294                 <groupId>org.openecomp.appc</groupId>
295                 <artifactId>appc-controller-features</artifactId>
296                 <classifier>features</classifier>
297                 <type>xml</type>
298                 <version>${project.version}</version>
299             </dependency>
300             <dependency>
301                 <groupId>org.openecomp.appc</groupId>
302                 <artifactId>appc-controller-model</artifactId>
303                 <version>${project.version}</version>
304             </dependency>
305             <dependency>
306                 <groupId>org.openecomp.appc</groupId>
307                 <artifactId>appc-controller-bundle</artifactId>
308                 <version>${project.version}</version>
309                 <classifier>config</classifier>
310                 <type>xml</type>
311             </dependency>
312             <dependency>
313                 <groupId>org.openecomp.appc</groupId>
314                 <artifactId>appc-controller-bundle</artifactId>
315                 <version>${project.version}</version>
316             </dependency>
317             <!-- OTHER -->
318             <dependency>
319                 <groupId>equinoxSDK381</groupId>
320                 <artifactId>org.eclipse.osgi</artifactId>
321                 <version>${equinox.osgi.version}</version>
322             </dependency>
323             <dependency>
324                 <groupId>org.apache.commons</groupId>
325                 <artifactId>commons-lang3</artifactId>
326                 <version>${commons.lang3.version}</version>
327             </dependency>
328             <dependency>
329                 <groupId>junit</groupId>
330                 <artifactId>junit</artifactId>
331                 <version>4.12</version>
332                 <scope>test</scope>
333             </dependency>
334             <dependency>
335                 <groupId>ch.qos.logback</groupId>
336                 <artifactId>logback-core</artifactId>
337                 <version>1.1.1</version>
338                 <scope>compile</scope>
339             </dependency>
340             <dependency>
341                 <groupId>ch.qos.logback</groupId>
342                 <artifactId>logback-classic</artifactId>
343                 <version>1.1.1</version>
344                 <scope>compile</scope>
345             </dependency>
346             <!-- <dependency> -->
347             <!-- <groupId>org.slf4j</groupId> -->
348             <!-- <artifactId>slf4j-api</artifactId> -->
349             <!-- <version>1.7.12</version> -->
350             <!-- </dependency> -->
351             <dependency>
352                 <groupId>commons-lang</groupId>
353                 <artifactId>commons-lang</artifactId>
354                 <version>2.6</version>
355             </dependency>
356             <dependency>
357                 <groupId>org.apache.sshd</groupId>
358                 <artifactId>sshd-core</artifactId>
359                 <version>0.12.0</version>
360             </dependency>
361             <dependency>
362                 <groupId>org.mockito</groupId>
363                 <artifactId>mockito-core</artifactId>
364                 <version>1.10.19</version>
365                 <scope>test</scope>
366             </dependency>
367             <dependency>
368                 <groupId>com.att.cdp</groupId>
369                 <artifactId>cdp-pal-common</artifactId>
370                 <version>${cdp.pal.version}</version>
371             </dependency>
372             <dependency>
373                 <groupId>com.att.cdp</groupId>
374                 <artifactId>cdp-pal-openstack</artifactId>
375                 <version>${cdp.pal.version}</version>
376             </dependency>
377             <dependency>
378                 <groupId>com.att.authz</groupId>
379                 <artifactId>authz-client</artifactId>
380                 <version>2.3</version>
381             </dependency>
382             <!-- EELF logging framework -->
383             <dependency>
384                 <groupId>com.att.eelf</groupId>
385                 <artifactId>eelf-core</artifactId>
386                 <version>${eelf.version}</version>
387             </dependency>
388         </dependencies>
389     </dependencyManagement>
390
391
392     <!-- ================================================================================== -->
393     <!-- Define common plugins and make them available for all modules -->
394     <!-- ================================================================================== -->
395     <build>
396         <pluginManagement>
397             <plugins>
398                 <!-- Define the site plugin to generate documentation -->
399                 <plugin>
400                     <groupId>org.apache.maven.plugins</groupId>
401                     <artifactId>maven-site-plugin</artifactId>
402                     <version>3.4</version>
403                     <dependencies>
404                         <!-- add support for ssh/scp -->
405                         <dependency>
406                             <groupId>org.apache.maven.wagon</groupId>
407                             <artifactId>wagon-ssh</artifactId>
408                             <version>1.0</version>
409                         </dependency>
410                     </dependencies>
411                 </plugin>
412                 <!-- Define the compiler plugin -->
413                 <plugin>
414                     <groupId>org.apache.maven.plugins</groupId>
415                     <artifactId>maven-compiler-plugin</artifactId>
416                     <version>${maven.compile.plugin.version}</version>
417                 </plugin>
418                 <!-- Define the javadoc plugin -->
419                 <plugin>
420                     <groupId>org.apache.maven.plugins</groupId>
421                     <artifactId>maven-javadoc-plugin</artifactId>
422                     <version>2.10</version>
423                     <configuration>
424                         <excludePackageNames>org.opendaylight.*:org.onap.ccsdk.sli</excludePackageNames>
425                     </configuration>
426                 </plugin>
427                 <!-- Define the source plugin -->
428                 <plugin>
429                     <artifactId>maven-source-plugin</artifactId>
430                     <version>2.1.1</version>
431                 </plugin>
432                 <!-- Resources plugin -->
433                 <plugin>
434                     <groupId>org.apache.maven.plugins</groupId>
435                     <artifactId>maven-resources-plugin</artifactId>
436                     <version>2.6</version>
437                     <executions>
438                         <execution>
439                             <id>filter</id>
440                             <goals>
441                                 <goal>resources</goal>
442                             </goals>
443                             <phase>generate-resources</phase>
444                         </execution>
445                     </executions>
446                 </plugin>
447                 <plugin>
448                     <artifactId>maven-release-plugin</artifactId>
449                     <version>2.5.2</version>
450                     <configuration>
451                         <goals>-s ${mvn.settings} deploy</goals>
452                     </configuration>
453                 </plugin>
454                 <plugin>
455                     <artifactId>maven-assembly-plugin</artifactId>
456                     <version>2.5.5</version>
457                 </plugin>
458                 <plugin>
459                     <groupId>org.apache.maven.plugins</groupId>
460                     <artifactId>maven-deploy-plugin</artifactId>
461                     <version>2.8.1</version>
462                 </plugin>
463                 <plugin>
464                     <groupId>org.apache.maven.plugins</groupId>
465                     <artifactId>maven-dependency-plugin</artifactId>
466                     <version>2.10</version>
467                 </plugin>
468                 <!-- Maven surefire plugin for testing -->
469                 <plugin>
470                     <artifactId>maven-surefire-plugin</artifactId>
471                     <version>2.17</version>
472                 </plugin>
473                 <!-- Maven OSGi bundle plugin used to package OSGi bundles -->
474                 <plugin>
475                     <groupId>org.apache.felix</groupId>
476                     <artifactId>maven-bundle-plugin</artifactId>
477                     <version>${bundle.plugin.version}</version>
478                 </plugin>
479                 <plugin>
480                     <groupId>org.codehaus.mojo</groupId>
481                     <artifactId>build-helper-maven-plugin</artifactId>
482                     <version>1.9.1</version>
483                 </plugin>
484                 <plugin>
485                   <groupId>org.sonarsource.scanner.maven</groupId>
486                   <artifactId>sonar-maven-plugin</artifactId>
487                   <version>3.2</version>
488                 </plugin>
489             </plugins>
490         </pluginManagement>
491         <plugins>
492             <!--maven staging plugin --> 
493             <plugin> 
494                 <groupId>org.sonatype.plugins</groupId> 
495                 <artifactId>nexus-staging-maven-plugin</artifactId> 
496                 <version>1.6.7</version> 
497                 <extensions>true</extensions> 
498                 <configuration> 
499                     <nexusUrl>${onap.nexus.url}</nexusUrl> 
500                     <stagingProfileId>176c31dfe190a</stagingProfileId> 
501                     <serverId>ecomp-staging</serverId> 
502                 </configuration> 
503             </plugin> 
504             <!-- Javadocs Plugin -->
505             <plugin>
506                 <groupId>org.apache.maven.plugins</groupId>
507                 <artifactId>maven-site-plugin</artifactId>
508                 <version>3.6</version>
509                 <dependencies>
510                     <dependency>
511                         <groupId>org.apache.maven.wagon</groupId>
512                         <artifactId>wagon-webdav-jackrabbit</artifactId>
513                         <version>2.10</version>
514                     </dependency>
515                 </dependencies>
516             </plugin>
517             <plugin>
518                 <groupId>org.codehaus.mojo</groupId>
519                 <artifactId>properties-maven-plugin</artifactId>
520                 <executions>
521                     <execution>
522                         <goals>
523                             <goal>set-system-properties</goal>
524                         </goals>
525                         <configuration>
526                             <properties>
527                                 <property>
528                                     <name>maven.wagon.http.ssl.allowall</name>
529                                     <value>${ssl.allowall}</value>
530                                 </property>
531                                 <property>
532                                     <name>maven.wagon.http.ssl.insecure</name>
533                                     <value>${ssl.insecure}</value>
534                                 </property>
535                             </properties>
536                         </configuration>
537                     </execution>
538                 </executions>
539
540             </plugin>
541
542             <!-- blackduck maven plugin -->
543             <!-- <plugin> <groupId>com.blackducksoftware.integration</groupId> <artifactId>hub-maven-plugin</artifactId> 
544                 <version>2.0.0</version> <inherited>false</inherited> <configuration> <hubProjectName>${project.name}</hubProjectName> 
545                 <outputDirectory>${project.basedir}</outputDirectory> <deployHubBdio>false</deployHubBdio> 
546                 </configuration> <executions> <execution> <id>create-bdio-file</id> <phase>package</phase> 
547                 <goals> <goal>build-bom</goal> </goals> </execution> </executions> </plugin> -->
548
549             <!-- force Eclipse to skip the additional-install step specified in the
550                 org.opendaylight.odlparent:odlparent-lite:1.7.1-Boron-SR1.pom profile -->
551             <plugin>
552                 <groupId>org.apache.maven.plugins</groupId>
553                 <artifactId>maven-install-plugin</artifactId>
554                 <executions>
555                     <execution>
556                         <id>additional-install</id>
557                         <goals>
558                             <goal>install-file</goal>
559                         </goals>
560                     </execution>
561                 </executions>
562             </plugin>
563         </plugins>
564     </build>
565
566
567     <!-- ================================================================================== -->
568     <!-- The modules we build every time -->
569     <!-- ================================================================================== -->
570     <modules>
571         <module>appc-common</module>
572     </modules>
573     <!-- Adding profiles for testing -->
574     <profiles>
575         <profile>
576             <id>appc-core</id>
577             <properties>
578                 <ssl.allowall>true</ssl.allowall>
579                 <ssl.insecure>true</ssl.insecure>
580                 <openecomp.git.port>7999</openecomp.git.port>
581                 <openecomp.git.project>st_osecomp</openecomp.git.project>
582                 <openecomp.git.protocol>http</openecomp.git.protocol>
583             </properties>
584             <!-- Core app-c from 1604 -->
585             <activation>
586                 <activeByDefault>true</activeByDefault>
587             </activation>
588             <modules>
589                 <module>appc-common</module>
590                 <module>appc-adapters</module>
591                 <module>appc-provider</module>
592                 <module>appc-event-listener</module>
593                 <module>appc-sdc-listener</module>
594                 <module>appc-lifecycle-management</module>
595                 <module>appc-oam</module>
596                 <module>appc-config</module>
597                 <module>appc-directed-graph</module>
598                 <module>appc-outbound</module>
599                 <module>appc-inbound</module>
600                 <module>appc-sequence-generator</module>
601                 <module>appc-client</module>
602             </modules>
603         </profile>
604         <profile>
605             <id>request-dispatcher</id>
606             <properties>
607                 <ssl.allowall>true</ssl.allowall>
608                 <ssl.insecure>true</ssl.insecure>
609             </properties>
610             <activation>
611                 <activeByDefault>true</activeByDefault>
612             </activation>
613             <modules>
614                 <module>appc-dispatcher</module>
615                 <module>appc-metric</module>
616                 <module>appc-dg</module>
617                 <module>appc-dg-util</module>
618             </modules>
619         </profile>
620     </profiles>
621 </project>