generate proxies with Java 1.8

pull/2026/head
Brett Wooldridge 5 years ago
parent c8d3937c80
commit 29988f2543

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
<toolchain>
<type>paths</type>
<provides>
<!-- Defines the folders to search for binaries of the "foo-bar" toolset -->
<id>javac</id>
</provides>
<configuration>
<paths>
<path>/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/bin</path>
</paths>
</configuration>
</toolchain>
</toolchains>

@ -269,22 +269,65 @@
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<paths>
<id>javac</id>
</paths>
</toolchains>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>build-classpath</goal>
</goals>
<configuration>
<outputProperty>maven.compile.classpath</outputProperty>
</configuration>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<!-- Generate proxies --> <!-- Generate proxies -->
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version> <version>1.6.0</version>
<extensions>true</extensions>
<executions> <executions>
<execution> <execution>
<phase>compile</phase> <phase>compile</phase>
<!-- phase>generate-test-sources</phase --> <!-- phase>generate-test-sources</phase -->
<goals> <goals>
<goal>java</goal> <goal>exec</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
<configuration> <configuration>
<mainClass>com.zaxxer.hikari.util.JavassistProxyFactory</mainClass> <toolchain>paths</toolchain>
<executable>java</executable>
<arguments>
<argument>-cp</argument>
<argument>${project.build.outputDirectory}:${maven.compile.classpath}</argument>
<argument>com.zaxxer.hikari.util.JavassistProxyFactory</argument>
</arguments>
</configuration> </configuration>
</plugin> </plugin>
@ -454,7 +497,6 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version> <version>3.8.1</version>
<extensions>true</extensions>
<configuration> <configuration>
<source>1.8</source> <source>1.8</source>
<target>1.8</target> <target>1.8</target>

Loading…
Cancel
Save