pom.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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>org.example</groupId>
  7. <artifactId>martian</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <maven.compiler.source>11</maven.compiler.source>
  12. <maven.compiler.target>11</maven.compiler.target>
  13. </properties>
  14. <dependencies>
  15. <!-- 这个包为框架的启动器 -->
  16. <dependency>
  17. <groupId>com.github.yuyenews</groupId>
  18. <artifactId>Martian</artifactId>
  19. <version>4.0.3</version>
  20. <exclusions>
  21. <exclusion>
  22. <groupId>com.github.yuyenews</groupId>
  23. <artifactId>Magician</artifactId>
  24. </exclusion>
  25. </exclusions>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.github.yuyenews</groupId>
  29. <artifactId>Magician</artifactId>
  30. <version>1.1.15</version>
  31. </dependency>
  32. <!-- 下面的jar包为日志框架,必须引入,否则控制台看不到任何信息,此处以jdk日志为例 -->
  33. <dependency>
  34. <groupId>org.slf4j</groupId>
  35. <artifactId>slf4j-jdk14</artifactId>
  36. <version>1.7.12</version>
  37. </dependency>
  38. </dependencies>
  39. <build>
  40. <plugins>
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-jar-plugin</artifactId>
  44. <configuration>
  45. <finalName>martian</finalName>
  46. <archive>
  47. <manifest>
  48. <mainClass>com.text.Start</mainClass>
  49. <addClasspath>true</addClasspath>
  50. <classpathPrefix>./lib/</classpathPrefix>
  51. <useUniqueVersions>false</useUniqueVersions>
  52. </manifest>
  53. </archive>
  54. </configuration>
  55. </plugin>
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-dependency-plugin</artifactId>
  59. <executions>
  60. <execution>
  61. <id>copy</id>
  62. <phase>package</phase>
  63. <goals>
  64. <goal>copy-dependencies</goal>
  65. </goals>
  66. <configuration>
  67. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  68. </configuration>
  69. </execution>
  70. </executions>
  71. </plugin>
  72. </plugins>
  73. </build>
  74. </project>