sheetalm | 297209b | 2018-02-20 19:06:27 +0530 | [diff] [blame^] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | <modelVersion>4.0.0</modelVersion> |
| 5 | |
| 6 | <artifactId>activityspec-war</artifactId> |
| 7 | <name>activityspec-war</name> |
| 8 | <packaging>war</packaging> |
| 9 | |
| 10 | <parent> |
| 11 | <groupId>org.openecomp.activityspec</groupId> |
| 12 | <artifactId>activity-spec-web</artifactId> |
| 13 | <version>1.2.0-SNAPSHOT</version> |
| 14 | <relativePath>../</relativePath> |
| 15 | </parent> |
| 16 | |
| 17 | <dependencies> |
| 18 | <dependency> |
| 19 | <groupId>org.openecomp.activityspec</groupId> |
| 20 | <artifactId>activity-spec-service</artifactId> |
| 21 | <version>${project.version}</version> |
| 22 | </dependency> |
| 23 | </dependencies> |
| 24 | |
| 25 | <build> |
| 26 | <plugins> |
| 27 | <plugin> |
| 28 | <artifactId>maven-war-plugin</artifactId> |
| 29 | <version>${mvn.war.version}</version> |
| 30 | <configuration> |
| 31 | <attachClasses>true</attachClasses> |
| 32 | <webResources> |
| 33 | <resource> |
| 34 | <!-- this is relative to the pom.xml directory --> |
| 35 | <directory>${basedir}/target/generated/swagger-ui</directory> |
| 36 | </resource> |
| 37 | </webResources> |
| 38 | </configuration> |
| 39 | </plugin> |
| 40 | <plugin> |
| 41 | <groupId>com.github.kongchen</groupId> |
| 42 | <artifactId>swagger-maven-plugin</artifactId> |
| 43 | <version>${mvn.swagger.version}</version> |
| 44 | <configuration> |
| 45 | <apiSources> |
| 46 | <apiSource> |
| 47 | <springmvc>false</springmvc> |
| 48 | <locations>org.openecomp.activityspec</locations> |
| 49 | <schemes>http</schemes> |
| 50 | <basePath>/activityspec-api</basePath> |
| 51 | <info> |
| 52 | <title>Rest API</title> |
| 53 | <version>v1.0, build #${buildNumber}</version> |
| 54 | <description>Rest API Documentation</description> |
| 55 | <termsOfService> |
| 56 | http://www.github.com/kongchen/swagger-maven-plugin |
| 57 | </termsOfService> |
| 58 | </info> |
| 59 | <templatePath>${basedir}/templates/strapdown.html.hbs</templatePath> |
| 60 | <outputPath>${basedir}/target/generated/api.html</outputPath> |
| 61 | <swaggerDirectory>${basedir}/target/generated/swagger-ui |
| 62 | </swaggerDirectory> |
| 63 | </apiSource> |
| 64 | </apiSources> |
| 65 | </configuration> |
| 66 | <executions> |
| 67 | <execution> |
| 68 | <phase>compile</phase> |
| 69 | <goals> |
| 70 | <goal>generate</goal> |
| 71 | </goals> |
| 72 | </execution> |
| 73 | </executions> |
| 74 | </plugin> |
| 75 | </plugins> |
| 76 | </build> |
| 77 | |
| 78 | </project> |