Merge "Initial code import"
[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.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         <version>2.4</version>
63         <classifier>jdk15</classifier>
64     </dependency>
65     <dependency>
66                 <groupId>junit</groupId>
67                 <artifactId>junit</artifactId>
68                 <scope>test</scope>
69         </dependency>   
70   </dependencies>
71   <build>
72     <plugins>
73       <plugin>
74         <groupId>org.apache.maven.plugins</groupId>
75         <artifactId>maven-jar-plugin</artifactId>
76         <version>2.4</version>
77         <configuration>
78           <archive>
79             <manifest>
80               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
81             </manifest>
82           </archive>
83         </configuration>
84       </plugin>
85       <plugin>
86         <groupId>org.apache.maven.plugins</groupId>
87         <artifactId>maven-shade-plugin</artifactId>
88         <version>2.3</version>
89         <configuration>
90           <createDependencyReducedPom>true</createDependencyReducedPom>
91           <filters>
92             <filter>
93               <artifact>*:*</artifact>
94               <excludes>
95                 <exclude>META-INF/*.SF</exclude>
96                 <exclude>META-INF/*.DSA</exclude>
97                 <exclude>META-INF/*.RSA</exclude>
98               </excludes>
99             </filter>
100           </filters>
101         </configuration>
102         <executions>
103           <execution>
104             <phase>package</phase>
105             <goals>
106               <goal>shade</goal>
107             </goals>
108             <configuration>
109               <transformers>
110                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
111                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
112                  <mainClass>org.openo.msb.ApiRouteApp</mainClass>
113                </transformer>
114              </transformers>
115            </configuration>
116          </execution>
117        </executions>
118      </plugin>
119             <!--plugin>
120                 <groupId>org.apache.maven.plugins</groupId>
121                 <artifactId>maven-dependency-plugin</artifactId>
122                 <executions>
123                     <execution>
124                       <id>copy-dependencies</id>
125                       <phase>package</phase>
126                       <goals>
127                           <goal>copy-dependencies</goal>
128                       </goals>                      
129                       <configuration>
130                         <artifactItems>
131                             <artifactItem>
132                              <groupId>io.dropwizard</groupId>
133                              <artifactId>dropwizard-core</artifactId>
134                              <version>${dropwizard.version}</version>
135                              <overWrite>true</overWrite>
136                          </artifactItem>             
137                      </artifactItems>
138                  </configuration>
139              </execution>  
140          </executions>
141        </plugin-->
142       <plugin>
143         <groupId>org.apache.maven.plugins</groupId>
144         <artifactId>maven-surefire-plugin</artifactId>
145         <configuration>
146           <skip>true</skip>
147         </configuration>
148       </plugin>
149      </plugins>
150      <resources>
151       <resource>
152         <directory>src/main/java</directory>
153         <includes>
154           <include>**/*.properties</include>
155         </includes>
156       </resource>
157       <resource>
158         <directory>src/main/resources</directory>
159       </resource>
160     </resources>
161   </build>
162 </project>