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

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


The following commit(s) were added to refs/heads/master by this push:
     new 5fb21cc  Avoid camel-dependencies/pom.xml regen issue with http -> 
https
5fb21cc is described below

commit 5fb21cce519040a099894a794288682dbcb47d9a
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu May 28 07:02:47 2020 +0200

    Avoid camel-dependencies/pom.xml regen issue with http -> https
---
 .../org/apache/camel/maven/sync/properties/SyncPropertiesMojo.java  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/tooling/maven/sync-properties-maven-plugin/src/main/java/org/apache/camel/maven/sync/properties/SyncPropertiesMojo.java
 
b/tooling/maven/sync-properties-maven-plugin/src/main/java/org/apache/camel/maven/sync/properties/SyncPropertiesMojo.java
index d47cc0d..3ccd61f 100644
--- 
a/tooling/maven/sync-properties-maven-plugin/src/main/java/org/apache/camel/maven/sync/properties/SyncPropertiesMojo.java
+++ 
b/tooling/maven/sync-properties-maven-plugin/src/main/java/org/apache/camel/maven/sync/properties/SyncPropertiesMojo.java
@@ -95,9 +95,13 @@ public class SyncPropertiesMojo extends AbstractMojo {
             int pos = sb.indexOf("<project");
             sb.insert(pos, text2);
 
+            // avoid annoying http -> https change when rebuilding
+            String out = sb.toString();
+            out = out.replace("https://maven.apache.org/xsd/maven-4.0.0.xsd";, 
"http://maven.apache.org/xsd/maven-4.0.0.xsd";);
+
             // write lines
             FileOutputStream outputStream = new FileOutputStream(targetPom);
-            byte[] strToBytes = sb.toString().getBytes();
+            byte[] strToBytes = out.getBytes();
             outputStream.write(strToBytes);     
             outputStream.close();
         } catch (Exception ex) {

Reply via email to