mybatis-guice
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-guice</artifactId>
<version>4.1.0</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2009-2025 the original author or authors.
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
https://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.
-->
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-parent</artifactId>
<version>51</version>
<relativePath />
</parent>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-guice</artifactId>
<version>4.1.0</version>
<name>mybatis-guice</name>
<description>The MyBatis Guice module is easy-to-use Google Guice bridge for MyBatis sql mapping framework.</description>
<url>https://mybatis.org/guice/</url>
<inceptionYear>2009</inceptionYear>
<contributors>
<contributor>
<name>Stephen Friedrich</name>
<email>stephen.friedrich@fortis-it.eu</email>
</contributor>
<contributor>
<name>Marzia Forli</name>
<email>marzia.forli@yahoo.com</email>
</contributor>
<contributor>
<name>Nino Martinez Wael</name>
<email>nino.martinez.wael@gmail.com</email>
</contributor>
<contributor>
<name>Brian Pontarelli</name>
<url>https://github.com/voidmain</url>
</contributor>
<contributor>
<name>Nathan Maves</name>
<url>https://github.com/nmaves</url>
</contributor>
</contributors>
<scm>
<connection>scm:git:ssh://git@github.com/mybatis/guice.git</connection>
<developerConnection>scm:git:ssh://git@github.com/mybatis/guice.git</developerConnection>
<tag>mybatis-guice-4.1.0</tag>
<url>http://github.com/mybatis/guice/</url>
</scm>
<issueManagement>
<system>GitHub Issue Management</system>
<url>https://github.com/mybatis/guice/issues</url>
</issueManagement>
<ciManagement>
<system>GitHub Actions</system>
<url>https://github.com/mybatis/guice/actions</url>
</ciManagement>
<distributionManagement>
<site>
<id>gh-pages-scm</id>
<name>Mybatis GitHub Pages</name>
<url>scm:git:ssh://git@github.com/mybatis/guice.git</url>
</site>
</distributionManagement>
<properties>
<!-- Java Usage -->
<java.version>11</java.version>
<java.release.version>11</java.release.version>
<!-- Versions -->
<agroal.version>2.2</agroal.version>
<annotation-api.version>3.0.0</annotation-api.version>
<byte-buddy.version>1.18.3</byte-buddy.version>
<clirr.comparisonVersion>3.10</clirr.comparisonVersion>
<derby.version>10.17.1.0</derby.version>
<ejb-api.version>4.0.1</ejb-api.version>
<guice.version>7.0.0</guice.version>
<inject-api.version>2.0.1</inject-api.version>
<metrics.version>4.2.37</metrics.version>
<mockito.version>5.21.0</mockito.version>
<slf4j.version>2.0.17</slf4j.version>
<!-- Analysis -->
<spotbugs.onlyAnalyze>org.mybatis.guice.*</spotbugs.onlyAnalyze>
<spotbugs.omitVisitors>UnreadFields</spotbugs.omitVisitors>
<!-- GCU Product -->
<gcu.product>Guice</gcu.product>
<!-- OSGI Headers -->
<osgi.import>com.alibaba.druid.pool.*;resolution:=optional,com.zaxxer.hikari.*;resolution:=optional,com.mchange.v2.c3p0.*;resolution:=optional,org.apache.commons.dbcp2.*;resolution:=optional,jakarta.transaction.*;resolution:=optional</osgi.import>
<!-- Automatic Module Name -->
<module.name>org.mybatis.guice</module.name>
<!-- Reproducible Builds -->
<project.build.outputTimestamp>1767046219</project.build.outputTimestamp>
<!-- Surefire Setup -->
<argLine>-javaagent:${settings.localRepository}/net/bytebuddy/byte-buddy-agent/${byte-buddy.version}/byte-buddy-agent-${byte-buddy.version}.jar</argLine>
</properties>
<dependencies>
<!--
| Provided dependencies
-->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.5.19</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>${guice.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.ejb</groupId>
<artifactId>jakarta.ejb-api</artifactId>
<version>${ejb-api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<version>${inject-api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.resource</groupId>
<artifactId>jakarta.resource-api</artifactId>
<version>2.1.0</version>
<scope>provided</scope>
</dependency>
<!--
| Optional dependencies
-->
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
<version>4.9.8</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.11.2</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.2.27</version>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>${annotation-api.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-dbcp2</artifactId>
<version>2.14.0</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.3.5</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>7.0.2</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>jakarta.transaction</groupId>
<artifactId>jakarta.transaction-api</artifactId>
<version>2.0.1</version>
<optional>true</optional>
</dependency>
<!--
| Test dependencies
-->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>6.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>${byte-buddy.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>${byte-buddy.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.7.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.narayana.jta</groupId>
<artifactId>narayana-jta</artifactId>
<version>7.3.3.Final</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.agroal</groupId>
<artifactId>agroal-api</artifactId>
<version>${agroal.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.agroal</groupId>
<artifactId>agroal-pool</artifactId>
<version>${agroal.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.agroal</groupId>
<artifactId>agroal-narayana</artifactId>
<version>${agroal.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
<version>3.6.1.Final</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>${derby.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derbyshared</artifactId>
<version>${derby.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derbyoptionaltools</artifactId>
<version>${derby.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<version>11.0.15</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-annotations-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>2.4.240</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-core</artifactId>
<version>${metrics.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-healthchecks</artifactId>
<version>${metrics.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<property>
<name>derby.stream.error.file</name>
<value>${project.build.directory}/derby.log</value>
</property>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>17</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<properties>
<derby.version>10.16.1.1</derby.version>
</properties>
</profile>
<profile>
<id>19</id>
<activation>
<jdk>[19,)</jdk>
</activation>
<properties>
<derby.version>10.17.1.0</derby.version>
</properties>
</profile>
</profiles>
</project>