pom.xml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.msw</groupId>
  5. <artifactId>export-database-structure</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <packaging>jar</packaging>
  8. <name>export-database-structure</name>
  9. <url>http://maven.apache.org</url>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <encoding>UTF-8</encoding>
  13. <java.version>1.8</java.version>
  14. </properties>
  15. <dependencies>
  16. <dependency>
  17. <groupId>junit</groupId>
  18. <artifactId>junit</artifactId>
  19. <version>4.12</version>
  20. <scope>test</scope>
  21. </dependency>
  22. <dependency>
  23. <groupId>mysql</groupId>
  24. <artifactId>mysql-connector-java</artifactId>
  25. <version>8.0.28</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.oracle</groupId>
  29. <artifactId>ojdbc6</artifactId>
  30. <version>11.2.0.3</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.deepoove</groupId>
  34. <artifactId>poi-tl</artifactId>
  35. <version>1.3.1</version>
  36. </dependency>
  37. </dependencies>
  38. <build>
  39. <!-- 配置资源文件 -->
  40. <resources>
  41. <resource>
  42. <directory>src/main/java</directory>
  43. <includes>
  44. <include>**/*.fxml</include>
  45. <include>**/*.properties</include>
  46. <include>**/*.jpg</include>
  47. </includes>
  48. </resource>
  49. </resources>
  50. <!-- 编译插件 -->
  51. <plugins>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-compiler-plugin</artifactId>
  55. <version>3.7.0</version>
  56. <configuration>
  57. <source>1.8</source>
  58. <target>1.8</target>
  59. <encoding>UTF-8</encoding>
  60. </configuration>
  61. </plugin>
  62. <!-- 打包成jar包,将依赖一起打包 -->
  63. <plugin>
  64. <groupId>org.apache.maven.plugins</groupId>
  65. <artifactId>maven-assembly-plugin</artifactId>
  66. <version>2.6</version>
  67. <executions>
  68. <execution>
  69. <phase>package</phase>
  70. <goals>
  71. <goal>single</goal>
  72. </goals>
  73. </execution>
  74. </executions>
  75. <configuration>
  76. <archive>
  77. <manifest>
  78. <mainClass>com.msw.java.Main</mainClass>
  79. </manifest>
  80. </archive>
  81. <descriptorRefs>
  82. <descriptorRef>jar-with-dependencies</descriptorRef>
  83. </descriptorRefs>
  84. </configuration>
  85. </plugin>
  86. </plugins>
  87. </build>
  88. </project>