Skip to content

Commit

Permalink
Create dev profile that disables dependency checks
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpoth committed Feb 4, 2020
1 parent f7d07bc commit 1c994ac
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 37 deletions.
55 changes: 34 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,27 +208,6 @@
<version>${maven-deploy-plugin.version}</version>
</plugin>

<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>
Expand Down Expand Up @@ -332,6 +311,40 @@
</build>

<profiles>
<profile>
<id>dev</id>
<activation>
<property>
<name>!dev</name>
</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>
Expand Down
44 changes: 28 additions & 16 deletions poms/build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,22 +144,6 @@
</execution>
</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>
Expand Down Expand Up @@ -219,6 +203,34 @@
</build>

<profiles>
<profile>
<id>dev</id>
<activation>
<property>
<name>!dev</name>
</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>
Expand Down

0 comments on commit 1c994ac

Please sign in to comment.