pom.xml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.zhixinhuixue</groupId>
  7. <artifactId>anonymizer</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <dependencies>
  10. <dependency>
  11. <groupId>com.github.dataanon</groupId>
  12. <artifactId>data-anon</artifactId>
  13. <version>0.9.7</version>
  14. </dependency>
  15. <dependency>
  16. <groupId>mysql</groupId>
  17. <artifactId>mysql-connector-java</artifactId>
  18. <version>8.0.21</version>
  19. </dependency>
  20. </dependencies>
  21. <build>
  22. <plugins>
  23. <plugin>
  24. <groupId>org.apache.maven.plugins</groupId>
  25. <artifactId>maven-jar-plugin</artifactId>
  26. <version>3.0.2</version>
  27. <configuration>
  28. <archive>
  29. <manifest>
  30. <addClasspath>true</addClasspath>
  31. <mainClass>com.zhixinhuixue.anonymizer.Anonymizer</mainClass>
  32. <classpathPrefix>dependency-jars/</classpathPrefix>
  33. </manifest>
  34. </archive>
  35. </configuration>
  36. </plugin>
  37. <plugin>
  38. <groupId>org.apache.maven.plugins</groupId>
  39. <artifactId>maven-dependency-plugin</artifactId>
  40. <version>3.0.2</version>
  41. <executions>
  42. <execution>
  43. <id>copy-dependencies</id>
  44. <phase>package</phase>
  45. <goals>
  46. <goal>copy-dependencies</goal>
  47. </goals>
  48. <configuration>
  49. <outputDirectory>
  50. ${project.build.directory}/dependency-jars/
  51. </outputDirectory>
  52. </configuration>
  53. </execution>
  54. </executions>
  55. </plugin>
  56. <plugin>
  57. <groupId>org.codehaus.mojo</groupId>
  58. <artifactId>exec-maven-plugin</artifactId>
  59. <version>1.6.0</version>
  60. <executions>
  61. <execution>
  62. <goals>
  63. <goal>java</goal>
  64. </goals>
  65. </execution>
  66. </executions>
  67. <configuration>
  68. <mainClass>com.zhixinhuixue.anonymizer.Anonymizer</mainClass>
  69. </configuration>
  70. </plugin>
  71. <plugin>
  72. <groupId>org.apache.maven.plugins</groupId>
  73. <artifactId>maven-compiler-plugin</artifactId>
  74. <configuration>
  75. <source>1.8</source>
  76. <target>1.8</target>
  77. </configuration>
  78. </plugin>
  79. </plugins>
  80. <finalName>zsy-anonymizer</finalName>
  81. </build>
  82. </project>