pom.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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>spring_demo</artifactId>
  7. <groupId>org.example</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>spring_annotation</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. </properties>
  16. <build>
  17. <finalName>Main</finalName>
  18. <plugins>
  19. <plugin>
  20. <groupId>org.apache.maven.plugins</groupId>
  21. <artifactId>maven-shade-plugin</artifactId>
  22. <version>1.2.1</version>
  23. <executions>
  24. <execution>
  25. <phase>package</phase>
  26. <goals>
  27. <goal>shade</goal>
  28. </goals>
  29. <configuration>
  30. <transformers>
  31. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  32. <mainClass>Main</mainClass>
  33. </transformer>
  34. </transformers>
  35. </configuration>
  36. </execution>
  37. </executions>
  38. </plugin>
  39. </plugins>
  40. </build>
  41. </project>