a34b5f09ff0b67f8e21f61ddde601ba129bb9467
[msb/apigateway.git] / msb-core / apiroute / apiroute-service / pom.xml
1 <?xml version="1.0"?>
2 <!--
3
4     Copyright 2016 ZTE Corporation.
5
6     Licensed under the Apache License, Version 2.0 (the "License");
7     you may not use this file except in compliance with the License.
8     You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12     Unless required by applicable law or agreed to in writing, software
13     distributed under the License is distributed on an "AS IS" BASIS,
14     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15     See the License for the specific language governing permissions and
16     limitations under the License.
17
18         Author: Zhaoxing Meng
19         email: meng.zhaoxing1@zte.com.cn
20
21 -->
22 <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">
23   <parent>
24     <groupId>org.openo.common-services.microservice-bus</groupId>
25     <artifactId>apiroute-parent</artifactId>
26     <version>1.0.0-SNAPSHOT</version>
27   </parent>
28   <modelVersion>4.0.0</modelVersion>
29   <artifactId>apiroute-service</artifactId>
30   <name>openo/msb/msb-core/apiroute/apiroute-service</name>
31   <packaging>jar</packaging>
32   <version>1.0.0-SNAPSHOT</version>
33
34
35   <dependencies>
36     <dependency>
37       <groupId>io.dropwizard</groupId>
38       <artifactId>dropwizard-core</artifactId>
39     </dependency>
40     <dependency>
41       <groupId>io.dropwizard</groupId>
42       <artifactId>dropwizard-assets</artifactId>
43     </dependency>
44     <dependency>
45       <groupId>io.dropwizard</groupId>
46       <artifactId>dropwizard-client</artifactId>
47     </dependency>
48     <dependency>
49       <groupId>io.swagger</groupId>
50       <artifactId>swagger-jersey2-jaxrs</artifactId>
51       <scope>compile</scope>
52     </dependency>
53     <!-- add by wangyg:增加redisçš„java客户端jedisä¾\9dèµ– -->
54     <dependency>
55       <groupId>redis.clients</groupId>
56       <artifactId>jedis</artifactId>
57     </dependency>
58     <dependency>
59       <groupId>org.projectlombok</groupId>
60       <artifactId>lombok</artifactId>
61     </dependency>
62     <dependency>
63         <groupId>net.sf.json-lib</groupId>
64         <artifactId>json-lib</artifactId>
65         <version>2.4</version>
66         <classifier>jdk15</classifier>
67     </dependency>
68     <dependency>
69         <groupId>junit</groupId>
70         <artifactId>junit</artifactId>
71         <scope>test</scope>
72     </dependency>
73   </dependencies>
74   <build>
75     <plugins>
76       <plugin>
77         <groupId>org.apache.maven.plugins</groupId>
78         <artifactId>maven-jar-plugin</artifactId>
79         <version>2.4</version>
80         <configuration>
81           <archive>
82             <manifest>
83               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
84             </manifest>
85           </archive>
86         </configuration>
87       </plugin>
88       <plugin>
89         <groupId>org.apache.maven.plugins</groupId>
90         <artifactId>maven-shade-plugin</artifactId>
91         <version>2.3</version>
92         <configuration>
93           <createDependencyReducedPom>true</createDependencyReducedPom>
94           <filters>
95             <filter>
96               <artifact>*:*</artifact>
97               <excludes>
98                 <exclude>META-INF/*.SF</exclude>
99                 <exclude>META-INF/*.DSA</exclude>
100                 <exclude>META-INF/*.RSA</exclude>
101               </excludes>
102             </filter>
103           </filters>
104         </configuration>
105         <executions>
106           <execution>
107             <phase>package</phase>
108             <goals>
109               <goal>shade</goal>
110             </goals>
111             <configuration>
112               <transformers>
113                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
114                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
115                  <mainClass>org.openo.msb.ApiRouteApp</mainClass>
116                </transformer>
117              </transformers>
118            </configuration>
119          </execution>
120        </executions>
121      </plugin>
122             <!--plugin>
123                 <groupId>org.apache.maven.plugins</groupId>
124                 <artifactId>maven-dependency-plugin</artifactId>
125                 <executions>
126                     <execution>
127                       <id>copy-dependencies</id>
128                       <phase>package</phase>
129                       <goals>
130                           <goal>copy-dependencies</goal>
131                       </goals>
132                       <configuration>
133                         <artifactItems>
134                             <artifactItem>
135                              <groupId>io.dropwizard</groupId>
136                              <artifactId>dropwizard-core</artifactId>
137                              <version>${dropwizard.version}</version>
138                              <overWrite>true</overWrite>
139                          </artifactItem>
140                      </artifactItems>
141                  </configuration>
142              </execution>
143          </executions>
144        </plugin-->
145       <plugin>
146         <groupId>org.apache.maven.plugins</groupId>
147         <artifactId>maven-surefire-plugin</artifactId>
148         <configuration>
149           <skip>true</skip>
150         </configuration>
151       </plugin>
152      </plugins>
153      <resources>
154       <resource>
155         <directory>src/main/java</directory>
156         <includes>
157           <include>**/*.properties</include>
158         </includes>
159       </resource>
160       <resource>
161         <directory>src/main/resources</directory>
162       </resource>
163     </resources>
164   </build>
165 </project>