Make necessary changes to build common-services-common-utilities
[vfc/nfvo/wfengine.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Copyright (c) 2016, Huawei Technologies Co., Ltd.
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 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19         <modelVersion>4.0.0</modelVersion>
20         <groupId>org.openo.baseservice</groupId>
21         <artifactId>common-setting</artifactId>
22         <version>1.0.1-SNAPSHOT</version>
23         <packaging>pom</packaging>
24         <name>common-setting</name>
25
26         <properties>
27                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
28                 <maven.test.skip>false</maven.test.skip>
29                 <maven.test.failure.ignore>false</maven.test.failure.ignore>
30                 <finalName>${project.artifactId}-${project.version}</finalName>
31                 <release.dir>${basedir}/target</release.dir>
32                 <slf4j.version>1.6.1</slf4j.version>
33
34
35                 <bundle.name>${project.artifactId}-${project.version}</bundle.name>
36                 <pkgzip.dir>${basedir}/../release/pkgzip</pkgzip.dir>
37                 <excludesFile>**/*$*</excludesFile>
38         </properties>
39     <modules>
40         <module>common-util</module>
41         <module>rest-client</module>
42     </modules>
43
44         <dependencyManagement>
45                 <dependencies>
46                         <dependency>
47                                 <groupId>commons-io</groupId>
48                                 <artifactId>commons-io</artifactId>
49                                 <version>2.4</version>
50                         </dependency>
51                         <dependency>
52                                 <groupId>org.apache.commons</groupId>
53                                 <artifactId>org.apache.commons.lang</artifactId>
54                                 <version>2.6.0</version>
55                         </dependency>
56                         <dependency>
57                                 <groupId>org.apache.commons</groupId>
58                                 <artifactId>org.apache.commons.logging</artifactId>
59                                 <version>1.1.1</version>
60                         </dependency>
61                         <dependency>
62                                 <groupId>org.apache.commons</groupId>
63                                 <artifactId>org.apache.commons.codec</artifactId>
64                                 <version>1.9.0</version>
65                         </dependency>
66
67                         <dependency>
68                                 <groupId>org.slf4j</groupId>
69                                 <artifactId>slf4j-api</artifactId>
70                                 <version>${slf4j.version}</version>
71                         </dependency>
72                         <dependency>
73                                 <groupId>org.slf4j</groupId>
74                                 <artifactId>slf4j-log4j12</artifactId>
75                                 <version>${slf4j.version}</version>
76                         </dependency>
77                         <dependency>
78                                 <groupId>log4j</groupId>
79                                 <artifactId>log4j</artifactId>
80                                 <version>1.2.16</version>
81                         </dependency>
82                         <dependency>
83                                 <groupId>org.mybatis</groupId>
84                                 <artifactId>mybatis-spring</artifactId>
85                                 <version>1.2.0</version>
86                         </dependency>
87                         <dependency>
88                                 <groupId>org.mybatis</groupId>
89                                 <artifactId>mybatis</artifactId>
90                                 <version>3.2.7</version>
91                         </dependency>
92                         <dependency>
93                                 <groupId>org.apache.commons</groupId>
94                                 <artifactId>commons-lang3</artifactId>
95                                 <version>3.1</version>
96                         </dependency>
97                         <dependency>
98                                 <groupId>org.codehaus.jackson</groupId>
99                                 <artifactId>jackson-mapper-asl</artifactId>
100                                 <version>1.9.2</version>
101                         </dependency>
102                         <dependency>
103                                 <groupId>net.sf.json-lib</groupId>
104                                 <artifactId>json-lib</artifactId>
105                                 <version>2.4</version>
106                                 <classifier>jdk15</classifier>
107                         </dependency>
108                         <dependency>
109                                 <groupId>org.eclipse.jetty.aggregate</groupId>
110                             <artifactId>jetty-all</artifactId>
111                             <version>8.1.16.v20140903</version>
112                         </dependency>
113                         <dependency>
114                                 <groupId>org.eclipse.jetty.orbit</groupId>
115                                 <artifactId>javax.servlet</artifactId>
116                                 <version>3.0.0.v201112011016</version>
117                                 <scope>provided</scope>
118                         </dependency>
119                         <dependency>
120                                 <groupId>redis.clients</groupId>
121                                 <artifactId>jedis</artifactId>
122                                 <version>2.8.0</version>
123                         </dependency>
124                         <dependency>
125                                 <groupId>org.apache.commons</groupId>
126                                 <artifactId>commons-dbcp2</artifactId>
127                                 <version>2.0.1</version>
128                         </dependency>
129                         <dependency>
130                                 <groupId>org.codehaus.jackson</groupId>
131                                 <artifactId>jackson-mapper-asl</artifactId>
132                                 <version>1.9.2</version>
133                         </dependency>
134                 </dependencies>
135         </dependencyManagement>
136
137         <build>
138                 <resources>
139                         <resource>
140                                 <directory>${resources.dir}</directory>
141                         </resource>
142                         <resource>
143                                 <directory>${project.build.directory}/generated-resources</directory>
144                         </resource>
145                         <resource>
146                                 <directory>${basedir}/src/main/java</directory>
147                                 <excludes>
148                                         <exclude>**/*.java</exclude>
149                                 </excludes>
150                         </resource>
151                         <resource>
152                                 <directory>${basedir}/src/main/resources</directory>
153                         </resource>
154                 </resources>
155                 <testResources>
156                         <testResource>
157                                 <directory>${basedir}/src/test/java</directory>
158                                 <excludes>
159                                         <exclude>**/*.java</exclude>
160                                 </excludes>
161                         </testResource>
162                         <testResource>
163                                 <directory>${basedir}/src/test/resources</directory>
164                         </testResource>
165                 </testResources>
166                 <pluginManagement>
167                         <plugins>
168                                 <plugin>
169                                         <groupId>org.apache.maven.plugins</groupId>
170                                         <artifactId>maven-antrun-plugin</artifactId>
171                                         <version>1.6</version>
172                                         <dependencies>
173                                                 <dependency>
174                                                         <groupId>ant-contrib</groupId>
175                                                         <artifactId>ant-contrib</artifactId>
176                                                         <version>1.0b3</version>
177                                                         <exclusions>
178                                                                 <exclusion>
179                                                                         <groupId>ant</groupId>
180                                                                         <artifactId>ant</artifactId>
181                                                                 </exclusion>
182                                                         </exclusions>
183                                                 </dependency>
184                                                 <dependency>
185                                                         <groupId>com.google.js</groupId>
186                                                         <artifactId>closure-compiler</artifactId>
187                                                         <version>1.0.0</version>
188                                                 </dependency>
189                                                 <dependency>
190                                                         <groupId>com.google.closure-stylesheets</groupId>
191                                                         <artifactId>closure-stylesheets</artifactId>
192                                                         <version>20140426</version>
193                                                 </dependency>
194                                         </dependencies>
195                                 </plugin>
196                                 <plugin>
197                                         <groupId>org.apache.maven.plugins</groupId>
198                                         <artifactId>maven-clean-plugin</artifactId>
199                                         <version>2.4.1</version>
200                                 </plugin>
201                                 <plugin>
202                                         <groupId>org.apache.maven.plugins</groupId>
203                                         <artifactId>maven-release-plugin</artifactId>
204                                         <version>2.5.2</version>
205                                         <configuration>
206                                                 <checkModificationExcludes>
207                                                         <checkModificationExclude>**/*.java</checkModificationExclude>
208                                                 </checkModificationExcludes>
209                                                 <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
210                                         </configuration>
211                                 </plugin>
212
213                         </plugins>
214                 </pluginManagement>
215                 <plugins>
216                         <!--Release -->
217                         <plugin>
218                                 <groupId>org.apache.maven.plugins</groupId>
219                                 <artifactId>maven-release-plugin</artifactId>
220                         </plugin>
221
222                         <!--plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> 
223                                 <version>2.4-fixed</version> <configuration> <srcLocation>${srcLocation}</srcLocation> 
224                                 <classOutputDir>${classOutputDir}</classOutputDir> </configuration> </plugin -->
225
226                         <plugin>
227                                 <groupId>org.apache.maven.plugins</groupId>
228                                 <artifactId>maven-deploy-plugin</artifactId>
229                                 <version>2.7</version>
230                                 <configuration>
231                                         <retryFailedDeploymentCount>2</retryFailedDeploymentCount>
232                                 </configuration>
233                         </plugin>
234
235
236                         <!-- javadoc -->
237                         <plugin>
238                                 <groupId>org.apache.maven.plugins</groupId>
239                                 <artifactId>maven-javadoc-plugin</artifactId>
240                                 <version>2.6.1</version>
241                                 <configuration>
242                                         <aggregate>true</aggregate>
243                                         <stylesheetfile>${javadoc.loc}/javadoc.css</stylesheetfile>
244                                         <overview>${javadoc.loc}/overview.html</overview>
245                                         <excludePackageNames>org.apache.*,*.impl</excludePackageNames>
246                                         <breakiterator>true</breakiterator>
247                                         <quiet>true</quiet>
248                                         <failOnError>false</failOnError>
249                                         <verbose>false</verbose>
250                                         <show>protected</show>
251                                         <source>1.5</source>
252                                         <charset>gb2312</charset>
253                                         <encoding>UTF-8</encoding>
254                                         <docencoding>gb2312</docencoding>
255                                         <maxmemory>256M</maxmemory>
256                                 </configuration>
257                         </plugin>
258                         <plugin>
259                                 <groupId>org.apache.maven.plugins</groupId>
260                                 <artifactId>maven-compiler-plugin</artifactId>
261                                 <version>3.3</version>
262                                 <configuration>
263                                         <source>1.7</source>
264                                         <target>1.7</target>
265                                 </configuration>
266                         </plugin>
267                         <plugin>
268                                 <groupId>org.apache.maven.plugins</groupId>
269                                 <artifactId>maven-jar-plugin</artifactId>
270                                 <version>2.3.1</version>
271                                 <configuration>
272                                         <finalName>${bundle.name}</finalName>
273                                         <outputDirectory>${release.dir}</outputDirectory>
274                                 </configuration>
275                         </plugin>
276                         <!-- clean -->
277                         <plugin>
278                                 <artifactId>maven-clean-plugin</artifactId>
279                                 <configuration>
280                                         <failOnError>false</failOnError>
281                                         <filesets>
282                                                 <fileset>
283                                                         <directory>${release.dir}</directory>
284                                                         <includes>
285                                                                 <include>${bundle.name}.${project.packaging}</include>
286                                                         </includes>
287                                                 </fileset>
288                                         </filesets>
289                                 </configuration>
290                         </plugin>
291
292                 </plugins>
293         </build>
294         <reporting>
295                 <plugins>
296                         <plugin>
297                                 <groupId>org.apache.maven.plugins</groupId>
298                                 <artifactId>maven-javadoc-plugin</artifactId>
299                                 <version>2.6.1</version>
300                                 <configuration>
301                                         <aggregate>true</aggregate>
302                                         <quiet>true</quiet>
303                                         <show>public</show>
304                                 </configuration>
305                         </plugin>
306                 </plugins>
307         </reporting>
308
309 </project>