pom.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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>com.github.mwiede</groupId>
  18. <artifactId>jsch</artifactId>
  19. <version>2.27.5</version>
  20. </dependency>
  21. </dependencies>
  22. <build>
  23. <finalName>devops-${project.artifactId}</finalName>
  24. <resources>
  25. <resource>
  26. <directory>src/main/resources</directory>
  27. <filtering>true</filtering>
  28. <includes>
  29. <include>logback.xml</include>
  30. </includes>
  31. </resource>
  32. </resources>
  33. <plugins>
  34. <plugin>
  35. <groupId>org.apache.maven.plugins</groupId>
  36. <artifactId>maven-shade-plugin</artifactId>
  37. <version>3.2.4</version>
  38. <executions>
  39. <execution>
  40. <phase>package</phase>
  41. <goals>
  42. <goal>shade</goal>
  43. </goals>
  44. <configuration>
  45. <transformers>
  46. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  47. <mainClass>cn.reghao.bnt.deployer.DeployApp</mainClass>
  48. </transformer>
  49. </transformers>
  50. </configuration>
  51. </execution>
  52. </executions>
  53. </plugin>
  54. </plugins>
  55. </build>
  56. </project>