pom.xml 13.0 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
S
Simone Tripodi 已提交
2 3
<!--

I
Iwao AVE! 已提交
4
       Copyright 2009-2021 the original author or authors.
S
Simone Tripodi 已提交
5

6 7 8 9 10 11 12 13 14 15 16
       Licensed under the Apache License, Version 2.0 (the "License");
       you may not use this file except in compliance with the License.
       You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       See the License for the specific language governing permissions and
       limitations under the License.
S
Simone Tripodi 已提交
17 18

-->
19
<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">
20 21
  <modelVersion>4.0.0</modelVersion>

22
  <parent>
23 24
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis-parent</artifactId>
25
    <version>33</version>
J
Jeremy Landis 已提交
26
    <relativePath />
27
  </parent>
28

29
  <artifactId>mybatis</artifactId>
30
  <version>3.5.8-SNAPSHOT</version>
31 32
  <packaging>jar</packaging>

J
Jeremy Landis 已提交
33
  <name>mybatis</name>
34
  <description>
E
Eduardo Macarron 已提交
35
    The MyBatis SQL mapper framework makes it easier to use a relational database with object-oriented
S
Simone Tripodi 已提交
36
    applications. MyBatis couples objects with stored procedures or SQL statements using a XML descriptor or
S
Simone Tripodi 已提交
37
    annotations. Simplicity is the biggest advantage of the MyBatis data mapper over object relational mapping
38 39
    tools.
  </description>
E
Eduardo Macarron 已提交
40
  <url>http://www.mybatis.org/mybatis-3</url>
41

42
  <inceptionYear>2009</inceptionYear>
43

44
  <contributors>
E
Eduardo Macarron 已提交
45 46 47 48
    <contributor>
      <name>Adam Gent</name>
      <email>adam.gent@evocatus.com</email>
    </contributor>
49
    <contributor>
S
Simone Tripodi 已提交
50 51
      <name>Andrea Selva</name>
      <email>selva.andre@gmail.com</email>
52
    </contributor>
53
    <contributor>
54
      <name>Antonio Sánchez</name>
55 56
      <email>juntandolineas@gmail.com</email>
    </contributor>
57
    <contributor>
S
Simone Tripodi 已提交
58 59
      <name>Arkadi Shishlov</name>
      <email>arkadi.shishlov@gmail.com</email>
S
Simone Tripodi 已提交
60
    </contributor>
61 62 63 64
    <contributor>
      <name>Axel Doerfler</name>
      <email>axel.doerfler@gmail.com</email>
    </contributor>
65 66 67 68
    <contributor>
      <name>Chris Dadej</name>
      <email>chris.dadej@gmail.com</email>
    </contributor>
69 70 71
    <contributor>
      <name>Denis Vygovskiy</name>
      <email>qizant@gmail.com</email>
72
    </contributor>
73
    <contributor>
S
Simone Tripodi 已提交
74
      <name>Franta Mejta</name>
E
Eduardo Macarron 已提交
75
      <email>mejta@rewor.cz</email>
76
    </contributor>
77
    <contributor>
S
Simone Tripodi 已提交
78 79
      <name>Jurriaan Pruys</name>
      <email>jurriaan@pruys.com</email>
80
    </contributor>
81
    <contributor>
82 83
      <name>Keith Wong</name>
      <email>wongkwl@gmail.com</email>
84
    </contributor>
E
credit!  
Eduardo Macarron 已提交
85 86 87 88
    <contributor>
      <name>Lasse Voss</name>
      <email>lasse.voss@motor-talk-gmbh.de</email>
    </contributor>
89 90 91
    <contributor>
      <name>Luke Stevens</name>
      <email>nosuchluke@gmail.com</email>
E
Eduardo Macarron 已提交
92
    </contributor>
93 94 95 96
    <contributor>
      <name>Paul Krause</name>
      <email>paulkrause88@alum.mit.edu</email>
    </contributor>
97 98 99 100
    <contributor>
      <name>Peter Leibiger</name>
      <email>kuhnroyal@gmail.com</email>
    </contributor>
101
    <contributor>
S
Simone Tripodi 已提交
102 103
      <name>Riccardo Cossu</name>
      <email>riccardo.cossu@gmail.com</email>
104
    </contributor>
105
    <contributor>
106
      <name>Tomáš Neuberg</name>
107 108
      <email>neuberg@m-atelier.cz</email>
    </contributor>
109
  </contributors>
110 111

  <scm>
E
eduardo 已提交
112 113
    <url>http://github.com/mybatis/mybatis-3</url>
    <connection>scm:git:ssh://github.com/mybatis/mybatis-3.git</connection>
E
Eduardo Macarron 已提交
114
    <developerConnection>scm:git:ssh://git@github.com/mybatis/mybatis-3.git</developerConnection>
