adjust the code
[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         <distributionManagement>
45                 <repository>
46                         <id>releases</id>
47                         <url>http://113.200.115.170:4096/nexus/content/repositories/OPEN-O_Release</url>
48                 </repository>
49                 <snapshotRepository>
50                         <id>snapshots</id>
51                         <url>http://113.200.115.170:4096/nexus/content/repositories/OPEN-O_SnapShots</url>
52                 </snapshotRepository>
53         </distributionManagement>
54         <dependencyManagement>
55                 <dependencies>
56                         <dependency>
57                                 <groupId>commons-io</groupId>
58                                 <artifactId>commons-io</artifactId>
59                                 <version>2.4</version>
60                         </dependency>
61                         <dependency>
62                                 <groupId>org.apache.commons</groupId>
63                                 <artifactId>com.springsource.org.apache.commons.lang</artifactId>
64                                 <version>2.6.0</version>
65                         </dependency>
66                         <dependency>
67                                 <groupId>org.apache.commons</groupId>
68                                 <artifactId>com.springsource.org.apache.commons.logging</artifactId>
69                                 <version>1.1.1</version>
70                         </dependency>
71                         <dependency>
72                                 <groupId>org.apache.commons</groupId>
73                                 <artifactId>com.springsource.org.apache.commons.codec</artifactId>
74                                 <version>1.9.0</version>
75                         </dependency>
76
77                         <dependency>
78                                 <groupId>org.slf4j</groupId>
79                                 <artifactId>slf4j-api</artifactId>
80                                 <version>${slf4j.version}</version>
81                         </dependency>
82                         <dependency>
83                                 <groupId>org.slf4j</groupId>
84                                 <artifactId>com.springsource.slf4j.log4j</artifactId>
85                                 <version>${slf4j.version}</version>
86                         </dependency>
87                         <dependency>
88                                 <groupId>org.apache.log4j</groupId>
89                                 <artifactId>com.springsource.org.apache.log4j</artifactId>
90                                 <version>1.2.16</version>
91                         </dependency>
92                         <dependency>
93                                 <groupId>org.mybatis</groupId>
94                                 <artifactId>mybatis-spring</artifactId>
95                                 <version>1.2.0</version>
96                         </dependency>
97                         <dependency>
98                                 <groupId>org.mybatis</groupId>
99                                 <artifactId>mybatis</artifactId>
100                                 <version>3.2.7</version>
101                         </dependency>
102                         <dependency>
103                                 <groupId>org.apache.commons</groupId>
104                                 <artifactId>commons-lang3</artifactId>
105                                 <version>3.1</version>
106                         </dependency>
107                         <dependency>
108                                 <groupId>org.codehaus.jackson</groupId>
109                                 <artifactId>jackson-mapper-asl</artifactId>
110                                 <version>1.9.2</version>
111                         </dependency>
112                         <dependency>
113                                 <groupId>net.sf.json-lib</groupId>
114                                 <artifactId>json-lib</artifactId>
115                                 <version>2.4</version>
116                                 <classifier>jdk15</classifier>
117                         </dependency>
118                         <dependency>
119                                 <groupId>org.eclipse.jetty.aggregate</groupId>
120                             <artifactId>jetty-all</artifactId>
121                             <version>8.1.16.v20140903</version>
122                         </dependency>
123                         <dependency>
124                                 <groupId>org.eclipse.jetty.orbit</groupId>
125                                 <artifactId>javax.servlet</artifactId>
126                                 <version>3.0.0.v201112011016</version>
127                                 <scope>provided</scope>
128                         </dependency>
129                         <dependency>
130                                 <groupId>redis.clients</groupId>
131                                 <artifactId>jedis</artifactId>
132                                 <version>2.8.0</version>
133                         </dependency>
134                         <dependency>
135                                 <groupId>org.apache.commons</groupId>
136                                 <artifactId>commons-dbcp2</artifactId>
137                                 <version>2.0.1</version>
138                         </dependency>
139                         <dependency>
140                                 <groupId>org.codehaus.jackson</groupId>
141                                 <artifactId>jackson-mapper-asl</artifactId>
142                                 <version>1.9.2</version>
143                         </dependency>
144                 </dependencies>
145         </dependencyManagement>
146
147         <build>
148                 <resources>
149                         <resource>
150                                 <directory>${resources.dir}</directory>
151                         </resource>
152                         <resource>
153                                 <directory>${project.build.directory}/generated-resources</directory>
154                         </resource>
155                         <resource>
156                                 <directory>${basedir}/src/main/java</directory>
157                                 <excludes>
158                                         <exclude>**/*.java</exclude>
159                                 </excludes>
160                         </resource>
161                         <resource>
162                                 <directory>${basedir}/src/main/resources</directory>
163                         </resource>
164                 </resources>
165                 <testResources>
166                         <testResource>
167                                 <directory>${basedir}/src/test/java</directory>
168                                 <excludes>
169                                         <exclude>**/*.java</exclude>
170                                 </excludes>
171                         </testResource>
172                         <testResource>
173                                 <directory>${basedir}/src/test/resources</directory>
174                         </testResource>
175                 </testResources>
176                 <pluginManagement>
177                         <plugins>
178                                 <plugin>
179                                         <groupId>org.apache.maven.plugins</groupId>
180                                         <artifactId>maven-antrun-plugin</artifactId>
181                                         <version>1.6</version>
182                                         <dependencies>
183                                                 <dependency>
184                                                         <groupId>ant-contrib</groupId>
185                                                         <artifactId>ant-contrib</artifactId>
186                                                         <version>1.0b3</version>
187                                                         <exclusions>
188                                                                 <exclusion>
189                                                                         <groupId>ant</groupId>
190                                                                         <artifactId>ant</artifactId>
191                                                                 </exclusion>
192                                                         </exclusions>
193                                                 </dependency>
194                                                 <dependency>
195                                                         <groupId>com.google.js</groupId>
196                                                         <artifactId>closure-compiler</artifactId>
197                                                         <version>1.0.0</version>
198                                                 </dependency>
199                                                 <dependency>
200                                                         <groupId>com.google.closure-stylesheets</groupId>
201                                                         <artifactId>closure-stylesheets</artifactId>
202                                                         <version>20140426</version>
203                                                 </dependency>
204                                         </dependencies>
205                                 </plugin>
206                                 <plugin>
207                                         <groupId>org.apache.maven.plugins</groupId>
208                                         <artifactId>maven-clean-plugin</artifactId>
209                                         <version>2.4.1</version>
210                                 </plugin>
211                                 <plugin>
212                                         <groupId>org.apache.maven.plugins</groupId>
213                                         <artifactId>maven-release-plugin</artifactId>
214                                         <version>2.5.2</version>
215                                         <configuration>
216                                                 <checkModificationExcludes>
217                                                         <checkModificationExclude>**/*.java</checkModificationExclude>
218                                                 </checkModificationExcludes>
219                                                 <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
220                                         </configuration>
221                                 </plugin>
222
223                         </plugins>
224                 </pluginManagement>
225                 <plugins>
226                         <!--Release -->
227                         <plugin>
228                                 <groupId>org.apache.maven.plugins</groupId>
229                                 <artifactId>maven-release-plugin</artifactId>
230                         </plugin>
231
232                         <!--plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> 
233                                 <version>2.4-fixed</version> <configuration> <srcLocation>${srcLocation}</srcLocation> 
234                                 <classOutputDir>${classOutputDir}</classOutputDir> </configuration> </plugin -->
235
236                         <plugin>
237                                 <groupId>org.apache.maven.plugins</groupId>
238                                 <artifactId>maven-deploy-plugin</artifactId>
239                                 <version>2.7</version>
240                                 <configuration>
241                                         <retryFailedDeploymentCount>2</retryFailedDeploymentCount>
242                                 </configuration>
243                         </plugin>
244
245
246                         <!-- javadoc -->
247                         <plugin>
248                                 <groupId>org.apache.maven.plugins</groupId>
249                                 <artifactId>maven-javadoc-plugin</artifactId>
250                                 <version>2.6.1</version>
251                                 <configuration>
252                                         <aggregate>true</aggregate>
253                                         <stylesheetfile>${javadoc.loc}/javadoc.css</stylesheetfile>
254                                         <overview>${javadoc.loc}/overview.html</overview>
255                                         <excludePackageNames>org.apache.*,*.impl</excludePackageNames>
256                                         <breakiterator>true</breakiterator>
257                                         <quiet>true</quiet>
258                                         <failOnError>false</failOnError>
259                                         <verbose>false</verbose>
260                                         <show>protected</show>
261                                         <source>1.5</source>
262                                         <charset>gb2312</charset>
263                                         <encoding>UTF-8</encoding>
264                                         <docencoding>gb2312</docencoding>
265                                         <maxmemory>256M</maxmemory>
266                                 </configuration>
267                         </plugin>
268                         <plugin>
269                                 <groupId>org.apache.maven.plugins</groupId>
270                                 <artifactId>maven-compiler-plugin</artifactId>
271                                 <version>3.3</version>
272                                 <configuration>
273                                         <source>1.7</source>
274                                         <target>1.7</target>
275                                 </configuration>
276                         </plugin>
277                         <plugin>
278                                 <groupId>org.apache.maven.plugins</groupId>
279                                 <artifactId>maven-jar-plugin</artifactId>
280                                 <version>2.3.1</version>
281                                 <configuration>
282                                         <finalName>${bundle.name}</finalName>
283                                         <outputDirectory>${release.dir}</outputDirectory>
284                                 </configuration>
285                         </plugin>
286                         <!-- clean -->
287                         <plugin>
288                                 <artifactId>maven-clean-plugin</artifactId>
289                                 <configuration>
290                                         <failOnError>false</failOnError>
291                                         <filesets>
292                                                 <fileset>
293                                                         <directory>${release.dir}</directory>
294                                                         <includes>
295                                                                 <include>${bundle.name}.${project.packaging}</include>
296                                                         </includes>
297                                                 </fileset>
298                                         </filesets>
299                                 </configuration>
300                         </plugin>
301
302                 </plugins>
303         </build>
304         <reporting>
305                 <plugins>
306                         <plugin>
307                                 <groupId>org.apache.maven.plugins</groupId>
308                                 <artifactId>maven-javadoc-plugin</artifactId>
309                                 <version>2.6.1</version>
310                                 <configuration>
311                                         <aggregate>true</aggregate>
312                                         <quiet>true</quiet>
313                                         <show>public</show>
314                                 </configuration>
315                         </plugin>
316                 </plugins>
317         </reporting>
318
319 </project>