I'm trying to use this github repo: https://github.com/entropia/libsocket-can-java in pom.xml file. I couldn't find any maven dependency for this github repo. I added jitpack repository and maven dependency to pom file by following this link: https://jitpack.io/p/entropia/libsocket-can-java. Here is my code:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.entropia</groupId>
<artifactId>libsocket-can-java</artifactId>
<version>4433bb7</version>
</dependency>
where 4433bb7 is the latest commit number. I get this error when I try to build:
Missing artifact com.github.entropia:libsocket-can-java:jar:4433bb7
Could not resolve dependencies for projec: Failure to find com.github.entropia:libsocket-can-java:jar:4433bb7 in https://jitpack.io was cached in the local repository, resolution will not be reattempted until the update interval of jitpack.io has elapsed or updates are forced -> [Help 1]
I tried with bundle versions: 0.1.0, 1.0.0 still no luck. Please help me to resolve this issue. Thank you all in advance.
Seems issue with the specific version. try latest snapshot:
<dependency>
<groupId>com.github.entropia</groupId>
<artifactId>libsocket-can-java</artifactId>
<version>master-SNAPSHOT</version>
</dependency>
Related
I would like to add the following jar
gson-extras-1.0-SNAPSHOT.jar
the jar structure is the following
looking at the manifest the version is
Manifest-Version: 1.0
the pom is the following
<repositories>
<repository>
<id>grupoicarep</id>
<url>file:///C:/stix/stix_ica/stix2/lib/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.google.gson</groupId>
<artifactId>typeadapters</artifactId>
<version>0.1</version>
</dependency>
but it shows the following error:
Failed to execute goal on project stix2: Could not resolve dependencies for project es.grupoica:stix2:jar:0.0.1-SNAPSHOT: Failure to find com.google.gson:typeadapters:jar:0.1 in file:///C:/stix/stix_ica/stix2/lib/ was cached in the local repository, resolution will not be reattempted until the update interval of grupoicarep has elapsed or updates are forced -> [Help 1]
[ERROR]
I have tried many combinations but I am just guessing and not getting the right result
I donĀ“t know what I am doing wrong
many thanks in advance
Ana
Use below dependency to include the jar available in the local machine to maven.
<dependency>
<groupId>groupid</groupId>
<artifactId>artifactid</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}\lib\JAR_NAME.jar</systemPath>
</dependency>
I'm having an issue adding a maven dependency, it's for a Twitter API dependency but I'll try and keep the question as generic as possible.
The dependency is located onthe maven site here
It states that the repo is here:
Note: this artifact it located at Spring Plugins repository (http://repo.spring.io/plugins-release/)
So I have created a pom with the specified dependency and repo:
<repositories>
<repository>
<id>maven_twitter</id>
<name>twitter</name>
<url>http://repo.spring.io/plugins-release/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.twitter.sdk.android</groupId>
<artifactId>twitter</artifactId>
<version>3.1.1</version>
</dependency>
</dependencies>
The repository ID and Name weren't given so I've given them a suitable name - is this wrong?
The error received is:
[ERROR] Failed to execute goal on project java: Could not resolve dependencies for project com.project.java:java:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.twitter.sdk.android:tweet-composer:jar:3.1.1, com.twitter.sdk.android:twitter-core:jar:3.1.1, com.twitter.sdk.android:twitter:jar:3.1.1, com.twitter.sdk.android:tweet-ui:jar:3.1.1, com.android.support:support-v4:jar:23.1.1, com.android.support:recyclerview-v7:jar:23.1.1: Could not find artifact com.twitter.sdk.android:tweet-composer:jar:3.1.1 in maven_twitter (http://repo.spring.io/plugins-release/) -> [Help 1]
So my question is: is simply adding the repo and dependency details of the Maven site enough? Am I missing something?
I am using maven to add dependency. I added
<!-- https://mvnrepository.com/artifact/org.jboss.seam/jboss-seam -->
<dependency>
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam</artifactId>
<version>2.3.5.Final-redhat-1</version>
</dependency>
jboss-seam jar by using above lines in pom.xml. When I run mvn clean install it gives an error
What is the issue and how to solve this error?
Try adding the below repository in your pom file,
<repositories>
<repository>
<id>redhat</id>
<url>https://maven.repository.redhat.com/ga/</url>
</repository>
</repositories>
The artifact is not available in maven central repository. Its available only in redhat-ga repository.
I am trying add this dependency in my pom.xml, but maven is not able to resolve the dependency for the same.
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>4.3.4.RELEASE</version>
</dependency>
I was working on my other computer some weeks ago. I switched my laptop, and trying to setup this project, but it's not working anymore.
Error:
Missing artifact org.springframework:spring-test:jar:4.3.4.RELEASE
I see this this is available in the maven central.
http://search.maven.org/#artifactdetails%7Corg.springframework%7Cspring-test%7C4.3.4.RELEASE%7Cjar
Does anybody have any idea why is it happening?
Thank you #Reek for the comment.
I added spring repository url in my pom.xml and it started working.
<repository>
<id>repository.spring.release</id>
<name>Spring GA Repository</name>
<url>http://repo.spring.io/release</url>
</repository>
You do not need to add spring specific repository to use those artifacts.
Maven works as follows:
Firstly Maven tries to find artifact in the local repository.
Otherwise Maven tries to download artifacts from http://repo1.maven.org/maven2/ by default.
If you wanna build your project on another computer for the first time than there is no local repository at the moment. There are two possible reasons for Error on the second stage:
Maven central repository is unavailable from another computer: check this URL.
Mirror of Maven central is misconfigured in settings.xml like this:
<mirrors>
<mirror>
<id>central-proxy</id>
<name>Proxy of Maven Central</name>
<url>http://some/invalid/url/here</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
Detailed logs are required.
I have a simple spring3,hibernate 3 project.When am trying to build the project using Maven i got the following errors.
Downloading: http://repo1.maven.org/maven2/org/hibernate/hibernate-entitymanager/3.3.2.ga/hibernate-entitymanager-3.3.2.ga.jar
[INFO] Unable to find resource 'org.hibernate:hibernate-entitymanager:jar:3.3.2.ga' in repository central (http://repo1.maven.org/maven2)
[INFO] Failed to resolve artifact.
Missing:
1) org.hibernate:hibernate-entitymanager:jar:3.3.2.ga
Anybody know what is the issue, i put anything wrong in my POM.xml.
If i downloaded the jar file, how i added to Maven through my eclipse
Help is highly appreciated,
VKS
You could use http://mvnrepository.com to search for hibernate-entitymanager. Your version looks like this: Do note the upper case in GA ...
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.3.2.GA</version>
</dependency>
For hibernate we use following repository:
https://repository.jboss.org/nexus/content/repositories/releases/
Try adding this to your pom:
<repository>
<id>jboss.org</id>
<name>JBoss Repository</name>
<url>https://repository.jboss.org/nexus/content/repositories/releases</url>
</repository>