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

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


The following commit(s) were added to refs/heads/main by this push:
     new bb8a22bfb2b6 Fix SPI generation on Windows (Windows path separator 
issue) (#19885)
bb8a22bfb2b6 is described below

commit bb8a22bfb2b661980940784d2771afbf73bdf0ec
Author: zjf <[email protected]>
AuthorDate: Tue Nov 11 16:50:24 2025 +0800

    Fix SPI generation on Windows (Windows path separator issue) (#19885)
---
 .../main/java/org/apache/camel/maven/packaging/SpiGeneratorMojo.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpiGeneratorMojo.java
 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpiGeneratorMojo.java
index 7f8c251c57ad..b3c20a3cfcef 100644
--- 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpiGeneratorMojo.java
+++ 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpiGeneratorMojo.java
@@ -187,7 +187,7 @@ public class SpiGeneratorMojo extends AbstractGeneratorMojo 
{
     }
 
     private IndexView getIndex() throws MojoExecutionException {
-        Pattern cpePattern = Pattern.compile(".*/camel-[^/]+.jar");
+        Pattern cpePattern = Pattern.compile(".*[/\\\\]camel-[^/]+.jar");
         try {
             List<IndexView> indices = new ArrayList<>();
             indices.add(PackagePluginUtils.readJandexIndex(project));

Reply via email to