summaryrefslogtreecommitdiffstats
path: root/core/utils/provider/pom.xml
blob: 0b34ff677991f042ed6931bbfc762decc0a619e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.onap.ccsdk.parent</groupId>
        <artifactId>binding-parent</artifactId>
        <version>2.2.3</version>
        <relativePath/>
    </parent>

    <groupId>org.onap.ccsdk.sli.core</groupId>
    <artifactId>utils-provider</artifactId>
    <version>1.3.4-SNAPSHOT</version>
    <packaging>bundle</packaging>

    <name>ccsdk-sli-core :: ${project.artifactId}</name>
    <description>
        The SLI Core Utilities Package provides common functionality for setting up SLI connectivity.
    </description>
    <organization>
        <name>ONAP</name>
    </organization>

    <dependencies>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.att.eelf</groupId>
            <artifactId>eelf-core</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- Testing Dependencies -->
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-reflect</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-module-junit4</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-api-mockito2</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <environmentVariables>
                        <MYSQL_USER>dummyUser</MYSQL_USER>
                        <MYSQL_PASSWORD>dummyPassword</MYSQL_PASSWORD>
                        <MYSQL_DATABASE>dummyDatabase</MYSQL_DATABASE>
                    </environmentVariables>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
ory> <id>&gt;bintray-yang2swagger-yang2swagge</id> <name>bintray</name> <url>https://dl.bintray.com/yang2swagger/yang2swagger</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.10</version> <configuration> <outputDirectory>${project.build.directory}/dependency</outputDirectory> <includes>**\/*.yang</includes> <includeGroupIds>org.opendaylight.mdsal.model,org.opendaylight.mdsal.binding.model.ietf,org.onap.sdnc.northbound</includeGroupIds> </configuration> <executions> <execution> <id>unpack-shared-resources</id> <goals> <goal>unpack-dependencies</goal> </goals> <phase>initialize</phase> </execution> </executions> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> <executions> <execution> <phase>initialize</phase> <goals> <goal>run</goal> </goals> </execution> </executions> <configuration> <tasks> <!-- flatten out structure --> <move todir="${project.build.directory}/dependency" failonerror="false"> <fileset dir="${project.build.directory}/dependency"/> <mapper type="flatten"/> </move> <!-- move to yang folder --> <copy todir="${project.build.directory}/yang" failonerror="false"> <fileset dir="${project.build.directory}/dependency" includes="**/*.yang"/> <mapper type="flatten"/> </copy> </tasks> </configuration> </plugin> <plugin> <groupId>org.opendaylight.yangtools</groupId> <artifactId>yang-maven-plugin</artifactId> <version>1.2.3</version> <dependencies> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.module</groupId> <artifactId>jackson-module-jaxb-annotations</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-base</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-json-provider</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.mrv.yangtools</groupId> <artifactId>swagger-maven-plugin</artifactId> <version>1.1.12</version> </dependency> <dependency> <groupId>com.github.romix</groupId> <artifactId>java-concurrent-hash-trie-map</artifactId> <version>0.2.23</version> </dependency> </dependencies> <executions> <execution> <id>yang2swagger-json</id> <goals> <goal>generate-sources</goal> </goals> <configuration> <codeGenerators> <generator> <codeGeneratorClass>com.mrv.yangtools.maven.gen.swagger.MavenSwaggerGenerator</codeGeneratorClass> <outputBaseDir>${project.basedir}/src/main/json</outputBaseDir> <resourceBaseDir>${project.build.directory}/yang</resourceBaseDir> <additionalConfiguration> <api-version>${project.version}</api-version> <base-module>${api.name}</base-module> <swagger-format>json</swagger-format> <path-format>odl</path-format> <use-namespaces>true</use-namespaces> </additionalConfiguration> </generator> </codeGenerators> <inspectDependencies>false</inspectDependencies> <yangFilesRootDir>${project.build.directory}/yang</yangFilesRootDir> </configuration> </execution> <execution> <id>yang2swagger-yaml</id> <goals> <goal>generate-sources</goal> </goals> <configuration> <codeGenerators> <generator> <codeGeneratorClass>com.mrv.yangtools.maven.gen.swagger.MavenSwaggerGenerator</codeGeneratorClass> <outputBaseDir>${project.basedir}/src/main/yaml</outputBaseDir> <resourceBaseDir>${project.build.directory}/yang</resourceBaseDir> <additionalConfiguration> <api-version>${project.version}</api-version> <base-module>${api.name}</base-module> <swagger-format>yaml</swagger-format> <path-format>odl</path-format> <use-namespaces>true</use-namespaces> </additionalConfiguration> </generator> </codeGenerators> <inspectDependencies>false</inspectDependencies> <yangFilesRootDir>${project.build.directory}/yang</yangFilesRootDir> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</version> <executions> <execution> <configuration> <executable>sh</executable> <arguments> <argument>${basedir}/fixModuleUri.sh</argument> <argument>GENERIC-RESOURCE-API</argument> <argument>src/main/yaml/generic-resource.yaml</argument> </arguments> </configuration> <id>fix-swagger-yaml</id> <phase>generate-resources</phase> <goals> <goal>exec</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.10</version> <executions> <execution> <id>attach-artifacts</id> <phase>package</phase> <goals> <goal>attach-artifact</goal> </goals> <configuration> <artifacts> <artifact> <file>src/main/json/${api.name}.json</file> <type>json</type> </artifact> <artifact> <file>src/main/yaml/${api.name}.yaml</file> <type>yaml</type> </artifact> </artifacts> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>