You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by th...@apache.org on 2026/02/04 21:59:20 UTC

(incubator-kie-tools) branch main updated: kie-tools#3422: m2-repo-via-http not resolving local maven metadata files (#3423)

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

thiagoelg pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new 5f9f12dd274 kie-tools#3422: m2-repo-via-http not resolving local maven metadata files (#3423)
5f9f12dd274 is described below

commit 5f9f12dd27451e4b0b55e4e139762e01ba2bb2c2
Author: Fabrizio Antonangeli <fa...@gmail.com>
AuthorDate: Wed Feb 4 22:59:15 2026 +0100

    kie-tools#3422: m2-repo-via-http not resolving local maven metadata files (#3423)
---
 packages/maven-m2-repo-via-http-image/Containerfile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/packages/maven-m2-repo-via-http-image/Containerfile b/packages/maven-m2-repo-via-http-image/Containerfile
index 88c1053f8c6..d65536397af 100644
--- a/packages/maven-m2-repo-via-http-image/Containerfile
+++ b/packages/maven-m2-repo-via-http-image/Containerfile
@@ -32,7 +32,8 @@ RUN echo "Mutex posixsem" >> /etc/httpd/conf/httpd.conf \
  && sed -i "s/Options Indexes FollowSymLinks/Options +Indexes +FollowSymLinks/" /etc/httpd/conf/httpd.conf \
  && sed -i "$ a ServerTokens Prod" /etc/httpd/conf/httpd.conf \
  && sed -i "$ a ServerSignature Off" /etc/httpd/conf/httpd.conf \
- && sed -i "\$ a <Directory \"/var/www/html\">\n    Options +Indexes +FollowSymLinks\n    AllowOverride None\n    Require all granted\n    IndexOptions FancyIndexing SuppressDescription SuppressHTMLPreamble SuppressLastModified SuppressSize NameWidth=* SuppressColumnSorting SuppressIcon SuppressRules\n    HeaderName /header.html\n    ReadmeName /readme.html\n</Directory>" /etc/httpd/conf/httpd.conf
+ && sed -i "\$ a <Directory \"/var/www/html\">\n    Options +Indexes +FollowSymLinks\n    AllowOverride None\n    Require all granted\n    IndexOptions FancyIndexing SuppressDescription SuppressHTMLPreamble SuppressLastModified SuppressSize NameWidth=* SuppressColumnSorting SuppressIcon SuppressRules\n    HeaderName /header.html\n    ReadmeName /readme.html\n</Directory>" /etc/httpd/conf/httpd.conf \
+ && sed -i "\$ a # Fallback: serve maven-metadata-local.xml when maven-metadata.xml is requested but not found\nLoadModule rewrite_module modules/mod_rewrite.so\nRewriteEngine On\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_URI} maven-metadata\\\\.xml\$\nRewriteRule ^(.*)maven-metadata\\\\.xml\$ \$1maven-metadata-local.xml [L]" /etc/httpd/conf/httpd.conf 
 
 VOLUME /var/www/html/
 
@@ -45,4 +46,4 @@ EXPOSE $PORT
 HEALTHCHECK --interval=1s --timeout=60s CMD curl -f http://localhost:"$PORT" || exit 1
 
 # Start httpd when the container launches
-CMD ["httpd", "-D", "FOREGROUND"]
\ No newline at end of file
+CMD ["httpd", "-D", "FOREGROUND"]


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org