Maven打jar包配置

Love The Way You Lie 2023-05-21 10:27 33阅读 0赞
  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.teriste.package</groupId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <build>
  9. <plugins>
  10. <plugin>
  11. <groupId>org.apache.maven.plugins</groupId>
  12. <artifactId>maven-compiler-plugin</artifactId>
  13. <configuration>
  14. <source>8</source>
  15. <target>8</target>
  16. </configuration>
  17. </plugin>
  18. </plugins>
  19. </build>
  20. <name>teriste-tools</name>
  21. <packaging>jar</packaging>
  22. <artifactId>teriste-tools</artifactId>
  23. <properties>
  24. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  25. <junit.version>4.8.1</junit.version>
  26. </properties>
  27. <dependencies>
  28. <dependency>
  29. <groupId>com.teriste.framework</groupId>
  30. <artifactId>cache-lang</artifactId>
  31. <version>0.0.1</version>
  32. <exclusions>
  33. <exclusion>
  34. <artifactId>cache-statistics</artifactId>
  35. <groupId>com.teriste.framework</groupId>
  36. </exclusion>
  37. <exclusion>
  38. <artifactId>slf4j-api</artifactId>
  39. <groupId>org.slf4j</groupId>
  40. </exclusion>
  41. </exclusions>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.testng</groupId>
  45. <artifactId>testng</artifactId>
  46. <version>6.1.1</version>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>junit</groupId>
  51. <artifactId>junit</artifactId>
  52. <version>${junit.version}</version>
  53. <scope>test</scope>
  54. </dependency>
  55. </dependencies>
  56. <distributionManagement>
  57. <repository>
  58. <id>nexus-releases</id>
  59. <name>Teriste Release Repository</name>
  60. <url>http://maven.teriste.com/content/repositories/releases/</url>
  61. </repository>
  62. <snapshotRepository>
  63. <id>nexus-snapshots</id>
  64. <name>Teriste Snapshot Repository</name>
  65. <url>http://maven.teriste.com/content/repositories/snapshots/</url>
  66. </snapshotRepository>
  67. </distributionManagement>
  68. </project>

发表评论

表情:
评论列表 (有 0 条评论,33人围观)

还没有评论,来说两句吧...

相关阅读