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