|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 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 | 3 | <modelVersion>4.0.0</modelVersion>
|
4 |
| - <parent> |
5 |
| - <groupId>org.jboss</groupId> |
6 |
| - <artifactId>jboss-parent</artifactId> |
7 |
| - <version>39</version> |
8 |
| - </parent> |
9 | 4 | <groupId>io.quarkiverse</groupId>
|
10 | 5 | <artifactId>quarkiverse-parent</artifactId>
|
11 | 6 | <version>999-SNAPSHOT</version>
|
|
21 | 16 | <packaging>pom</packaging>
|
22 | 17 |
|
23 | 18 | <properties>
|
24 |
| - <version.enforcer.plugin>3.2.1</version.enforcer.plugin> |
| 19 | + <!-- Plugin versions (please keep in alphabetical order) --> |
| 20 | + <version.buildhelper.plugin>3.3.0</version.buildhelper.plugin> |
| 21 | + <version.buildnumber.plugin>3.0.0</version.buildnumber.plugin> |
| 22 | + <version.clean.plugin>3.2.0</version.clean.plugin> |
| 23 | + <version.compiler.plugin>3.11.0</version.compiler.plugin> |
| 24 | + <version.enforcer.plugin>3.3.0</version.enforcer.plugin> |
| 25 | + <version.failsafe.plugin>3.0.0</version.failsafe.plugin> |
25 | 26 | <version.formatter.plugin>2.22.0</version.formatter.plugin>
|
| 27 | + <version.gpg.plugin>3.0.1</version.gpg.plugin> |
26 | 28 | <version.impsort.plugin>1.8.0</version.impsort.plugin>
|
27 |
| - <version.surefire.plugin>3.0.0</version.surefire.plugin> |
| 29 | + <version.javadoc.plugin>3.5.0</version.javadoc.plugin> |
| 30 | + <version.nexus-staging.plugin>1.6.13</version.nexus-staging.plugin> |
| 31 | + <version.release.plugin>3.0.0</version.release.plugin> |
| 32 | + <version.resources.plugin>3.3.1</version.resources.plugin> |
| 33 | + <version.source.plugin>3.2.1</version.source.plugin> |
| 34 | + <version.surefire.plugin>${version.failsafe.plugin}</version.surefire.plugin> |
| 35 | + |
28 | 36 | <!-- Code format -->
|
29 | 37 | <version.quarkus.ide-config>3.0.0.Final</version.quarkus.ide-config>
|
30 | 38 | <format.skip>false</format.skip>
|
| 39 | + |
31 | 40 | <!-- Default properties -->
|
32 | 41 | <maven.compiler.parameters>true</maven.compiler.parameters>
|
33 |
| - <maven.compiler.source>11</maven.compiler.source> |
34 |
| - <maven.compiler.target>11</maven.compiler.target> |
35 | 42 | <maven.compiler.release>11</maven.compiler.release>
|
| 43 | + <maven.compiler.source>${maven.compiler.release}</maven.compiler.source> |
| 44 | + <maven.compiler.target>${maven.compiler.release}</maven.compiler.target> |
| 45 | + <maven.compiler.testTarget>${maven.compiler.target}</maven.compiler.testTarget> |
| 46 | + <maven.compiler.testSource>${maven.compiler.source}</maven.compiler.testSource> |
36 | 47 | <maven.javadoc.failOnError>false</maven.javadoc.failOnError>
|
| 48 | + |
| 49 | + <!-- Cross plugins settings --> |
37 | 50 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
38 | 51 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
39 | 52 |
|
40 |
| - <nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version> |
| 53 | + <!-- |
| 54 | + Options to override the compiler arguments directly on the compiler argument line to separate between what |
| 55 | + the IDE understands as the source level and what the Maven compiler actually use. |
| 56 | + --> |
| 57 | + <maven.compiler.argument.target>${maven.compiler.target}</maven.compiler.argument.target> |
| 58 | + <maven.compiler.argument.source>${maven.compiler.source}</maven.compiler.argument.source> |
| 59 | + <maven.compiler.argument.testTarget>${maven.compiler.testTarget}</maven.compiler.argument.testTarget> |
| 60 | + <maven.compiler.argument.testSource>${maven.compiler.testSource}</maven.compiler.argument.testSource> |
| 61 | + |
| 62 | + <!-- maven-enforcer-plugin --> |
| 63 | + <maven.min.version>3.8.6</maven.min.version> |
| 64 | + <jdk.min.version>${maven.compiler.argument.source}</jdk.min.version> |
| 65 | + <insecure.repositories>ERROR</insecure.repositories> |
| 66 | + |
| 67 | + <!-- maven-release-plugin --> |
| 68 | + <useReleaseProfile>false</useReleaseProfile> |
| 69 | + |
41 | 70 | <!-- Documentation -->
|
42 | 71 | <asciidoctorj.version>2.5.8</asciidoctorj.version>
|
43 | 72 | <asciidoctor-maven-plugin.version>2.2.3</asciidoctor-maven-plugin.version>
|
|
101 | 130 |
|
102 | 131 | <build>
|
103 | 132 | <plugins>
|
| 133 | + |
| 134 | + <!-- Check for the minimum version of Java and Maven. Runs during the validate phase. --> |
| 135 | + <plugin> |
| 136 | + <groupId>org.apache.maven.plugins</groupId> |
| 137 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 138 | + <executions> |
| 139 | + <execution> |
| 140 | + <id>enforce-java-version</id> |
| 141 | + <goals> |
| 142 | + <goal>enforce</goal> |
| 143 | + </goals> |
| 144 | + <configuration> |
| 145 | + <rules> |
| 146 | + <bannedRepositories> |
| 147 | + <message>To build this project, don't use maven repositories over HTTP. Please use HTTPS in your settings.xml or run the build with property insecure.repositories=WARN</message> |
| 148 | + <level>${insecure.repositories}</level> |
| 149 | + <bannedRepositories> |
| 150 | + <bannedRepository>http://*</bannedRepository> |
| 151 | + </bannedRepositories> |
| 152 | + <bannedPluginRepositories> |
| 153 | + <bannedPluginRepository>http://*</bannedPluginRepository> |
| 154 | + </bannedPluginRepositories> |
| 155 | + </bannedRepositories> |
| 156 | + <requireJavaVersion> |
| 157 | + <message>To build this project JDK ${jdk.min.version} (or greater) is required. Please install it.</message> |
| 158 | + <version>${jdk.min.version}</version> |
| 159 | + </requireJavaVersion> |
| 160 | + </rules> |
| 161 | + </configuration> |
| 162 | + </execution> |
| 163 | + <execution> |
| 164 | + <id>enforce-maven-version</id> |
| 165 | + <goals> |
| 166 | + <goal>enforce</goal> |
| 167 | + </goals> |
| 168 | + <configuration> |
| 169 | + <rules> |
| 170 | + <requireMavenVersion> |
| 171 | + <message>To build this project Maven ${maven.min.version} (or greater) is required. Please install it.</message> |
| 172 | + <version>${maven.min.version}</version> |
| 173 | + </requireMavenVersion> |
| 174 | + </rules> |
| 175 | + </configuration> |
| 176 | + </execution> |
| 177 | + </executions> |
| 178 | + </plugin> |
| 179 | + |
| 180 | + <!-- Set properties containing the scm revision --> |
| 181 | + <plugin> |
| 182 | + <groupId>org.codehaus.mojo</groupId> |
| 183 | + <artifactId>buildnumber-maven-plugin</artifactId> |
| 184 | + <executions> |
| 185 | + <execution> |
| 186 | + <id>get-scm-revision</id> |
| 187 | + <phase>initialize</phase> |
| 188 | + <goals> |
| 189 | + <goal>create</goal> |
| 190 | + </goals> |
| 191 | + <configuration> |
| 192 | + <doCheck>false</doCheck> |
| 193 | + <doUpdate>false</doUpdate> |
| 194 | + <revisionOnScmFailure>UNKNOWN</revisionOnScmFailure> |
| 195 | + <getRevisionOnlyOnce>true</getRevisionOnlyOnce> |
| 196 | + </configuration> |
| 197 | + </execution> |
| 198 | + </executions> |
| 199 | + </plugin> |
| 200 | + |
104 | 201 | <plugin>
|
105 | 202 | <groupId>org.apache.maven.plugins</groupId>
|
106 |
| - <artifactId>maven-release-plugin</artifactId> |
| 203 | + <artifactId>maven-compiler-plugin</artifactId> |
| 204 | + <version>${version.compiler.plugin}</version> |
107 | 205 | <configuration>
|
108 |
| - <preparationGoals>clean install</preparationGoals> |
109 |
| - <autoVersionSubmodules>true</autoVersionSubmodules> |
110 |
| - <tagNameFormat>@{project.version}</tagNameFormat> |
111 |
| - <pushChanges>false</pushChanges> |
112 |
| - <localCheckout>true</localCheckout> |
113 |
| - <remoteTagging>false</remoteTagging> |
| 206 | + <showDeprecation>true</showDeprecation> |
| 207 | + <showWarnings>true</showWarnings> |
| 208 | + <source>${maven.compiler.argument.source}</source> |
| 209 | + <target>${maven.compiler.argument.target}</target> |
| 210 | + <testSource>${maven.compiler.argument.testSource}</testSource> |
| 211 | + <testTarget>${maven.compiler.argument.testTarget}</testTarget> |
| 212 | + <parameters>true</parameters> |
| 213 | + <compilerArgs> |
| 214 | + <arg>-Xlint:unchecked</arg> |
| 215 | + </compilerArgs> |
114 | 216 | </configuration>
|
115 | 217 | </plugin>
|
| 218 | + |
| 219 | + <!-- Attach source jar to all builds. Runs during the package phase.--> |
| 220 | + <plugin> |
| 221 | + <groupId>org.apache.maven.plugins</groupId> |
| 222 | + <artifactId>maven-source-plugin</artifactId> |
| 223 | + <executions> |
| 224 | + <execution> |
| 225 | + <id>attach-sources</id> |
| 226 | + <goals> |
| 227 | + <goal>jar-no-fork</goal> |
| 228 | + </goals> |
| 229 | + </execution> |
| 230 | + </executions> |
| 231 | + </plugin> |
| 232 | + |
116 | 233 | </plugins>
|
117 | 234 | <pluginManagement>
|
118 | 235 | <plugins>
|
| 236 | + <plugin> |
| 237 | + <groupId>org.apache.maven.plugins</groupId> |
| 238 | + <artifactId>maven-gpg-plugin</artifactId> |
| 239 | + <version>${version.gpg.plugin}</version> |
| 240 | + </plugin> |
| 241 | + <plugin> |
| 242 | + <groupId>org.codehaus.mojo</groupId> |
| 243 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 244 | + <version>${version.buildhelper.plugin}</version> |
| 245 | + </plugin> |
| 246 | + <plugin> |
| 247 | + <groupId>org.codehaus.mojo</groupId> |
| 248 | + <artifactId>buildnumber-maven-plugin</artifactId> |
| 249 | + <version>${version.buildnumber.plugin}</version> |
| 250 | + </plugin> |
| 251 | + <plugin> |
| 252 | + <groupId>org.apache.maven.plugins</groupId> |
| 253 | + <artifactId>maven-clean-plugin</artifactId> |
| 254 | + <version>${version.clean.plugin}</version> |
| 255 | + </plugin> |
| 256 | + <plugin> |
| 257 | + <groupId>org.apache.maven.plugins</groupId> |
| 258 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 259 | + <version>${version.enforcer.plugin}</version> |
| 260 | + </plugin> |
| 261 | + <plugin> |
| 262 | + <groupId>org.apache.maven.plugins</groupId> |
| 263 | + <artifactId>maven-release-plugin</artifactId> |
| 264 | + <version>${version.release.plugin}</version> |
| 265 | + <configuration> |
| 266 | + <preparationGoals>clean install</preparationGoals> |
| 267 | + <autoVersionSubmodules>true</autoVersionSubmodules> |
| 268 | + <tagNameFormat>@{project.version}</tagNameFormat> |
| 269 | + <pushChanges>false</pushChanges> |
| 270 | + <localCheckout>true</localCheckout> |
| 271 | + <remoteTagging>false</remoteTagging> |
| 272 | + </configuration> |
| 273 | + </plugin> |
| 274 | + <plugin> |
| 275 | + <groupId>org.apache.maven.plugins</groupId> |
| 276 | + <artifactId>maven-resources-plugin</artifactId> |
| 277 | + <version>${version.resources.plugin}</version> |
| 278 | + </plugin> |
| 279 | + <plugin> |
| 280 | + <groupId>org.apache.maven.plugins</groupId> |
| 281 | + <artifactId>maven-source-plugin</artifactId> |
| 282 | + <version>${version.source.plugin}</version> |
| 283 | + <configuration> |
| 284 | + <archive> |
| 285 | + <index>true</index> |
| 286 | + <manifest> |
| 287 | + <addDefaultSpecificationEntries> |
| 288 | + true |
| 289 | + </addDefaultSpecificationEntries> |
| 290 | + <addDefaultImplementationEntries> |
| 291 | + true |
| 292 | + </addDefaultImplementationEntries> |
| 293 | + </manifest> |
| 294 | + <manifestEntries> |
| 295 | + <Implementation-URL>${project.url}</Implementation-URL> |
| 296 | + <Java-Version>${java.version}</Java-Version> |
| 297 | + <Java-Vendor>${java.vendor}</Java-Vendor> |
| 298 | + <Os-Name>${os.name}</Os-Name> |
| 299 | + <Os-Arch>${os.arch}</Os-Arch> |
| 300 | + <Os-Version>${os.version}</Os-Version> |
| 301 | + <Scm-Url>${project.scm.url}</Scm-Url> |
| 302 | + <Scm-Connection>${project.scm.connection}</Scm-Connection> |
| 303 | + <Scm-Revision>${buildNumber}</Scm-Revision> |
| 304 | + </manifestEntries> |
| 305 | + </archive> |
| 306 | + </configuration> |
| 307 | + </plugin> |
119 | 308 | <plugin>
|
120 | 309 | <groupId>net.revelc.code.formatter</groupId>
|
121 | 310 | <artifactId>formatter-maven-plugin</artifactId>
|
|
145 | 334 | </configuration>
|
146 | 335 | </plugin>
|
147 | 336 | <plugin>
|
| 337 | + <groupId>org.apache.maven.plugins</groupId> |
148 | 338 | <artifactId>maven-surefire-plugin</artifactId>
|
| 339 | + <version>${version.surefire.plugin}</version> |
149 | 340 | <configuration>
|
150 | 341 | <systemPropertyVariables>
|
151 | 342 | <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
152 | 343 | <maven.home>${maven.home}</maven.home>
|
153 | 344 | <maven.repo.local>${settings.localRepository}</maven.repo.local>
|
154 | 345 | <maven.settings>${session.request.userSettingsFile.path}</maven.settings>
|
| 346 | + <java.io.tmpdir>${project.build.directory}</java.io.tmpdir> |
155 | 347 | </systemPropertyVariables>
|
156 | 348 | </configuration>
|
157 | 349 | </plugin>
|
158 | 350 | <plugin>
|
| 351 | + <groupId>org.apache.maven.plugins</groupId> |
159 | 352 | <artifactId>maven-failsafe-plugin</artifactId>
|
| 353 | + <version>${version.failsafe.plugin}</version> |
160 | 354 | <configuration>
|
161 | 355 | <systemPropertyVariables>
|
162 | 356 | <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
|
224 | 418 | </dependency>
|
225 | 419 | </dependencies>
|
226 | 420 | </plugin>
|
| 421 | + <plugin> |
| 422 | + <groupId>org.sonatype.plugins</groupId> |
| 423 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 424 | + <version>${version.nexus-staging.plugin}</version> |
| 425 | + </plugin> |
227 | 426 | </plugins>
|
228 | 427 | </pluginManagement>
|
229 | 428 | </build>
|
|
333 | 532 | </executions>
|
334 | 533 | </plugin>
|
335 | 534 | <plugin>
|
| 535 | + <groupId>org.apache.maven.plugins</groupId> |
336 | 536 | <artifactId>maven-javadoc-plugin</artifactId>
|
337 | 537 | <executions>
|
338 | 538 | <execution>
|
|
346 | 546 | <plugin>
|
347 | 547 | <groupId>org.sonatype.plugins</groupId>
|
348 | 548 | <artifactId>nexus-staging-maven-plugin</artifactId>
|
349 |
| - <version>${nexus-staging-maven-plugin.version}</version> |
350 | 549 | <extensions>true</extensions>
|
351 | 550 | <configuration>
|
352 | 551 | <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
|
|
0 commit comments