Is there a Neo4j maven repository for old dependencies? - java

I have an old project which uses spring data and neo4j. I'm trying to build it, but maven is not able to find the neo4j-cypher-dsl dependency. The dependency is defined as follows:
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-cypher-dsl</artifactId>
<version>2.0.1</version>
</dependency>
These are the repositories that I have configured in pom.xml:
<repositories>
<repository>
<id>neo4j</id>
<url>http://m2.neo4j.org/</url>
</repository>
<repository>
<id>neo4j-releases</id>
<url>http://m2.neo4j.org/content/repositories/releases/</url>
</repository>
</repositories>
And this is the error that I'm getting from maven:
[ERROR] Failed to execute goal on project evidencefactory: Could not
resolve dependencies for project
com.evidencefactory:evidencefactory:war:0.9-SNAPSHOT: Failed to
collect dependencies at
org.springframework.data:spring-data-neo4j-rest:jar:3.1.0.RELEASE ->
org.springframework.data:spring-data-neo4j:jar:3.1.0.RELEASE ->
org.neo4j:neo4j-cypher-dsl:jar:2.0.1: Failed to read artifact
descriptor for org.neo4j:neo4j-cypher-dsl:jar:2.0.1: Could not
transfer artifact org.neo4j:neo4j-cypher-dsl:pom:2.0.1 from/to neo4j
(http://m2.neo4j.org/): Failed to transfer file
http://m2.neo4j.org/org/neo4j/neo4j-cypher-dsl/2.0.1/neo4j-cypher-dsl-2.0.1.pom
with status code 502 -> [Help 1]
Does anyone know where I can find this old neo4j dependency?

Updating my answer to use another repo.
See my comment below for the location of the artifacts.
Adding this to my pom.xml builds this dependency.
<repositories>
<repository>
<id>xebialabs-releases</id>
<url>https://plugins.xebialabs.com/nexus/content/groups/public/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

Related

Maven clean install jbossweb dependency unauthorized

On my project, i try to install it for the first time. But when i launch clean install, it can't download the dependency "jbossweb" because of unauthorized.
On mvnrepository( https://mvnrepository.com/artifact/org.jboss.web/jbossweb/7.4.10.Final) , it says this artifact is located at Spring Plugins repository (https://repo.spring.io/plugins-release/).
That is what I have in my pom.xml :
<repositories>
<repository>
<id>securecentral</id>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
<repository>
<id>spring</id>
<url>https://repo.spring.io/plugins-release/</url>
</repository>
</repositories>
And it define this dependency like this :
<dependency>
<groupId>org.jboss.web</groupId>
<artifactId>jbossweb</artifactId>
<version>7.4.10.Final</version>
</dependency>
The error when I launch clean install :
[ERROR] Failed to execute goal on project Pilotage_WS: Could not
resolve dependencies for project bpce:Pilotage_WS:war:1.0-SNAPSHOT:
Failed to collect dependencies at
org.jboss.web:jbossweb:jar:7.4.10.Final: Failed to read artifact
descriptor for org.jboss.web:jbossweb:jar:7.4.10.Final: Could not
transfer artifact org.jboss.web:jbossweb:pom:7.4.10.Final from/to
spring (https://repo.spring.io/plugins-release/): authentication
failed for
https://repo.spring.io/plugins-release/org/jboss/web/jbossweb/7.4.10.Final/jbossweb-7.4.10.Final.pom,
status: 401 Unauthorized -> [Help 1]
I don't understand, we need authentication ? If yes i couldn't find any information about this.
Moreover, when I go on https://repo.spring.io/plugins-release/, it redirects to https://repo.spring.io/ui/native/plugins-release/, but i cannot find the dependency here anyway.
Any idea ?
Try with JBoss repository:
<repositories>
...
<repository>
<id>jboss-releases</id>
<url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
</repository>
</repositories>

Jira REST API Java - missing artifact

I have a problem when I want to connect to my jira localhost using java. I created maven project, and added dependency of atlassian plugin in pom.xml file. Here that dependency in my pom.xml:
<dependency>
<groupId>com.atlassian.plugins</groupId>
<artifactId>atlassian-plugins-osgi-javaconfig</artifactId>
<version>0.3.1</version>
</dependency>
So I'm getting this error: "Missing artifact com.atlassian.plugins:atlassian-plugins-osgi-javaconfig:jar:0.3.1".
As stated in maven repository you have to specify their repository, like this:
<repositories>
<repository>
<id>Atlassian</id>
<name>Atlassian Public</name>
<url>https://maven.atlassian.com/content/repositories/atlassian-public</url>
</repository>
</repositories>
I came here as I had the same issue. I've tried the solution provided by #WoAiNii but it failed with a cryptic message. Yet one part of his answer brought me to the correct solution:
<repository>
<id>atlassian-public</id>
<url>https://packages.atlassian.com/mvn/maven-external/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
This is provided here: https://developer.atlassian.com/server/framework/atlassian-sdk/atlassian-maven-repositories-2818705/
This unfortunately brought up another error:
Failed to execute goal on project Java2Jira: Could not resolve dependencies for project com.mycompany:Java2Jira:jar:1.0-SNAPSHOT: Failure to find jta:jta:jar:1.0.1 in https://packages.atlassian.com/mvn/maven-external/ was cached in the local repository, resolution will not be reattempted until the update interval of atlassian-public has elapsed or updates are forced -> [Help 1]
This was discussed on the internal board by Atlassian and the solution seems to be just to add it externally by adding this to your dependencies:
<dependency>
<groupId>jta</groupId>
<artifactId>jta</artifactId>
<version>1.0.1b</version>
<scope>provided</scope>
</dependency>

Unable to import library with maven

I am trying to import Ripple Effect library by using maven https://github.com/traex/RippleEffect.
It says "The lib is available on Maven Central, you can find it with Gradle, please". I have no idea what Gradle, please is and it's information (http://gradleplease.appspot.com/#rippleeffect) didn't help me at all.
I found how to import it by using maven. I added this dependency to my POM:
<dependency>
<groupId>com.github.traex.rippleeffect</groupId>
<artifactId>library</artifactId>
<version>1.3</version>
</dependency>
and made sure that I have Maven central repository:
<repository>
<id>central</id>
<name>Maven Repository Switchboard</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
<releases>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
However, when I try to run the project, it says:
Failed to execute goal on project ProjectName: Could not resolve dependencies for project lt.adnera:ProjectName:apk:0.0.1-SNAPSHOT: Failure to find com.github.traex.rippleeffect:library:jar:1.3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
Any ideas?
According to http://repo1.maven.org/maven2/com/github/traex/rippleeffect/library/1.3/library-1.3.pom the packaging is aar so there is no jar which can be downloaded.
Try:
<dependency>
<groupId>com.github.traex.rippleeffect</groupId>
<artifactId>library</artifactId>
<version>1.3</version>
<type>aar</type>
</dependency>
additional Infos: http://simpligility.github.io/android-maven-plugin/aar.html

Maven looking for dependency in wrong repo

I have a snapshot maven repo defined:
<repositories>
<repository>
<id>tmp-repo</id>
<url>https://my-snapshot-repo</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
The problem is, for some reason, maven is looking for the following two dependencies:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcomponents-core</artifactId>
<version>4.4</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcomponents-client</artifactId>
<version>4.4</version>
</dependency>
In the snapshot repo rather than the stable maven repo. Each compile gives this error:
[ERROR] Failed to execute goal on project myProject: Could not resolve
dependencies for project com.myGroupId:myArtifact:jar:1.0-SNAPSHOT:
The following artifacts could not be resolved:
org.apache.httpcomponents:httpcomponents-core:jar:4.4,
org.apache.httpcomponents:httpcomponents-client:jar:4.4: Could not
find artifact org.apache.httpcomponents:httpcomponents-core:jar:4.4 in
tmp-repo (https://my-snapshot-repo)
How do I force maven to not look for this dependency in the snapshot repo?
Before your edit, your original configuration said:
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
You said that this repo holds releases, as well as snapshots, so Maven is looking there.
Now you've removed <releases>, it shouldn't be doing that. Make sure you don't have any other repository definitions taking effect.

Spring 3.0 and Maven

I'm trying to configure Spring 3.0 with Maven. I've read http://blog.springsource.com/2009/12/02/obtaining-spring-3-artifacts-with-maven/
In my pom.xml I've defined the following repositories:
<repositories>
<repository>
<id>com.springsource.repository.bundles.release</id>
<name>EBR Spring Release Repository</name>
<url>http://repository.springsource.com/maven/bundles/release</url>
</repository>
<repository>
<id>com.springsource.repository.bundles.external</id>
<name>EBR External Release Repository</name>
<url>http://repository.springsource.com/maven/bundles/external</url>
</repository>
</repositories>
Then I tried with the most basic dependency:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.core</artifactId>
<version>${org.springframework.version}</version>
</dependency>
where
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.springframework.version>3.0.5-RELEASE</org.springframework.version>
</properties>
However, if he spring-core is not found.
[WARNING] The POM for org.springframework:org.springframework.core:jar:3.0.5-RELEASE is missing, no dependency information available
[ERROR] Failed to execute goal on project spring-recipes: Could not resolve dependencies for project org.obliquid:spring-recipes:war:0.0.1-SNAPSHOT: Could not find artifact org.springframework:org.springframework.core:jar:3.0.5-RELEASE in com.springsource.repository.bundles.release (http://repository.springsource.com/maven/bundles/release) -> [Help 1]
What can I do to solve the problem?
It should be
<org.springframework.version>3.0.5.RELEASE</org.springframework.version>
instead of
<org.springframework.version>3.0.5-RELEASE</org.springframework.version>

Categories

Resources