Super POM

All models implicitly inherit from a super-POM:

  1. <project>
  2. <modelVersion>4.0.0</modelVersion>
  3.  
  4. <repositories>
  5. <repository>
  6. <id>central</id>
  7. <name>Central Repository</name>
  8. <url>https://repo.maven.apache.org/maven2</url>
  9. <layout>default</layout>
  10. <snapshots>
  11. <enabled>false</enabled>
  12. </snapshots>
  13. </repository>
  14. </repositories>
  15.  
  16. <pluginRepositories>
  17. <pluginRepository>
  18. <id>central</id>
  19. <name>Central Repository</name>
  20. <url>https://repo.maven.apache.org/maven2</url>
  21. <layout>default</layout>
  22. <snapshots>
  23. <enabled>false</enabled>
  24. </snapshots>
  25. </pluginRepository>
  26. </pluginRepositories>
  27.  
  28. <build>
  29. <directory>${project.basedir}/target</directory>
  30. <outputDirectory>${project.build.directory}/classes</outputDirectory>
  31. <finalName>${project.artifactId}-${project.version}</finalName>
  32. <testOutputDirectory>${project.build.directory}/test-classes</testOutputDirectory>
  33. <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
  34. <scriptSourceDirectory>${project.basedir}/src/main/scripts</scriptSourceDirectory>
  35. <testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
  36. <resources>
  37. <resource>
  38. <directory>${project.basedir}/src/main/resources</directory>
  39. </resource>
  40. </resources>
  41. <testResources>
  42. <testResource>
  43. <directory>${project.basedir}/src/test/resources</directory>
  44. </testResource>
  45. </testResources>
  46. <pluginManagement>
  47. <!-- NOTE: These plugins will be removed from future versions of the super POM -->
  48. <!-- They are kept for the moment as they are very unlikely to conflict with lifecycle mappings (MNG-4453) -->
  49. <plugins>
  50. <plugin>
  51. <artifactId>maven-antrun-plugin</artifactId>
  52. <version>3.1.0</version>
  53. </plugin>
  54. <plugin>
  55. <artifactId>maven-assembly-plugin</artifactId>
  56. <version>3.7.1</version>
  57. </plugin>
  58. <plugin>
  59. <artifactId>maven-dependency-plugin</artifactId>
  60. <version>3.7.0</version>
  61. </plugin>
  62. <plugin>
  63. <artifactId>maven-release-plugin</artifactId>
  64. <version>3.0.1</version>
  65. </plugin>
  66. </plugins>
  67. </pluginManagement>
  68. </build>
  69.  
  70. <reporting>
  71. <outputDirectory>${project.build.directory}/site</outputDirectory>
  72. </reporting>
  73.  
  74. <profiles>
  75. <!-- NOTE: The release profile will be removed from future versions of the super POM -->
  76. <profile>
  77. <id>release-profile</id>
  78.  
  79. <activation>
  80. <property>
  81. <name>performRelease</name>
  82. <value>true</value>
  83. </property>
  84. </activation>
  85.  
  86. <build>
  87. <plugins>
  88. <plugin>
  89. <inherited>true</inherited>
  90. <artifactId>maven-source-plugin</artifactId>
  91. <executions>
  92. <execution>
  93. <id>attach-sources</id>
  94. <goals>
  95. <goal>jar-no-fork</goal>
  96. </goals>
  97. </execution>
  98. </executions>
  99. </plugin>
  100. <plugin>
  101. <inherited>true</inherited>
  102. <artifactId>maven-javadoc-plugin</artifactId>
  103. <executions>
  104. <execution>
  105. <id>attach-javadocs</id>
  106. <goals>
  107. <goal>jar</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. <plugin>
  113. <inherited>true</inherited>
  114. <artifactId>maven-deploy-plugin</artifactId>
  115. </plugin>
  116. </plugins>
  117. </build>
  118. </profile>
  119. </profiles>
  120.  
  121. </project>