pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (c) 2019 Of Him Code Technology Studio
  4. Jpom is licensed under Mulan PSL v2.
  5. You can use this software according to the terms and conditions of the Mulan PSL v2.
  6. You may obtain a copy of Mulan PSL v2 at:
  7. http://license.coscl.org.cn/MulanPSL2
  8. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  9. See the Mulan PSL v2 for more details.
  10. -->
  11. <project xmlns="http://maven.apache.org/POM/4.0.0"
  12. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  13. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  14. <parent>
  15. <artifactId>jpom-plugins-parent</artifactId>
  16. <groupId>org.dromara.jpom.plugins</groupId>
  17. <version>2.11.12</version>
  18. <relativePath>../pom.xml</relativePath>
  19. </parent>
  20. <modelVersion>4.0.0</modelVersion>
  21. <artifactId>git-clone</artifactId>
  22. <name>plugin-git-clone</name>
  23. <properties>
  24. <maven.compiler.source>8</maven.compiler.source>
  25. <maven.compiler.target>8</maven.compiler.target>
  26. </properties>
  27. <dependencies>
  28. <dependency>
  29. <groupId>org.dromara.jpom</groupId>
  30. <artifactId>common</artifactId>
  31. <scope>provided</scope>
  32. <version>${project.version}</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.github.mwiede</groupId>
  36. <artifactId>jsch</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.bouncycastle</groupId>
  40. <artifactId>bcprov-jdk18on</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.eclipse.jgit</groupId>
  44. <artifactId>org.eclipse.jgit.ssh.jsch</artifactId>
  45. <version>5.13.3.202401111512-r</version>
  46. <exclusions>
  47. <exclusion>
  48. <groupId>com.jcraft</groupId>
  49. <artifactId>jsch</artifactId>
  50. </exclusion>
  51. </exclusions>
  52. </dependency>
  53. </dependencies>
  54. <build>
  55. <plugins>
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-jar-plugin</artifactId>
  59. <version>3.1.1</version>
  60. <configuration>
  61. <archive>
  62. <manifest>
  63. <!-- 是否指定项目classpath下的依赖 -->
  64. <addClasspath>true</addClasspath>
  65. <!-- 指定依赖的时候声明前缀 -->
  66. <classpathPrefix>./</classpathPrefix>
  67. </manifest>
  68. <manifestEntries>
  69. <!-- 项目版本号 -->
  70. <Jpom-Project-Version>${project.version}</Jpom-Project-Version>
  71. <!-- 打包时间 -->
  72. <Jpom-Timestamp>${maven.build.timestamp}</Jpom-Timestamp>
  73. <Jpom-Type>${project.artifactId}</Jpom-Type>
  74. <Implementation-URL>https://gitee.com/dromara/Jpom</Implementation-URL>
  75. </manifestEntries>
  76. </archive>
  77. </configuration>
  78. </plugin>
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-assembly-plugin</artifactId>
  82. <configuration>
  83. <archive>
  84. <manifest>
  85. <!--这里要替换成jar包main方法所在类 -->
  86. </manifest>
  87. </archive>
  88. <appendAssemblyId>false</appendAssemblyId>
  89. <descriptors>
  90. <descriptor>script/release.xml</descriptor>
  91. </descriptors>
  92. </configuration>
  93. <executions>
  94. <execution>
  95. <id>make-assembly</id> <!-- this is used for inheritance merges -->
  96. <phase>package</phase> <!-- 指定在打包节点执行jar包合并操作 -->
  97. <goals>
  98. <goal>single</goal>
  99. </goals>
  100. </execution>
  101. </executions>
  102. </plugin>
  103. </plugins>
  104. </build>
  105. </project>