You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/02/04 17:11:18 UTC
[camel-quarkus] branch master updated: Create an enforce profile to
disable sanity checks while building. This can be done by adding
-Denforce=false
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push:
new a7f3837 Create an enforce profile to disable sanity checks while building. This can be done by adding -Denforce=false
new ea2b52c Merge pull request #679 from johnpoth/dev-profile
a7f3837 is described below
commit a7f383759e0423d6b758db1e879c12a50c5844f3
Author: John Poth <po...@gmail.com>
AuthorDate: Tue Feb 4 12:09:40 2020 +0100
Create an enforce profile to disable sanity checks while building. This can be done by adding -Denforce=false
---
pom.xml | 57 ++++++++++++++++++++++++++++++-----------------
poms/build-parent/pom.xml | 46 +++++++++++++++++++++++++-------------
2 files changed, 66 insertions(+), 37 deletions(-)
diff --git a/pom.xml b/pom.xml
index 7a4d214..e48f8a9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -210,27 +210,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <executions>
- <execution>
- <id>camel-quarkus-enforcer-rules</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <dependencyConvergence />
- <requireMavenVersion>
- <version>${supported-maven-versions}</version>
- </requireMavenVersion>
- </rules>
- </configuration>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
@@ -333,6 +312,42 @@
<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>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>camel-quarkus-enforcer-rules</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <dependencyConvergence />
+ <requireMavenVersion>
+ <version>${supported-maven-versions}</version>
+ </requireMavenVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ </profile>
+ <profile>
<id>linux</id>
<activation>
<os>
diff --git a/poms/build-parent/pom.xml b/poms/build-parent/pom.xml
index dde240c..8f39618 100644
--- a/poms/build-parent/pom.xml
+++ b/poms/build-parent/pom.xml
@@ -145,22 +145,6 @@
</executions>
</plugin>
<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>
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
@@ -220,6 +204,36 @@
<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>