| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <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"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.camel.quarkus</groupId> |
| <artifactId>camel-quarkus-poms</artifactId> |
| <version>1.1.0-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>camel-quarkus-build-parent</artifactId> |
| <packaging>pom</packaging> |
| |
| <name>Camel Quarkus :: Build Parent</name> |
| <description>Maven plugins configuration</description> |
| |
| <properties> |
| <!-- maven-surefire-plugin --> |
| <failIfNoTests>false</failIfNoTests> |
| |
| <maven-resources-plugin.version>3.1.0</maven-resources-plugin.version> |
| <docker-maven-plugin.version>0.3.0</docker-maven-plugin.version> |
| <directory-maven-plugin.version>0.3.1</directory-maven-plugin.version> |
| <formatter-maven-plugin.version>2.11.0</formatter-maven-plugin.version> |
| <impsort-maven-plugin.version>1.3.2</impsort-maven-plugin.version> |
| </properties> |
| |
| <dependencyManagement> |
| <dependencies> |
| <!-- Import BOM --> |
| <dependency> |
| <groupId>org.apache.camel.quarkus</groupId> |
| <artifactId>camel-quarkus-bom</artifactId> |
| <version>${project.version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>io.quarkus</groupId> |
| <artifactId>quarkus-bootstrap-maven-plugin</artifactId> |
| <version>${quarkus.version}</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>extension-descriptor</goal> |
| </goals> |
| <phase>compile</phase> |
| <configuration> |
| <deployment>${project.groupId}:${project.artifactId}-deployment:${project.version} |
| </deployment> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>kr.motd.maven</groupId> |
| <artifactId>os-maven-plugin</artifactId> |
| <version>${os-maven-plugin.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <quiet>true</quiet> |
| <doclint>none</doclint> |
| <show>package</show> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.jboss.jandex</groupId> |
| <artifactId>jandex-maven-plugin</artifactId> |
| <version>${jandex-maven-plugin.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.xolstice.maven.plugins</groupId> |
| <artifactId>protobuf-maven-plugin</artifactId> |
| <version>${protobuf-maven-plugin.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>net.revelc.code.formatter</groupId> |
| <artifactId>formatter-maven-plugin</artifactId> |
| <version>${formatter-maven-plugin.version}</version> |
| <configuration> |
| <configFile>${camel.quarkus.project.root}/tooling/eclipse-formatter-config.xml</configFile> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>net.revelc.code</groupId> |
| <artifactId>impsort-maven-plugin</artifactId> |
| <version>${impsort-maven-plugin.version}</version> |
| <configuration> |
| <groups>java.,javax.,org.w3c.,org.xml.,junit.</groups> |
| <removeUnused>true</removeUnused> |
| <staticAfter>true</staticAfter> |
| <staticGroups>java.,javax.,org.w3c.,org.xml.,junit.</staticGroups> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.commonjava.maven.plugins</groupId> |
| <artifactId>directory-maven-plugin</artifactId> |
| <version>${directory-maven-plugin.version}</version> |
| <executions> |
| <execution> |
| <id>directories</id> |
| <goals> |
| <goal>highest-basedir</goal> |
| </goals> |
| <phase>validate</phase> |
| <configuration> |
| <property>camel.quarkus.project.root</property> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-remote-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>process-resource-bundles</id> |
| <phase>none</phase><!-- skip to save time --> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-generated-resources</id> |
| <goals> |
| <goal>resources</goal> |
| </goals> |
| <phase>process-classes</phase> |
| <configuration> |
| <resources> |
| <resource> |
| <directory>${camel.quarkus.project.root}/tooling/legal</directory> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>net.revelc.code.formatter</groupId> |
| <artifactId>formatter-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>format</id> |
| <goals> |
| <goal>format</goal> |
| </goals> |
| <phase>process-sources</phase> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>net.revelc.code</groupId> |
| <artifactId>impsort-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>sort-imports</id> |
| <goals> |
| <goal>sort</goal> |
| </goals> |
| <phase>process-sources</phase> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <!-- To disable sanity checks while building: add '-Denforce=false' to the command line --> |
| <id>enforce</id> |
| <activation> |
| <property> |
| <name>enforce</name> |
| <value>!false</value> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.gmaven</groupId> |
| <artifactId>groovy-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>sanity-checks</id> |
| <goals> |
| <goal>execute</goal> |
| </goals> |
| <phase>validate</phase> |
| <configuration> |
| <source>file://${camel.quarkus.project.root}/tooling/scripts/validate-dependencies.groovy</source> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>check-format</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>net.revelc.code.formatter</groupId> |
| <artifactId>formatter-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>format</id> |
| <phase /> |
| </execution> |
| <execution> |
| <id>validate</id> |
| <goals> |
| <goal>validate</goal> |
| </goals> |
| <phase>validate</phase> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>net.revelc.code</groupId> |
| <artifactId>impsort-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>sort-imports</id> |
| <phase /> |
| </execution> |
| <execution> |
| <id>check-imports</id> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| <phase>validate</phase> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.gmaven</groupId> |
| <artifactId>groovy-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>sanity-checks</id> |
| <phase /><!-- Speedup the check-format profile by skipping the sanity-checks --> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |