maven打包配置

桃扇骨 2022-11-05 05:22 324阅读 0赞
  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>com.java4all</groupId>
  7. <artifactId>aa</artifactId>
  8. <version>0.1.2.1</version>
  9. <packaging>jar</packaging>
  10. <properties>
  11. <maven_deploy_version>2.8.2</maven_deploy_version>
  12. <skip_maven_deploy>false</skip_maven_deploy>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.apache.commons</groupId>
  17. <artifactId>commons-collections4</artifactId>
  18. <version>4.2</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-cache</artifactId>
  23. <version>2.2.2.RELEASE</version>
  24. </dependency>
  25. </dependencies>
  26. <build>
  27. <plugins>
  28. <plugin>
  29. <groupId>org.apache.maven.plugins</groupId>
  30. <artifactId>maven-compiler-plugin</artifactId>
  31. <version>3.1</version>
  32. <configuration>
  33. <source>1.8</source>
  34. <target>1.8</target>
  35. <encoding>UTF-8</encoding>
  36. </configuration>
  37. </plugin>
  38. <plugin>
  39. <groupId>org.apache.maven.plugins</groupId>
  40. <artifactId>maven-surefire-plugin</artifactId>
  41. <version>2.18.1</version>
  42. <configuration>
  43. <skipTests>true</skipTests>
  44. </configuration>
  45. </plugin>
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-source-plugin</artifactId>
  49. <version>3.0.1</version>
  50. <executions>
  51. <execution>
  52. <id>attach-sources</id>
  53. <goals>
  54. <goal>jar</goal>
  55. </goals>
  56. </execution>
  57. </executions>
  58. </plugin>
  59. <plugin>
  60. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-deploy-plugin</artifactId>
  62. <version>${ maven_deploy_version}</version>
  63. <configuration>
  64. <skip>${ skip_maven_deploy}</skip>
  65. </configuration>
  66. </plugin>
  67. <!-- 同步刷新系统各个模块版本 -->
  68. <!-- 参考syn-modules-version.sh脚本 -->
  69. <!-- mvn -N versions:update-child-modules -->
  70. <plugin>
  71. <groupId>org.codehaus.mojo</groupId>
  72. <artifactId>versions-maven-plugin</artifactId>
  73. <version>2.7</version>
  74. <configuration>
  75. <generateBackupPoms>false</generateBackupPoms>
  76. </configuration>
  77. </plugin>
  78. </plugins>
  79. </build>
  80. <distributionManagement>
  81. <repository>
  82. <id>xxx</id>
  83. <url>http://maven.xx.cn/nexus/content/repositories/releases/</url>
  84. </repository>
  85. <snapshotRepository>
  86. <id>xxx</id>
  87. <url>http://maven.xx.cn/nexus/content/repositories/snapshots/</url>
  88. </snapshotRepository>
  89. </distributionManagement>
  90. </project>

发表评论

表情:
评论列表 (有 0 条评论,324人围观)

还没有评论,来说两句吧...

相关阅读