aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
blob: 7d3e8a4d80fbac6226370cb89717dd04e8fe87e3 (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
100
101
102
103
104
105
<?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>

  <groupId>org.onap.logging-analytics.pomba</groupId>
  <artifactId>pomba-audit-common</artifactId>
  <version>1.4.0</version>
  <packaging>jar</packaging>


  <parent>
      <groupId>org.onap.oparent</groupId>
      <artifactId>oparent</artifactId>
      <version>2.0.0</version>
      <relativePath/>
  </parent>

  <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
      <swagger.directory>${project.build.directory}/generated-resources/swagger</swagger.directory>
  </properties>

  <dependencies>
      <dependency>
          <groupId>com.google.code.gson</groupId>
          <artifactId>gson</artifactId>
          <version>2.8.5</version>
      </dependency>

      <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>4.12</version>
          <scope>test</scope>
      </dependency>

      <dependency>
          <groupId>io.swagger</groupId>
          <artifactId>swagger-core</artifactId>
          <version>1.5.9</version>
      </dependency>
      <dependency>
          <groupId>io.swagger</groupId>
          <artifactId>swagger-annotations</artifactId>
          <version>1.5.9</version>
      </dependency>

      <dependency>
          <groupId>org.glassfish.jersey.core</groupId>
          <artifactId>jersey-client</artifactId>
          <version>2.24</version>
      </dependency>
      <dependency>
          <groupId>org.glassfish.jersey.core</groupId>
          <artifactId>jersey-common</artifactId>
          <version>2.24</version>
      </dependency>

  </dependencies>

  <build>
      <plugins>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-surefire-plugin</artifactId>
              <version>2.22.0</version>
          </plugin>
          <plugin>
              <groupId>com.github.kongchen</groupId>
              <artifactId>swagger-maven-plugin</artifactId>
              <version>3.1.3</version>
              <configuration>
                  <apiSources>
                      <apiSource>
                          <locations>org.onap.pomba.common.resource.AuditResource</locations>
                          <schemes>http</schemes>
                          <host>host:port</host>
                          <basePath>/XXXcontextbuilder</basePath>
                          <info>
                              <title>Swagger Specification for POMBA Common Model</title>
                              <version>${project.version}</version>
                              <description>POMBA Audit Context Builder API</description>
                          </info>
                          <templatePath>${basedir}/src/main/resources/strapdown.html.hbs</templatePath>
                          <outputPath>${basedir}/src/main/resources/commonModel.html</outputPath>
                          <swaggerDirectory>${swagger.directory}</swaggerDirectory>
                      </apiSource>
                  </apiSources>
              </configuration>
              <executions>
                  <execution>
                      <!-- <phase>compile</phase> -->
                      <phase>package</phase>
                      <goals>
                          <goal>generate</goal>
                      </goals>
                  </execution>
              </executions>
          </plugin>
      </plugins>
   </build>


</project>