pom.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>xyz.tbvns</groupId>
  6. <artifactId>PowerGD</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>GD4J</artifactId>
  10. <version>${BUILD_NUMBER}</version>
  11. <distributionManagement>
  12. <repository>
  13. <id>main-repo</id> <!-- Must match the id in settings.xml -->
  14. <url>http://localhost:7071/dev-build</url>
  15. </repository>
  16. </distributionManagement>
  17. <properties>
  18. <maven.compiler.source>21</maven.compiler.source>
  19. <maven.compiler.target>21</maven.compiler.target>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. </properties>
  22. <profiles>
  23. <profile>
  24. <id>jenkins</id>
  25. <properties>
  26. <groupId>${project.groupId}</groupId>
  27. <artifactId>${project.artifactId}</artifactId>
  28. <version>${project.version}</version>
  29. <packaging>${project.packaging}</packaging>
  30. </properties>
  31. <build>
  32. <plugins>
  33. <plugin>
  34. <groupId>org.apache.maven.plugins</groupId>
  35. <artifactId>maven-jar-plugin</artifactId>
  36. <version>2.5</version>
  37. <executions>
  38. <execution>
  39. <id>generate-default-version</id>
  40. <phase>package</phase>
  41. <goals>
  42. <goal>jar</goal>
  43. </goals>
  44. <configuration>
  45. <classifier>${BUILD_NUMBER}</classifier>
  46. </configuration>
  47. </execution>
  48. </executions>
  49. </plugin>
  50. <plugin>
  51. <groupId>org.apache.maven.plugins</groupId>
  52. <artifactId>maven-install-plugin</artifactId>
  53. <version>2.4</version>
  54. <executions>
  55. <execution>
  56. <id>install-default-version</id>
  57. <phase>install</phase>
  58. <goals>
  59. <goal>install-file</goal>
  60. </goals>
  61. <configuration>
  62. <file>${project.build.directory}/${project.build.finalName}-${BUILD_NUMBER}.${project.packaging}</file>
  63. </configuration>
  64. </execution>
  65. </executions>
  66. </plugin>
  67. </plugins>
  68. </build>
  69. </profile>
  70. </profiles>
  71. </project>