pom.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>org.shoulder.plugins</groupId>
  7. <!--插件命名遵守${prefix}-maven-plugin-->
  8. <artifactId>error-code-generator-maven-plugin</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. <packaging>maven-plugin</packaging>
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <java.version>1.8</java.version>
  14. </properties>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.apache.maven</groupId>
  18. <artifactId>maven-plugin-api</artifactId>
  19. <version>3.3.9</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.apache.maven.plugin-tools</groupId>
  23. <artifactId>maven-plugin-annotations</artifactId>
  24. <version>3.5.2</version>
  25. <scope>provided</scope>
  26. </dependency>
  27. </dependencies>
  28. <build>
  29. <plugins>
  30. <plugin>
  31. <groupId>org.apache.maven.plugins</groupId>
  32. <artifactId>maven-compiler-plugin</artifactId>
  33. <version>3.8.1</version>
  34. <configuration>
  35. <source>${java.version}</source>
  36. <target>${java.version}</target>
  37. <encoding>${project.build.sourceEncoding}</encoding>
  38. </configuration>
  39. </plugin>
  40. <plugin>
  41. <groupId>org.apache.maven.plugins</groupId>
  42. <artifactId>maven-plugin-plugin</artifactId>
  43. <version>3.5.2</version>
  44. <configuration>
  45. <!-- 或者在类的注视上添加一个descriptor -->
  46. <!-- Needed for Java 5 annotation based configuration, for some reason. -->
  47. <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
  48. </configuration>
  49. </plugin>
  50. </plugins>
  51. </build>
  52. </project>