115
    <tag>HEAD</tag>
116
  </scm>
E
eduardo 已提交
117 118 119 120 121 122 123 124
  <issueManagement>
    <system>GitHub Issue Management</system>
    <url>https://github.com/mybatis/mybatis-3/issues</url>
  </issueManagement>
  <ciManagement>
    <system>Travis CI</system>
    <url>https://travis-ci.org/mybatis/mybatis-3/</url>
  </ciManagement>
125 126
  <distributionManagement>
    <site>
127 128
      <id>gh-pages</id>
      <name>Mybatis GitHub Pages</name>
J
Jeremy Landis 已提交
129
      <url>git:ssh://git@github.com/mybatis/mybatis-3.git?gh-pages#</url>
130 131 132
    </site>
  </distributionManagement>

133
  <properties>
134
    <clirr.comparisonVersion>3.4.6</clirr.comparisonVersion>
135
    <excludedGroups>TestcontainersTests</excludedGroups>
136
    <maven.compiler.testCompilerArgument>-parameters</maven.compiler.testCompilerArgument>
137
    <module.name>org.mybatis</module.name>
S
Simone Tripodi 已提交
138
    <osgi.export>org.apache.ibatis.*;version=${project.version};-noimport:=true</osgi.export>
139
    <osgi.import>*;resolution:=optional</osgi.import>
140
    <osgi.dynamicImport>*</osgi.dynamicImport>
141
    <spotbugs.onlyAnalyze>org.apache.ibatis.*</spotbugs.onlyAnalyze>
142
  </properties>
143 144 145 146 147

  <dependencies>
    <dependency>
      <groupId>ognl</groupId>
      <artifactId>ognl</artifactId>
148
      <version>3.2.21</version>
J
Jeremy Landis 已提交
149
      <scope>compile</scope>
150 151
      <optional>true</optional>
    </dependency>
152 153 154
    <dependency>
      <groupId>org.javassist</groupId>
      <artifactId>javassist</artifactId>
155
      <version>3.28.0-GA</version>
J
Jeremy Landis 已提交
156
      <scope>compile</scope>
157 158
      <optional>true</optional>
    </dependency>
159 160 161
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
162
      <version>1.7.32</version>
163 164 165 166 167
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
168
      <version>1.7.32</version>
169 170 171 172 173
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
E
Eduardo Macarron 已提交
174
      <version>1.2.17</version>
175 176
      <optional>true</optional>
    </dependency>
177 178 179
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
180
      <version>2.14.1</version>
181
      <optional>true</optional>
E
Eduardo Macarron 已提交
182
    </dependency>
183 184 185
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
J
Jeremy Landis 已提交
186
      <version>1.2</version>
187 188 189 190 191
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>cglib</groupId>
      <artifactId>cglib</artifactId>
192
      <version>3.3.0</version>
193 194
      <optional>true</optional>
    </dependency>
E
eduardo 已提交
195

196 197
    <!-- Test dependencies -->
    <dependency>
198 199
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
200
      <version>5.7.2</version>
201 202 203 204 205
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hsqldb</groupId>
      <artifactId>hsqldb</artifactId>
206
      <version>2.5.1</version>
207 208
      <scope>test</scope>
    </dependency>
K
Kazuki Shimizu 已提交
209
    <dependency> <!-- 10.15+ need Java 9+ -->
210 211
      <groupId>org.apache.derby</groupId>
      <artifactId>derby</artifactId>
212
      <version>10.14.2.0</version>
213 214
      <scope>test</scope>
    </dependency>
215 216 217
    <dependency>
      <groupId>com.h2database</groupId>
      <artifactId>h2</artifactId>
218
      <version>1.4.200</version>
219 220
      <scope>test</scope>
    </dependency>
E
eduardo 已提交
221 222 223
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
224
      <version>3.11.2</version>
225
      <scope>test</scope>
E
eduardo 已提交
226
    </dependency>
227 228 229
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-junit-jupiter</artifactId>
230
      <version>3.11.2</version>
231 232
      <scope>test</scope>
    </dependency>
233 234
    <dependency>
      <groupId>org.apache.velocity</groupId>
235
      <artifactId>velocity-engine-core</artifactId>
236
      <version>2.3</version>
237 238
      <scope>test</scope>
    </dependency>
239 240
    <!-- postgresql driver is required to run the refcursor tests -->
    <dependency>
241
      <groupId>org.postgresql</groupId>
242
      <artifactId>postgresql</artifactId>
243
      <version>42.2.23</version>
244 245
      <scope>test</scope>
    </dependency>
I
Iwao AVE! 已提交
246 247 248
    <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
249
      <version>8.0.26</version>
I
Iwao AVE! 已提交
250 251
      <scope>test</scope>
    </dependency>
252 253 254
    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
255
      <version>3.20.2</version>
