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
I have a project in gitlab, and for deploy to a gitlab maven registry, I need to set the custom http header in maven settings file (so-called ci_settings.xml):
But when I try to deploy to the gitlab maven registry, I got a error 401 and I got a nothing for dependencies (404?). I tried open netcat server nc -l 7777 to see requests and I got this ❌ (fail):
GET /api/v4/projects/123/packages/maven/my/example/group/my-example-connector/1.0.0/my-example-connector-1.0.0.pom HTTP/1.1Cache-Control: no-cache, no-storePragma: no-cacheHost: localhost:7777Connection: Keep-AliveUser-Agent: Apache-Maven/3.8.6 (Java 11.0.16; Linux 6.5.0-28-generic)Accept-Encoding: gzip,deflate
I did not check the build result to see if it actually runs on mule-runtime. I only checked whether the header was inserted or not.
When I disable the plugin, the dependencies are downloaded, but then there are difficulties with placing the jar in the gitlab maven registry. I have to use maven low level or even use curl.
Does anyone know
If mule-maven-plugin actually affects the maven settings file? Or is it some property or some dependency that does this?
Have I specified the http header settings correctly?
Is there any plan to support custom http headers?
The text was updated successfully, but these errors were encountered:
SGmuwa
changed the title
The configuration httpHeaders in pom server setting is not working
The configuration httpHeaders in pom server settings is not working
May 17, 2024
I have a project in gitlab, and for deploy to a gitlab maven registry, I need to set the custom http header in maven settings file (so-called
ci_settings.xml
):But when I try to deploy to the gitlab maven registry, I got a error
401
and I got a nothing for dependencies (404
?). I tried open netcat servernc -l 7777
to see requests and I got this ❌ (fail):When I use
3.8.2
, I got this ✅ (ok):For tests this issue, I manipulate this part of my
pom.xml
:mule.maven.plugin.version
app.runtime
3.0.0
4.4.0
3.0.1
4.4.0
3.3.4
4.4.0
3.4.2
4.4.0
3.5.1
4.0.0
,4.4.0
3.5.3
4.4.0
3.6.3
4.4.0
3.7.3
4.4.0
3.8.0
4.4.0
3.8.2
4.4.0
,4.6.0
3.8.7
4.4.0
,4.6.0
4.0.0
4.4.0
,4.6.0
4.1.0
4.4.0
,4.6.0
4.1.2
4.4.0
,4.6.0
I did not check the build result to see if it actually runs on mule-runtime. I only checked whether the header was inserted or not.
When I disable the plugin, the dependencies are downloaded, but then there are difficulties with placing the jar in the gitlab maven registry. I have to use maven low level or even use curl.
Does anyone know
mule-maven-plugin
actually affects the maven settings file? Or is it some property or some dependency that does this?The text was updated successfully, but these errors were encountered: