This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new 86d40a8703 Apply license workaround to shaded Spring modules 
regardless of the build profile
86d40a8703 is described below

commit 86d40a8703155eedb1c98eacd61e7a2df05e9ba5
Author: James Netherton <[email protected]>
AuthorDate: Tue Mar 31 11:17:38 2026 +0100

    Apply license workaround to shaded Spring modules regardless of the build 
profile
    
    Fixes #7543
---
 extensions-support/spring/shade/pom.xml | 59 ++++++++++++++++++---------------
 1 file changed, 32 insertions(+), 27 deletions(-)

diff --git a/extensions-support/spring/shade/pom.xml 
b/extensions-support/spring/shade/pom.xml
index 7deff3c1bd..bea85875a2 100644
--- a/extensions-support/spring/shade/pom.xml
+++ b/extensions-support/spring/shade/pom.xml
@@ -79,6 +79,38 @@
         </dependencies>
     </dependencyManagement>
 
+    <build>
+        <plugins>
+            <!--
+                 The Spring shaded modules produce an artifact that does not 
include any compiled classes.
+                 Only license files, which causes tests to fail when the empty 
target/classes directory is detected.
+                 Hence, the license files are moved into a target/license 
directory to avoid this.
+            -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-resources-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>legal-resources</id>
+                        <phase>process-resources</phase>
+                        <goals>
+                            <goal>copy-resources</goal>
+                        </goals>
+                        <configuration>
+                            
<outputDirectory>${project.basedir}/target/license/</outputDirectory>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    
<classesDirectory>${project.basedir}/target/license</classesDirectory>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
     <profiles>
         <profile>
             <!-- Pass '-Dquickly' to skip enforcer and some further sanity 
checks -->
@@ -90,33 +122,6 @@
             </activation>
             <build>
                 <plugins>
-                    <!--
-                         The Spring shaded modules produce an artifact that 
does not include any compiled classes.
-                         Only license files, which causes tests to fail when 
the empty target/classes directory is detected.
-                         Hence, the license files are moved into a 
target/license directory to avoid this.
-                    -->
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-resources-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>legal-resources</id>
-                                <phase>process-resources</phase>
-                                <goals>
-                                    <goal>copy-resources</goal>
-                                </goals>
-                                <configuration>
-                                    
<outputDirectory>${project.basedir}/target/license/</outputDirectory>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                    <plugin>
-                        <artifactId>maven-jar-plugin</artifactId>
-                        <configuration>
-                            
<classesDirectory>${project.basedir}/target/license</classesDirectory>
-                        </configuration>
-                    </plugin>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-enforcer-plugin</artifactId>

Reply via email to