|
198 | 198 | <artifactId>spring-boot-maven-plugin</artifactId>
|
199 | 199 | </plugin>
|
200 | 200 |
|
| 201 | + <!-- PhoenixNAP RAML Code Generator plugin used to generate sources |
| 202 | + from raml --> |
| 203 | + <plugin> |
| 204 | + <groupId>com.phoenixnap.oss</groupId> |
| 205 | + <artifactId>springmvc-raml-plugin</artifactId> |
| 206 | + <version>${plugin-version}</version> |
| 207 | + <configuration> |
| 208 | + <!-- path to raml file --> |
| 209 | + <ramlPath>${raml-path}</ramlPath> |
| 210 | + <!-- output of generated code --> |
| 211 | + <outputRelativePath>${output-relative-path}</outputRelativePath> |
| 212 | + <addTimestampFolder>false</addTimestampFolder> |
| 213 | + <!-- package for generated sources --> |
| 214 | + <basePackage>${base-package}</basePackage> |
| 215 | + <baseUri>/</baseUri> |
| 216 | + <seperateMethodsByContentType>false</seperateMethodsByContentType> |
| 217 | + <useJackson1xCompatibility>false</useJackson1xCompatibility> |
| 218 | + <rule>com.phoenixnap.oss.ramlapisync.generation.rules.Spring4ControllerInterfaceRule</rule> |
| 219 | + <generationConfig> |
| 220 | + <useCommonsLang3>true</useCommonsLang3> |
| 221 | + </generationConfig> |
| 222 | + </configuration> |
| 223 | + <executions> |
| 224 | + <execution> |
| 225 | + <id>generate-springmvc-controllers</id> |
| 226 | + <phase>generate-sources</phase> |
| 227 | + <goals> |
| 228 | + <goal>generate-springmvc-endpoints</goal> |
| 229 | + </goals> |
| 230 | + </execution> |
| 231 | + </executions> |
| 232 | + </plugin> |
| 233 | + |
| 234 | + <!-- required for adding generated sources --> |
| 235 | + <plugin> |
| 236 | + <groupId>org.codehaus.mojo</groupId> |
| 237 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 238 | + <executions> |
| 239 | + <execution> |
| 240 | + <phase>generate-sources</phase> |
| 241 | + <goals> |
| 242 | + <goal>add-source</goal> |
| 243 | + </goals> |
| 244 | + <configuration> |
| 245 | + <sources> |
| 246 | + <!-- where to find the generated sources --> |
| 247 | + <source>${output-relative-path}</source> |
| 248 | + </sources> |
| 249 | + </configuration> |
| 250 | + </execution> |
| 251 | + </executions> |
| 252 | + </plugin> |
| 253 | + |
201 | 254 | <plugin>
|
202 | 255 | <groupId>org.apache.maven.plugins</groupId>
|
203 | 256 | <artifactId>maven-surefire-plugin</artifactId>
|
|
0 commit comments