Skip to content

Commit

Permalink
fix run using jfx jar can't find driver issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zouzg committed Jun 4, 2017
1 parent 7261c50 commit f38cd8f
Show file tree
Hide file tree
Showing 6 changed files with 242 additions and 210 deletions.
29 changes: 27 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.zzg</groupId>
<artifactId>mybatis-generator-gui</artifactId>
<version>0.7.2</version>
<version>0.8.0</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -68,10 +68,33 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<id>copy-files-on-build</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/classes/lib</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/lib</directory>
<include>*.jar</include>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.zenjava</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>8.5.0</version>
<version>8.8.3</version>
<configuration>
<mainClass>com.zzg.mybatis.generator.MainUI</mainClass>
<vendor>Owen Zou</vendor>
Expand All @@ -80,6 +103,8 @@
<nativeReleaseVersion>0.1</nativeReleaseVersion>
<needShortcut>true</needShortcut>
<needMenu>true</needMenu>
<copyAdditionalAppResourcesToJar>true</copyAdditionalAppResourcesToJar>
<additionalAppResources>${project.basedir}/src/main</additionalAppResources>
</configuration>
</plugin>
</plugins>
Expand Down
Loading

0 comments on commit f38cd8f

Please sign in to comment.