You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/11/30 13:03:25 UTC
[camel] branch main updated: CAMEL-18778: camel-jbang - Export to quarkus on windows generate wrong GAVs in pom.xml
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 00e5fcbf650 CAMEL-18778: camel-jbang - Export to quarkus on windows generate wrong GAVs in pom.xml
00e5fcbf650 is described below
commit 00e5fcbf6508ba574a727ca39c77c687b1a3b039
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Nov 30 14:03:04 2022 +0100
CAMEL-18778: camel-jbang - Export to quarkus on windows generate wrong GAVs in pom.xml
---
.../org/apache/camel/dsl/jbang/core/commands/ExportQuarkus.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportQuarkus.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportQuarkus.java
index a8cf18110dc..cc44f627417 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportQuarkus.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportQuarkus.java
@@ -405,13 +405,9 @@ class ExportQuarkus extends Export {
// shrinkwrap does not return POM file as result (they are hardcoded to be filtered out)
// so after this we download a JAR and then use its File location to compute the file for the downloaded POM
MavenDependencyDownloader downloader = main.getCamelContext().hasService(MavenDependencyDownloader.class);
- downloader.downloadArtifact("io.quarkus.platform", "quarkus-camel-bom:pom", quarkusVersion);
- MavenArtifact ma = downloader.downloadArtifact("io.quarkus", "quarkus-core", quarkusVersion);
+ MavenArtifact ma = downloader.downloadArtifact("io.quarkus.platform", "quarkus-camel-bom:pom", quarkusVersion);
if (ma != null && ma.getFile() != null) {
String name = ma.getFile().getAbsolutePath();
- name = name.replace("io/quarkus/quarkus-core", "io/quarkus/platform/quarkus-camel-bom");
- name = name.replace("quarkus-core", "quarkus-camel-bom");
- name = name.replace(".jar", ".pom");
File file = new File(name);
if (file.exists()) {
DocumentBuilderFactory dbf = XmlHelper.createDocumentBuilderFactory();