Could not transfer artifact com.algolia:algoliasearch-core:pom:3.6.1

I added dependency pom.xml

<dependency>
		<groupId>com.algolia</groupId>
		<artifactId>algoliasearch-core</artifactId>
		<version>3.6.1</version>
	</dependency>

	<dependency>
		<groupId>com.algolia</groupId>
		<artifactId>algoliasearch-apache</artifactId>
		<version>3.6.1</version>
	</dependency>

but maven I get the following error

Could not transfer artifact com.algolia:algoliasearch-core:pom:3.6.1 from/to central (https://onee.jfrog.io/artifactory/libs-release): Access denied to: https://onee.jfrog.io/artifactory/libs-release/com/algolia/algoliasearch-core/3.6.1/algoliasearch-core-3.6.1.pom

Hello @denizaydogdu,

Sorry to hear you have an issue fetching our library.

It seems you are trying to fetch the Algolia Java libraries from JFrog directly and I’m not sure it’s doable. As of today, the Algolia Java library is only made available on two different repositories:

  • Maven Central
  • JCenter

For Maven Central, you shouldn’t need to configure anything as it’s the default place where Maven will look for, if you haven’t changed your Maven configuration ~/.m2/settings.xml otherwise.

For JCenter, you most probably need to add a new profile to your Maven configuration file under ~/.m2/settings. The correct way of adding JCenter to your Maven configuration is documented here: https://github.com/bintray/bintray-examples/blob/master/maven-example/settings.xml.

If none of these solutions work, could you share with us your pom.xml and ~/.m2/settings.xml configuration files? Keep in mind that they might contain some sensitive data, so make sure to not share secrets or anything while doing so.

1 Like