Skip to content

Commit

Permalink
Flatten the BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Aug 11, 2022
1 parent 83f094b commit 4fbac65
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
50 changes: 50 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf.version}</version>
<exclusions>
<exclusion>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
</exclusion>
<exclusion>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.1_spec</artifactId>
Expand Down Expand Up @@ -167,6 +175,14 @@
<artifactId>cxf-rt-ws-mex</artifactId>
<version>${cxf.version}</version>
<exclusions>
<exclusion>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
</exclusion>
<exclusion>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.1_spec</artifactId>
Expand Down Expand Up @@ -277,4 +293,38 @@
</dependencies>
</dependencyManagement>

<build>
<plugins>
<plugin>
<groupId>org.l2x6.cq</groupId>
<artifactId>cq-maven-plugin</artifactId>
<executions>
<execution>
<id>flatten-bom</id>
<goals>
<goal>flatten-bom</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<originExcludes>
<!-- Remove BOM entries from the flattened BOM which come from quarkus-bom -->
<!-- This is mainly to get rid of potentially outdated quarkus-bom imports brought -->
<!-- via other participant's BOMs that we are importing -->
<originExclude>io.quarkus:quarkus-bom</originExclude>
</originExcludes>
<resolutionEntryPointIncludes>
<!-- We not only flatten the BOM, we also shrink it down so that includes -->
<!-- entries that our extensions need. Here we define the set of our artifacts -->
<!-- whose dependencies we want to cover in the flattened BOM -->
<resolutionEntryPointInclude>io.quarkiverse.cxf:*</resolutionEntryPointInclude>
</resolutionEntryPointIncludes>
<flattenedFullPomFile>${project.build.directory}/flattened-full-pom.xml</flattenedFullPomFile>
<flattenedReducedPomFile>${project.build.directory}/flattened-reduced-pom.xml</flattenedReducedPomFile>
<flattenedReducedVerbosePomFile>${project.build.directory}/flattened-reduced-verbose-pom.xml</flattenedReducedVerbosePomFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
15 changes: 15 additions & 0 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,22 @@
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-netty-server</artifactId>
<version>${cxf.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
</exclusion>
<exclusion>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.1_spec</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- provides CXF logging feature -->
Expand Down
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@

<supported-maven.versions>[3.6.2,)</supported-maven.versions>

<cq-maven-plugin.version>3.1.1</cq-maven-plugin.version>
<maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
<maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version>
<maven-idea-plugin.version>2.2.1</maven-idea-plugin.version>
<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>2.22.2</maven-failsafe-plugin.version>
<quarkus-platform-bom-plugin.version>0.0.51</quarkus-platform-bom-plugin.version>

<!-- maven-compiler-plugin -->
<maven.compiler.release>11</maven.compiler.release>
Expand Down Expand Up @@ -150,6 +152,11 @@
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.version}</version>
</plugin>
<plugin>
<groupId>org.l2x6.cq</groupId>
<artifactId>cq-maven-plugin</artifactId>
<version>${cq-maven-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>

Expand Down

0 comments on commit 4fbac65

Please sign in to comment.