256 257 258 259 260
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>eu.codearte.catch-exception</groupId>
      <artifactId>catch-exception</artifactId>
261
      <version>2.0</version>
262 263
      <scope>test</scope>
    </dependency>
264
    <dependency>
265 266
      <groupId>org.testcontainers</groupId>
      <artifactId>junit-jupiter</artifactId>
267
      <version>1.16.0</version>
268 269 270 271 272
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>postgresql</artifactId>
273
      <version>1.16.0</version>
I
Iwao AVE! 已提交
274 275 276 277 278
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>mysql</artifactId>
279
      <version>1.16.0</version>
280 281
      <scope>test</scope>
    </dependency>
282 283 284 285
    <!-- For javadoc link -->
    <dependency>
      <groupId>com.microsoft.sqlserver</groupId>
      <artifactId>mssql-jdbc</artifactId>
286
      <version>9.4.0.jre8</version>
287 288
      <scope>provided</scope>
    </dependency>
289 290
  </dependencies>

291 292
  <build>
    <plugins>
293 294 295 296 297 298 299
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <testCompilerArgument>${maven.compiler.testCompilerArgument}</testCompilerArgument>
        </configuration>
      </plugin>
J
Jeremy Landis 已提交
300 301 302 303
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
304
          <argLine>${argLine} -Xmx2048m</argLine>
J
Jeremy Landis 已提交
305 306 307
          <systemProperties>
            <property>
              <name>derby.stream.error.file</name>
308
              <value>${project.build.directory}/derby.log</value>
J
Jeremy Landis 已提交
309
            </property>
310 311 312 313
            <property>
              <name>derby.system.home</name>
              <value>${project.build.directory}</value>
            </property>
J
Jeremy Landis 已提交
314
          </systemProperties>
J
Jeremy Landis 已提交
315 316
        </configuration>
      </plugin>
S
Simone Tripodi 已提交
317 318 319 320
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pdf-plugin</artifactId>
      </plugin>
321
      <plugin>
J
Jeremy Landis 已提交
322 323
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
324 325
        <executions>
          <execution>
J
Jeremy Landis 已提交
326
            <phase>package</phase>
327
            <goals>
J
Jeremy Landis 已提交
328
              <goal>shade</goal>
329 330
            </goals>
            <configuration>
331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
              <createDependencyReducedPom>false</createDependencyReducedPom>
              <artifactSet>
                <includes>
                  <include>org.mybatis:mybatis</include>
                  <include>ognl:ognl</include>
                  <include>org.javassist:javassist</include>
                </includes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>ognl</pattern>
                  <shadedPattern>org.apache.ibatis.ognl</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>javassist</pattern>
                  <shadedPattern>org.apache.ibatis.javassist</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
352
      </plugin>
353
      <plugin>
354
        <groupId>org.apache.maven.plugins</groupId>
S
Simone Tripodi 已提交
355 356
        <artifactId>maven-site-plugin</artifactId>
        <configuration>
357
          <locales>en,es,ja,fr,zh_CN,ko</locales>
S
Simone Tripodi 已提交
358
        </configuration>
359
      </plugin>
360 361 362 363
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <configuration>
364 365 366 367
          <excludes>
            <exclude>org.apache.ibatis.ognl.*</exclude>
            <exclude>org.apache.ibatis.javassist.*</exclude>
          </excludes>
368
        </configuration>
369 370
      </plugin>
    </plugins>
371

372 373
    <resources>
      <resource>
J
Jeremy Landis 已提交
374
        <directory>${project.basedir}</directory>
375 376 377 378 379 380 381 382
        <targetPath>META-INF</targetPath>
        <includes>
          <include>LICENSE</include>
          <include>NOTICE</include>
        </includes>
      </resource>
      <resource>
        <directory>${project.build.sourceDirectory}</directory>
383 384 385 386 387 388 389
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
    </resources>
    <testResources>
      <testResource>
390
        <directory>${project.build.testSourceDirectory}</directory>
391 392 393 394 395 396
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </testResource>
    </testResources>
  </build>
397

398 399
  <profiles>
    <profile>
400
      <!-- Run slow tests only on travis ci, to force run otherwise use -D"env.TRAVIS" -->
401 402 403 404 405 406 407
      <id>travis-ci</id>
      <activation>
        <property>
          <name>env.TRAVIS</name>
        </property>
      </activation>
      <properties>
408
        <excludedGroups />
409
      </properties>
410 411 412
    </profile>
  </profiles>

413 414 415 416 417 418 419 420 421
  <!-- Will remove after released mybatis-parent 32+ (See https://github.com/mybatis/mybatis-3/issues/1926) -->
  <repositories>
    <repository>
      <id>sonatype-oss-snapshots</id>
      <name>Sonatype OSS Snapshots Repository</name>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </repository>
  </repositories>

422
</project>