pom.xml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. <parent>
  6. <artifactId>devops</artifactId>
  7. <groupId>cn.reghao.devops</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>deployer</artifactId>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  15. <maven.compiler.source>11</maven.compiler.source>
  16. <maven.compiler.target>11</maven.compiler.target>
  17. <project.build.outputDir>${project.basedir}/bin</project.build.outputDir>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>cn.reghao.jutil</groupId>
  22. <artifactId>jdk</artifactId>
  23. <version>1.0.0-SNAPSHOT</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.github.mwiede</groupId>
  27. <artifactId>jsch</artifactId>
  28. <version>0.2.16</version>
  29. </dependency>
  30. </dependencies>
  31. <build>
  32. <finalName>devops-${project.artifactId}</finalName>
  33. <resources>
  34. <resource>
  35. <directory>src/main/resources</directory>
  36. <filtering>true</filtering>
  37. <includes>
  38. <include>logback.xml</include>
  39. </includes>
  40. </resource>
  41. </resources>
  42. <plugins>
  43. <plugin>
  44. <groupId>org.apache.maven.plugins</groupId>
  45. <artifactId>maven-assembly-plugin</artifactId>
  46. <version>3.2.0</version>
  47. <configuration>
  48. <archive>
  49. <manifest>
  50. <mainClass>cn.reghao.devops.deployer.DeployApp</mainClass>
  51. </manifest>
  52. </archive>
  53. <descriptorRefs>
  54. <descriptorRef>jar-with-dependencies</descriptorRef>
  55. </descriptorRefs>
  56. <!-- 不设置此属性则生成的 jar 包名字会带有 jar-with-dependencies -->
  57. <appendAssemblyId>false</appendAssemblyId>
  58. <outputDirectory>${project.build.outputDir}</outputDirectory>
  59. </configuration>
  60. <executions>
  61. <execution>
  62. <id>make-assembly</id>
  63. <phase>package</phase>
  64. <goals>
  65. <goal>single</goal>
  66. </goals>
  67. </execution>
  68. </executions>
  69. </plugin>
  70. </plugins>
  71. </build>
  72. </project>