You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. <parent>
  7. <groupId>org.aspectj</groupId>
  8. <artifactId>aspectj-parent</artifactId>
  9. <version>1.9.7.BUILD-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>installer</artifactId>
  12. <name>AspectJ Installer</name>
  13. <properties>
  14. <!-- By default, do not deploy artifacts - but deploy this public one -->
  15. <maven.deploy.skip>false</maven.deploy.skip>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>org.aspectj</groupId>
  20. <artifactId>run-all-junit-tests</artifactId>
  21. <version>${project.version}</version>
  22. </dependency>
  23. </dependencies>
  24. <build>
  25. <plugins>
  26. <!-- Skip creation of main + test JARs -->
  27. <plugin>
  28. <groupId>org.apache.maven.plugins</groupId>
  29. <artifactId>maven-jar-plugin</artifactId>
  30. <executions>
  31. <execution>
  32. <id>default-jar</id>
  33. <phase>none</phase>
  34. </execution>
  35. <execution>
  36. <id>test-jar</id>
  37. <phase>none</phase>
  38. </execution>
  39. </executions>
  40. </plugin>
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-assembly-plugin</artifactId>
  44. <executions>
  45. <execution>
  46. <id>aspectjinstaller-assembly</id>
  47. <phase>package</phase>
  48. <goals>
  49. <goal>single</goal>
  50. </goals>
  51. <configuration>
  52. <finalName>aspectj-${project.version}</finalName>
  53. <appendAssemblyId>false</appendAssemblyId>
  54. <archive>
  55. <manifestEntries>
  56. <Main-Class>$installer$.org.aspectj.Main</Main-Class>
  57. </manifestEntries>
  58. </archive>
  59. <descriptors>
  60. <descriptor>aspectjinstaller-assembly.xml</descriptor>
  61. </descriptors>
  62. </configuration>
  63. </execution>
  64. </executions>
  65. </plugin>
  66. <!-- Caveat: Attaching the flattened POM needs packaging=jar, so do not use packaging=pom for this module -->
  67. <plugin>
  68. <groupId>org.codehaus.mojo</groupId>
  69. <artifactId>flatten-maven-plugin</artifactId>
  70. <executions>
  71. <!-- Remove dependencies declared in this POM (if any) from uber JAR and strip down POM -->
  72. <execution>
  73. <id>flatten</id>
  74. <phase>process-resources</phase>
  75. <goals>
  76. <goal>flatten</goal>
  77. </goals>
  78. <configuration>
  79. <flattenMode>oss</flattenMode>
  80. <pomElements>
  81. <dependencies>remove</dependencies>
  82. <repositories>remove</repositories>
  83. </pomElements>
  84. <outputDirectory>${project.build.directory}</outputDirectory>
  85. <flattenedPomFilename>flattened-pom.xml</flattenedPomFilename>
  86. </configuration>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. </plugins>
  91. </build>
  92. </project>