Initial code import
[msb/apigateway.git] / 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.msb.msb-core.apiroute</groupId>
21     <artifactId>apiroute-parent</artifactId>
22     <version>1.0.0-SNAPSHOT</version>      
23   </parent>
24   <modelVersion>4.0.0</modelVersion>
25   <groupId>org.openo.msb.msb-core.apiroute</groupId>
26   <artifactId>apiroute-service</artifactId>
27   <name>openo/msb/msb-core/apiroute/apiroute-service</name>
28   <packaging>jar</packaging>
29   <version>1.0.0-SNAPSHOT</version>
30   
31
32   <dependencies>
33     <dependency>
34       <groupId>io.dropwizard</groupId>
35       <artifactId>dropwizard-core</artifactId>
36     </dependency>
37     <dependency>
38       <groupId>io.dropwizard</groupId>
39       <artifactId>dropwizard-assets</artifactId>
40     </dependency>
41     <dependency>
42       <groupId>io.dropwizard</groupId>
43       <artifactId>dropwizard-client</artifactId>
44     </dependency>   
45     <dependency>
46       <groupId>io.swagger</groupId>
47       <artifactId>swagger-jersey2-jaxrs</artifactId>
48       <scope>compile</scope>
49     </dependency>
50     <!-- add by wangyg:增加redis的java客户端jedis依赖 -->
51     <dependency>
52       <groupId>redis.clients</groupId>
53       <artifactId>jedis</artifactId>
54     </dependency>
55     <dependency>
56       <groupId>org.projectlombok</groupId>
57       <artifactId>lombok</artifactId>
58     </dependency>
59     <dependency> 
60       <groupId>net.sf.json-lib</groupId> 
61       <artifactId>json-lib</artifactId> 
62     </dependency> 
63     <dependency>
64                 <groupId>junit</groupId>
65                 <artifactId>junit</artifactId>
66                 <scope>test</scope>
67         </dependency>   
68   </dependencies>
69   <build>
70     <plugins>
71       <plugin>
72         <groupId>org.apache.maven.plugins</groupId>
73         <artifactId>maven-jar-plugin</artifactId>
74         <version>2.4</version>
75         <configuration>
76           <archive>
77             <manifest>
78               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
79             </manifest>
80           </archive>
81         </configuration>
82       </plugin>
83       <plugin>
84         <groupId>org.apache.maven.plugins</groupId>
85         <artifactId>maven-shade-plugin</artifactId>
86         <version>2.3</version>
87         <configuration>
88           <createDependencyReducedPom>true</createDependencyReducedPom>
89           <filters>
90             <filter>
91               <artifact>*:*</artifact>
92               <excludes>
93                 <exclude>META-INF/*.SF</exclude>
94                 <exclude>META-INF/*.DSA</exclude>
95                 <exclude>META-INF/*.RSA</exclude>
96               </excludes>
97             </filter>
98           </filters>
99         </configuration>
100         <executions>
101           <execution>
102             <phase>package</phase>
103             <goals>
104               <goal>shade</goal>
105             </goals>
106             <configuration>
107               <transformers>
108                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
109                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
110                  <mainClass>org.openo.msb.ApiRouteApp</mainClass>
111                </transformer>
112              </transformers>
113            </configuration>
114          </execution>
115        </executions>
116      </plugin>
117             <!--plugin>
118                 <groupId>org.apache.maven.plugins</groupId>
119                 <artifactId>maven-dependency-plugin</artifactId>
120                 <executions>
121                     <execution>
122                       <id>copy-dependencies</id>
123                       <phase>package</phase>
124                       <goals>
125                           <goal>copy-dependencies</goal>
126                       </goals>                      
127                       <configuration>
128                         <artifactItems>
129                             <artifactItem>
130                              <groupId>io.dropwizard</groupId>
131                              <artifactId>dropwizard-core</artifactId>
132                              <version>${dropwizard.version}</version>
133                              <overWrite>true</overWrite>
134                          </artifactItem>             
135                      </artifactItems>
136                  </configuration>
137              </execution>  
138          </executions>
139        </plugin-->
140       <plugin>
141         <groupId>org.apache.maven.plugins</groupId>
142         <artifactId>maven-surefire-plugin</artifactId>
143         <configuration>
144           <skip>true</skip>
145         </configuration>
146       </plugin>
147      </plugins>
148      <resources>
149       <resource>
150         <directory>src/main/java</directory>
151         <includes>
152           <include>**/*.properties</include>
153         </includes>
154       </resource>
155       <resource>
156         <directory>src/main/resources</directory>
157       </resource>
158     </resources>
159   </build>
160 </project>