You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using open-liberty:23.0.0.6-kernel-slim-java11-openj9-ubi.
The problem: (features.sh)
Regardless of the existing proxy settings, script reports, that it can not access my local maven repository.
Tried dozens of combinations: with & w/o ENV http_proxy & https_proxy & no_proxy values in Dockerfile.
With & w/o proxy set in featureUtility.properties & repositories.properties.
All I see in the log is just:
> [17/19] RUN features.sh:
1.285 <---------------------> 0.00%
1.343 https://artifact.myhost.com/internal cannot be connected
1.356 <---------------------> 0.00%
1.431 https://artifact.myhost.com/external cannot be connected
1.442 <---------------------> 0.00%
1.504 https://artifact.myhost.com/thirdparty cannot be connected
1.511 <---------------------> 0.00%
1.534 https://repo.maven.apache.org/maven2/ cannot be connected
1.547 <---------------------> 0.00%
1.554 CWWKF1390E: The configured Maven Repository cannot be reached. Verify that your computer has network access and firewalls are configured correctly, then try the action again. If the connection still fails, the repository server might be temporarily unavailable.
Clarification: https://repo.maven.apache.org/maven2/ is blocked in my network, so the log message seems to be OK. Even with proxy this one isn't allowed in our network.
@suxlv2 Feature Utility doesn't support no_proxy currently but it looks like there is an issue already tracking that here OpenLiberty/open-liberty#23684.
Unless you are able to use your local network (i.e. build with --network=host) that proxies to your local Maven repo on your host or connect to a manually created network that proxies to your local Maven repo within a container, it may not be currently possible.
Edit: looks like FEATURE_REPO_URL won't support this type of reverse proxy approach as you aren't able to access https://repo.maven.apache.org/maven2/
Could you please elaborate a bit more on the need for the no_proxy flag?
no_proxy isn't used or just ignored.
Using
open-liberty:23.0.0.6-kernel-slim-java11-openj9-ubi
.The problem: (
features.sh
)Regardless of the existing proxy settings, script reports, that it can not access my local maven repository.
Tried dozens of combinations: with & w/o ENV http_proxy & https_proxy & no_proxy values in Dockerfile.
With & w/o proxy set in
featureUtility.properties
&repositories.properties
.All I see in the log is just:
Clarification: https://repo.maven.apache.org/maven2/ is blocked in my network, so the log message seems to be OK. Even with proxy this one isn't allowed in our network.
Dockerfile
(removed/masked few lines)Clarification: The
app.war
was built in the same VM (fetched artifacts from the maven repo just fine), right before running the docker build.Server.xml
(features part)fetureUtility.properties
repositories.properties
The text was updated successfully, but these errors were encountered: