pom.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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>java-base-maven</artifactId>
  7. <groupId>com.alvin</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>cmd</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. </properties>
  16. <build>
  17. <!--使用Maven编译可执行的jar-->
  18. <plugins>
  19. <plugin>
  20. <artifactId>maven-assembly-plugin</artifactId>
  21. <configuration>
  22. <appendAssemblyId>false</appendAssemblyId>
  23. <descriptorRefs>
  24. <descriptorRef>jar-with-dependencies</descriptorRef>
  25. </descriptorRefs>
  26. <archive>
  27. <manifest>
  28. <mainClass>com.alvin.Main</mainClass>
  29. </manifest>
  30. </archive>
  31. </configuration>
  32. <executions>
  33. <execution>
  34. <id>make-assembly</id>
  35. <phase>package</phase>
  36. <goals>
  37. <goal>single</goal>
  38. </goals>
  39. </execution>
  40. </executions>
  41. </plugin>
  42. </plugins>
  43. </build>
  44. </project>