-
Feature
-
Resolution: Done
-
Major
-
None
-
False
-
None
-
False
-
0
-
0%
-
Todo
While -Dpatch option for patch-maven-plugin works well when resolving the patch/cve metadata, the actual artifacts have to be available in other remote repository (or ~/.m2/repository).
This is a inadvertence from my side... When testing the patches, I usually had the fixed artifacts in my local repository, but now, when testing ENTESB-19619, I found that while the metadata is being resolved:
[INFO] Scanning for projects... [INFO] ========== Red Hat Fuse Maven patching ========== [INFO] [PATCH] Reading metadata and artifacts from /data/tmp/fuse-springboot-patch-hf3-7.11.0.fuse-sb2-7_11_0-00033.zip [INFO] [PATCH] Resolved patch descriptor: /data/tmp/hf3-repo/org/jboss/redhat-fuse/fuse-springboot-patch-metadata/7.11.0.fuse-sb2-7_11_0-00033/fuse-springboot-patch-metadata-7.11.0.fuse-sb2-7_11_0-00033.xml [INFO] [PATCH] Patch metadata found for org.jboss.redhat-fuse/fuse-springboot-bom/[7.11,7.12) [INFO] [PATCH] - patch contains 1 patch fix [INFO] [PATCH] Processing managed dependencies to apply patch fixes... [INFO] [PATCH] - HF3: Red Hat Fuse 7.11 HF3 [INFO] [PATCH] Applying change org.apache.camel/camel-core/[2.23,2.23.2.fuse-7_11_0-00039) -> 2.23.2.fuse-7_11_0-00039 ...
camel-core 2.23.2.fuse-7_11_0-00039 is not found in the ZIP.
So the only way to apply such hotfix is to unzip it over existing repository...
I have a solution that uses -Dpatch specified ZIP file as real repository and it's finally possible to download the artifacts from there as well...
[INFO] Scanning for projects... [INFO] ========== Red Hat Fuse Maven patching ========== [INFO] [PATCH] Reading metadata and artifacts from /data/tmp/fuse-springboot-patch-hf3-7.11.0.fuse-sb2-7_11_0-00033.zip [INFO] [PATCH] Resolved patch descriptor: /data/tmp/hf3-repo/org/jboss/redhat-fuse/fuse-springboot-patch-metadata/7.11.0.fuse-sb2-7_11_0-00033/fuse-springboot-patch-metadata-7.11.0.fuse-sb2-7_11_0-00033.xml [INFO] [PATCH] Patch metadata found for org.jboss.redhat-fuse/fuse-springboot-bom/[7.11,7.12) [INFO] [PATCH] - patch contains 1 patch fix [INFO] [PATCH] Processing managed dependencies to apply patch fixes... [INFO] [PATCH] - HF3: Red Hat Fuse 7.11 HF3 ... Downloading from fuse-patch: zip:file:/tmp/fuse-springboot-patch-hf3-7.11.0.fuse-sb2-7_11_0-00033.zip-8160136593481898571/org/apache/camel/camel-core/2.23.2.fuse-7_11_0-00039/camel-core-2.23.2.fuse-7_11_0-00039.pom Downloaded from fuse-patch: zip:file:/tmp/fuse-springboot-patch-hf3-7.11.0.fuse-sb2-7_11_0-00033.zip-8160136593481898571/org/apache/camel/camel-core/2.23.2.fuse-7_11_0-00039/camel-core-2.23.2.fuse-7_11_0-00039.pom (31 kB at 1.9 kB/s) ... Downloading from fuse-patch: zip:file:/tmp/fuse-springboot-patch-hf3-7.11.0.fuse-sb2-7_11_0-00033.zip-8160136593481898571/org/apache/camel/camel-jpa/2.23.2.fuse-7_11_0-00039/camel-jpa-2.23.2.fuse-7_11_0-00039.pom Downloaded from fuse-patch: zip:file:/tmp/fuse-springboot-patch-hf3-7.11.0.fuse-sb2-7_11_0-00033.zip-8160136593481898571/org/apache/camel/camel-jpa/2.23.2.fuse-7_11_0-00039/camel-jpa-2.23.2.fuse-7_11_0-00039.pom (10 kB at 7.1 kB/s) ... Downloading from fuse-patch: zip:file:/tmp/fuse-springboot-patch-hf3-7.11.0.fuse-sb2-7_11_0-00033.zip-8160136593481898571/org/apache/camel/camel-core/2.23.2.fuse-7_11_0-00039/camel-core-2.23.2.fuse-7_11_0-00039.jar Downloading from fuse-patch: zip:file:/tmp/fuse-springboot-patch-hf3-7.11.0.fuse-sb2-7_11_0-00033.zip-8160136593481898571/org/apache/camel/camel-jpa/2.23.2.fuse-7_11_0-00039/camel-jpa-2.23.2.fuse-7_11_0-00039.jar Downloaded from fuse-patch: zip:file:/tmp/fuse-springboot-patch-hf3-7.11.0.fuse-sb2-7_11_0-00033.zip-8160136593481898571/org/apache/camel/camel-jpa/2.23.2.fuse-7_11_0-00039/camel-jpa-2.23.2.fuse-7_11_0-00039.jar (83 kB at 38 kB/s) Downloaded from fuse-patch: zip:file:/tmp/fuse-springboot-patch-hf3-7.11.0.fuse-sb2-7_11_0-00033.zip-8160136593481898571/org/apache/camel/camel-core/2.23.2.fuse-7_11_0-00039/camel-core-2.23.2.fuse-7_11_0-00039.jar (5.2 MB at 2.0 MB/s)