<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>

  <parent>
    <groupId>com.lwohvye.log4jdbc-log4j2</groupId>
    <artifactId>log4jdbc-log4j2</artifactId>
    <version>1.18</version>
  </parent>

  <artifactId>log4jdbc-log4j2-jdbc4.1</artifactId>
  <packaging>jar</packaging>
  <name>log4jdbc-log4j2-jdbc4.1</name>

  <dependencies>

  </dependencies>

  <!-- in order to compile with JDK 1.7 -->
  <build>
      <plugins>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>3.10.1</version>
              <configuration>
                  <!--
                  Here we assume that the default JDK version on the machine compiling the project
                  is 1.7. Otherwise, you need to provide the path to the JDK 1.7
                  (see for instance the pom.xml in log4jdbc-log4j2-jdbc4, using a JDK 1.6)
                  -->
                  <source>1.8</source>
                  <target>1.8</target>
                  <compilerVersion>1.8</compilerVersion>
                  <fork>true</fork>
                  <!--
                  You need to set up the path to a JDK 1.7 in the Maven settings.xml file,
                  as explained here: https://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html
                  For instance:
                       <profile>
                         <id>compiler</id>
                           <properties>
                             <JAVA_1_7_HOME>/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home</JAVA_1_7_HOME>
                             <JAVA_1_7_BOOTCLASSPATH>/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/lib/*.jar</JAVA_1_7_BOOTCLASSPATH>
                           </properties>
                       </profile>
                       [...]
                       <activeProfiles>
                         <activeProfile>compiler</activeProfile>
                       </activeProfiles>
                   -->
                  <verbose>true</verbose>
              </configuration>
          </plugin>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-jar-plugin</artifactId>
              <version>3.2.2</version>
              <configuration>
                  <archive>
                      <manifestEntries>
                          <Automatic-Module-Name>com.lwohvye.log4jdbc_log4j2</Automatic-Module-Name>
                      </manifestEntries>
                  </archive>
              </configuration>
          </plugin>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-surefire-plugin</artifactId>
              <version>2.22.2</version>
              <configuration>
                  <skipTests>true</skipTests>
              </configuration>
          </plugin>
      </plugins>
      <finalName>log4jdbc-log4j2-jdbc4.1-${project.version}</finalName>
  </build>

</project>
