pom.xml 2.6 KB

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