<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"> <modelVersion>4.0.0</modelVersion> <groupId>com.baeldung</groupId> <artifactId>activejdbc</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>activejdbc</name> <url>http://maven.apache.org</url> <parent> <artifactId>parent-modules</artifactId> <groupId>com.baeldung</groupId> <version>1.0.0-SNAPSHOT</version> </parent> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.javalite</groupId> <artifactId>activejdbc</artifactId> <version>${activejdbc.version}</version> <exclusions> <exclusion> <groupId>opensymphony</groupId> <artifactId>oscache</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysql.connector.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>${org.slf4j.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>${maven-compiler-plugin.version}</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.javalite</groupId> <artifactId>activejdbc-instrumentation</artifactId> <version>${activejdbc.version}</version> <executions> <execution> <phase>process-classes</phase> <goals> <goal>instrument</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.javalite</groupId> <artifactId>db-migrator-maven-plugin</artifactId> <version>${activejdbc.version}</version> <configuration> <configFile>${project.basedir}/src/main/resources/database.properties</configFile> <environments>${environments}</environments> </configuration> <dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysql.connector.version}</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${maven-surefire-plugin.version}</version> <configuration> <reportFormat>brief</reportFormat> <trimStackTrace>true</trimStackTrace> <useFile>false</useFile> <includes> <include>**/*Spec*.java</include> <include>**/*Test*.java</include> </includes> <excludes> <exclude>**/helpers/*</exclude> <exclude>**/*$*</exclude> </excludes> </configuration> </plugin> </plugins> </build> <repositories> <repository> <id>snapshots1</id> <name>JavaLite Snapshots1</name> <url>http://repo.javalite.io/</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>warn</checksumPolicy> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>snapshots2</id> <name>JavaLite Snapshots2</name> <url>http://repo.javalite.io/</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>warn</checksumPolicy> </snapshots> </pluginRepository> </pluginRepositories> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <activejdbc.version>1.4.13</activejdbc.version> <environments>development.test,development</environments> <org.slf4j.version>1.7.9</org.slf4j.version> <mysql.connector.version>5.1.34</mysql.connector.version> </properties> </project>