Closed JuergenHaug closed 5 years ago
Can you have a look at what C:\Dev\Tools\svn\hsl\utilities\build\gradle_offline_script\build\tmp\syncRemoteRepositories\ivysettings.xml
looks like and post it here? (Obviously mask out credentials before posting).
I face the same issue. For me it contains:
<credentials host='<host>' username='<username>' passwd='<password>'/>
For me it is a Nexus repository
Content of ivysettings.xml
:
<ivysettings>
<settings defaultResolver='~~~remote~~~resolvers~~~' />
<caches
defaultCacheDir='C:\Dev\Tools\svn\hsl\utilities\build\gradle_offline_repo'
artifactPattern='[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])'
ivyPattern='[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])'
resolutionCacheDir='C:\Dev\Tools\svn\hsl\utilities\build\gradle_offline_script\build\tmp/ivypot/syncRemoteRepositories' />
<credentials host='host' username='username'
passwd='password' />
<resolvers>
<chain name="~~~remote~~~resolvers~~~" returnFirst="true">
<ibiblio name='maven' m2compatible='true' root='url' />
</chain>
</resolvers>
</ivysettings>
It seems that the maven credentials are not used when accessing a maven repo:
When running
gradle sync
(Gradle 4.3.1, Windows10 64bit, Java 1.8) the dependency cannot be resolved. Here is the debug output of gradle:The maven repo is provided by an artifactory server and I can see following requests made:
But when I re-use the exact same repository block from above to resolve the dependencies online, it works. The second request now contains the user apparently: