add m2e helpers for swagger
[so.git] / bpmn / so-bpmn-tasks / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3   <parent>
4     <groupId>org.onap.so</groupId>
5     <artifactId>bpmn</artifactId>
6     <version>1.6.0-SNAPSHOT</version>
7   </parent>
8   <modelVersion>4.0.0</modelVersion>
9   <artifactId>so-bpmn-tasks</artifactId>
10   <packaging>jar</packaging>
11   <properties>
12     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
14     <maven.compiler.target>1.8</maven.compiler.target>
15     <maven.compiler.source>1.8</maven.compiler.source>
16     <grpc.version>1.17.1</grpc.version>
17   </properties>
18   <build>
19     <plugins>
20       <plugin>
21         <groupId>org.apache.maven.plugins</groupId>
22         <artifactId>maven-surefire-plugin</artifactId>
23         <executions>
24           <execution>
25             <id>default-test</id>
26             <goals>
27               <goal>test</goal>
28             </goals>
29             <configuration>
30               <includes>
31                 <include>**/UnitTestSuite.java</include>
32               </includes>
33             </configuration>
34           </execution>
35           <execution>
36             <id>integration-test</id>
37             <goals>
38               <goal>test</goal>
39             </goals>
40             <configuration>
41               <includes>
42                 <include>**/IntegrationTestSuite.java</include>
43               </includes>
44             </configuration>
45           </execution>
46         </executions>
47         <configuration>
48           <parallel>suites</parallel>
49         </configuration>
50       </plugin>
51       <plugin>
52         <groupId>io.swagger</groupId>
53         <artifactId>swagger-codegen-maven-plugin</artifactId>
54         <version>2.3.1</version>
55         <executions>
56           <execution>
57             <goals>
58               <goal>generate</goal>
59             </goals>
60             <configuration>
61               <inputSpec>${project.basedir}/src/main/resources/naming-service/swagger.json</inputSpec>
62               <apiPackage>org.onap.namingservice.api</apiPackage>
63               <modelPackage>org.onap.namingservice.model</modelPackage>
64               <invokerPackage>org.onap.namingservice.invoker</invokerPackage>
65             </configuration>
66           </execution>
67         </executions>
68         <configuration>
69           <inputSpec>${project.basedir}/src/main/resources/swagger.json</inputSpec>
70           <language>java</language>
71           <configOptions>
72             <sourceFolder>src/gen/java/main</sourceFolder>
73             <serializableModel>true</serializableModel>
74           </configOptions>
75           <output>${project.build.directory}/generated-sources</output>
76           <generateApis>false</generateApis>
77           <library>jersey2</library>
78           <generateSupportingFiles>false</generateSupportingFiles>
79         </configuration>
80       </plugin>
81       <plugin>
82         <groupId>org.codehaus.mojo</groupId>
83         <artifactId>build-helper-maven-plugin</artifactId>
84         <executions>
85           <execution>
86             <id>add-source</id>
87             <phase>generate-sources</phase>
88             <goals>
89               <goal>add-source</goal>
90             </goals>
91             <configuration>
92               <sources>
93                 <source>${project.basedir}/target/generated-sources/src/gen/java/main</source>
94               </sources>
95             </configuration>
96           </execution>
97         </executions>
98       </plugin>
99     </plugins>
100     <pluginManagement>
101       <plugins>
102         <plugin>
103           <groupId>org.eclipse.m2e</groupId>
104           <artifactId>lifecycle-mapping</artifactId>
105           <version>1.0.0</version>
106           <configuration>
107             <lifecycleMappingMetadata>
108               <pluginExecutions>
109                 <pluginExecution>
110                   <pluginExecutionFilter>
111                     <groupId>io.swagger</groupId>
112                     <artifactId>swagger-codegen-maven-plugin</artifactId>
113                     <goals>
114                       <goal>generate</goal>
115                     </goals>
116                     <versionRange>[2.2.0,)</versionRange>
117                   </pluginExecutionFilter>
118                   <action>
119                     <execute>
120                       <runOnIncremental>false</runOnIncremental>
121                     </execute>
122                   </action>
123                 </pluginExecution>
124               </pluginExecutions>
125             </lifecycleMappingMetadata>
126           </configuration>
127         </plugin>
128       </plugins>
129     </pluginManagement>
130   </build>
131   <dependencyManagement>
132     <dependencies>
133       <dependency>
134         <!-- Import dependency management from Spring Boot -->
135         <groupId>org.springframework.boot</groupId>
136         <artifactId>spring-boot-dependencies</artifactId>
137         <version>${springboot.version}</version>
138         <type>pom</type>
139         <scope>import</scope>
140       </dependency>
141     </dependencies>
142   </dependencyManagement>
143   <dependencies>
144     <dependency>
145       <groupId>org.camunda.bpm.springboot</groupId>
146       <artifactId>camunda-bpm-spring-boot-starter</artifactId>
147       <version>${camunda.springboot.version}</version>
148       <scope>test</scope>
149     </dependency>
150     <dependency>
151       <groupId>org.springframework.cloud</groupId>
152       <artifactId>spring-cloud-contract-wiremock</artifactId>
153       <version>1.2.4.RELEASE</version>
154       <scope>test</scope>
155     </dependency>
156     <dependency>
157       <groupId>org.springframework.boot</groupId>
158       <artifactId>spring-boot-starter-test</artifactId>
159       <scope>test</scope>
160     </dependency>
161     <dependency>
162       <groupId>org.camunda.bpm.extension.mockito</groupId>
163       <artifactId>camunda-bpm-mockito</artifactId>
164     </dependency>
165     <dependency>
166       <groupId>org.onap.so</groupId>
167       <artifactId>MSOCommonBPMN</artifactId>
168       <version>${project.version}</version>
169     </dependency>
170     <dependency>
171       <groupId>org.onap.so</groupId>
172       <artifactId>so-bpmn-infrastructure-common</artifactId>
173       <version>${project.version}</version>
174     </dependency>
175     <dependency>
176       <groupId>org.onap.so.adapters</groupId>
177       <artifactId>mso-adapter-utils</artifactId>
178       <version>${project.version}</version>
179     </dependency>
180     <dependency>
181       <groupId>org.onap.sdnc.northbound</groupId>
182       <artifactId>generic-resource-api-client</artifactId>
183       <version>${sdnc.northbound.version}</version>
184       <exclusions>
185         <exclusion>
186           <groupId>javax.ws.rs</groupId>
187           <artifactId>jsr311-api</artifactId>
188         </exclusion>
189       </exclusions>
190     </dependency>
191     <dependency>
192       <groupId>ch.vorburger.mariaDB4j</groupId>
193       <artifactId>mariaDB4j</artifactId>
194       <version>2.2.3</version>
195       <scope>test</scope>
196     </dependency>
197     <dependency>
198       <groupId>org.apache.commons</groupId>
199       <artifactId>commons-lang3</artifactId>
200     </dependency>
201     <dependency>
202       <groupId>org.onap.so.adapters</groupId>
203       <artifactId>mso-vnfm-adapter-api</artifactId>
204       <version>${project.version}</version>
205     </dependency>
206     <dependency>
207       <groupId>org.springframework.boot</groupId>
208       <artifactId>spring-boot-configuration-processor</artifactId>
209       <optional>true</optional>
210     </dependency>
211     <dependency>
212       <groupId>nl.jqno.equalsverifier</groupId>
213       <artifactId>equalsverifier</artifactId>
214       <version>2.5.1</version>
215       <scope>test</scope>
216     </dependency>
217     <dependency>
218       <groupId>io.grpc</groupId>
219       <artifactId>grpc-testing</artifactId>
220       <version>${grpc.version}</version>
221       <scope>test</scope>
222     </dependency>
223   </dependencies>
224 </project>