maven improvements and clean up
[sdc.git] / services / activity-spec / activity-spec-web / activity-spec-war / pom.xml
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
5     <modelVersion>4.0.0</modelVersion>
6
7     <artifactId>activity-spec-war</artifactId>
8     <packaging>war</packaging>
9
10     <parent>
11         <groupId>org.onap.sdc.activityspec</groupId>
12         <artifactId>activity-spec</artifactId>
13         <version>1.3.0-SNAPSHOT</version>
14         <relativePath>../..</relativePath>
15     </parent>
16
17     <dependencies>
18         <dependency>
19             <groupId>org.onap.sdc.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                 <groupId>org.apache.maven.plugins</groupId>
29                 <artifactId>maven-compiler-plugin</artifactId>
30                 <executions>
31                     <execution>
32                         <phase>none</phase>
33                     </execution>
34                 </executions>
35             </plugin>
36             <plugin>
37                 <groupId>org.apache.maven.plugins</groupId>
38                 <artifactId>maven-war-plugin</artifactId>
39                 <version>${mvn.war.version}</version>
40                 <configuration>
41                     <attachClasses>false</attachClasses>
42                     <packagingExcludes>WEB-INF/web.xml</packagingExcludes>
43                     <webResources>
44                         <resource>
45                             <directory>${project.build.directory}/generated/swagger-ui</directory>
46                         </resource>
47                     </webResources>
48                 </configuration>
49             </plugin>
50             <plugin>
51                 <groupId>com.github.kongchen</groupId>
52                 <artifactId>swagger-maven-plugin</artifactId>
53                 <version>${mvn.swagger.version}</version>
54                 <configuration>
55                     <apiSources>
56                         <apiSource>
57                             <springmvc>false</springmvc>
58                             <locations>org.onap.sdc.activityspec</locations>
59                             <schemes>http</schemes>
60                             <basePath>/activity-spec-api</basePath>
61                             <info>
62                                 <title>Activity Spec REST API Documentation</title>
63                                 <version>${project.version}</version>
64                                 <description>Activity Spec REST API Documentation</description>
65                                 <termsOfService>
66                                     http://www.github.com/kongchen/swagger-maven-plugin
67                                 </termsOfService>
68                             </info>
69                             <templatePath>${basedir}/templates/strapdown.html.hbs</templatePath>
70                             <outputPath>${project.build.directory}/generated/api.html</outputPath>
71                             <swaggerDirectory>${project.build.directory}/generated/swagger-ui</swaggerDirectory>
72                         </apiSource>
73                     </apiSources>
74                 </configuration>
75                 <executions>
76                     <execution>
77                         <phase>compile</phase>
78                         <goals>
79                             <goal>generate</goal>
80                         </goals>
81                     </execution>
82                 </executions>
83             </plugin>
84         </plugins>
85     </build>
86
87 </project>