Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8653703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:36:27+00:00 2026-06-12T14:36:27+00:00

I have looked at the answer here, but it did not quite apply: Gradle

  • 0

I have looked at the answer here, but it did not quite apply: Gradle Not Resolving Maven Repo on localhost

basically, I have a trivial gradle project and corresponding build.gradle:

apply plugin: 'maven'
apply plugin: 'java'

repositories {
  mavenRepo (
    name: 'Snapfish Repo',
    url: 'op2-ivy1.hpd5.aus1.snapfish.com:40000/archiva/repository/snapfish/'
  )
  // mavenCentral()
}

dependencies {
  compile group:'org.slf4j', name: 'slf4j-api', version: '1.6.6'
}

when I run

gradle dependencies

I get the following output:

compile - Classpath for compiling the main sources.
No dependencies
:dependencies FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':dependencies'.
> Could not resolve all dependencies for configuration ':compile'.
   > Could not resolve group:org.slf4j, module:slf4j-api, version:1.6.6.
     Required by:
         :junk:unspecified
      > Target host must not be null, or set in parameters.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

If I use mavenCental(), it works correctly. The relevant debug output is this:

13:52:35.494 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache dynamic-revisions.bin (/home/julio/.gradle/caches/artifacts-14/dynamic-revisions.bin)
13:52:35.498 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache module-metadata.bin (/home/julio/.gradle/caches/artifacts-14/module-metadata.bin)
13:52:35.502 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-metadata.bin (/home/julio/.gradle/caches/artifacts-14/module-metadata.bin)
13:52:35.502 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache dynamic-revisions.bin (/home/julio/.gradle/caches/artifacts-14/dynamic-revisions.bin)
13:52:35.503 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (/home/julio/.gradle/caches/artifacts-14).
13:52:35.505 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Snapfish Repo: no namespace defined: using system
13:52:35.510 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]                tried op2-ivy1.hpd5.aus1.snapfish.com:40000/archiva/repository/snapfish/org/slf4j/slf4j-api/1.6.6/slf4j-api-1.6.6.pom
13:52:35.511 [DEBUG] [org.gradle.api.internal.artifacts.repositories.ExternalResourceResolver] Loading op2-ivy1.hpd5.aus1.snapfish.com:40000/archiva/repository/snapfish/org/slf4j/slf4j-api/1.6.6/slf4j-api-1.6.6.pom
13:52:35.514 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on artifact cache (/home/julio/.gradle/caches/artifacts-14).
13:52:35.515 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
13:52:35.516 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache artifact-at-url.bin (/home/julio/.gradle/caches/artifacts-14/artifact-at-url.bin)
13:52:35.517 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache artifact-at-url.bin (/home/julio/.gradle/caches/artifacts-14/artifact-at-url.bin)
13:52:35.517 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (/home/julio/.gradle/caches/artifacts-14).
13:52:35.518 [DEBUG] [org.gradle.api.internal.externalresource.transfer.DefaultCacheAwareExternalResourceAccessor] Constructing external resource: op2-ivy1.hpd5.aus1.snapfish.com:40000/archiva/repository/snapfish/org/slf4j/slf4j-api/1.6.6/slf4j-api-1.6.6.pom
13:52:35.579 [INFO] [org.gradle.api.internal.file.collections.DirectoryFileTree] file or directory '/home/julio/.gradle/caches/artifacts-14/filestore', not found
13:52:35.581 [DEBUG] [org.gradle.api.internal.externalresource.transport.http.HttpResourceAccessor] Constructing external resource: op2-ivy1.hpd5.aus1.snapfish.com:40000/archiva/repository/snapfish/org/slf4j/slf4j-api/1.6.6/slf4j-api-1.6.6.pom
13:52:35.583 [DEBUG] [org.gradle.api.internal.externalresource.transport.http.HttpClientHelper] Performing HTTP GET: op2-ivy1.hpd5.aus1.snapfish.com:40000/archiva/repository/snapfish/org/slf4j/slf4j-api/1.6.6/slf4j-api-1.6.6.pom
13:52:35.719 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Attaching #junk;unspecified(compile) to its parents.
13:52:35.726 [QUIET] [org.gradle.api.tasks.diagnostics.DependencyReportTask_Decorated] No dependencies
13:52:35.727 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@303020ad, org.gradle.logging.internal.logback.LogbackLoggingConfigurer@27b15692, org.gradle.logging.internal.JavaUtilLoggingConfigurer@6baa9f99]
13:52:35.728 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':dependencies'
13:52:35.728 [LIFECYCLE] [org.gradle.TaskExecutionLogger] :dependencies FAILED
13:52:35.735 [ERROR] [org.gradle.BuildExceptionReporter]
13:52:35.736 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
13:52:35.737 [ERROR] [org.gradle.BuildExceptionReporter]
13:52:35.737 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
13:52:35.738 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':dependencies'.
13:52:35.738 [ERROR] [org.gradle.BuildExceptionReporter] > Could not resolve all dependencies for configuration ':compile'.
13:52:35.739 [ERROR] [org.gradle.BuildExceptionReporter]    > Could not resolve group:org.slf4j, module:slf4j-api, version:1.6.6.
13:52:35.740 [ERROR] [org.gradle.BuildExceptionReporter]      Required by:
13:52:35.740 [ERROR] [org.gradle.BuildExceptionReporter]          :junk:unspecified
13:52:35.741 [ERROR] [org.gradle.BuildExceptionReporter]       > Target host must not be null, or set in parameters.
13:52:35.744 [ERROR] [org.gradle.BuildExceptionReporter]
13:52:35.744 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
13:52:35.746 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':dependencies'.
13:52:35.746 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:68)
13:52:35.747 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)

I cannot see why gradle does not work against archiva. In our network, the link op2-ivy1.hpd5.aus1.snapfish.com:40000/archiva/repository/snapfish/org/slf4j/slf4j-api/1.6.6/slf4j-api-1.6.6.pom retrieves the POM. What am I doing wrong? Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:36:28+00:00Added an answer on June 12, 2026 at 2:36 pm

    Try adding http:// at the beginning of your URL:

    url: 'http://op2-ivy1.hpd5.aus1.snapfish.com:40000/archiva/repository/snapfish/'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have looked on here and tried every answer available, but it is still
Have looked quite hard for this answer but having no luck. I have 3
I have looked but have not found a specific answer for changing just one
Have looked for an answer for a while here but nothing works so far.
I have looked everywhere for a simple answer to this but I have not
Have looked for an answer here, but couldn't find one. When you call: myTableAdapter.Update(myDataTable);
Okay, I have looked hard for this answer, but all the websites, even the
I looked around but haven't found an answer to this. I have a CentOS
I've looked around on stack overflow for days and have not seen an answer
I've looked and looked and I'm not seeing the answer to this. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.