I want to write an Excel file with apache-poi.
If I use the following dependencies:
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.15</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.15</version>
</dependency>
Everything works fine, but if I try to update to the newest version (5.2.2), I get the following error in my pom.xml:
Failure to transfer org.apache.poi:poi-ooxml:jar:5.2.2 from was cached
in the local repository, resolution will not be reattempted until the
update interval of central has elapsed or updates are forced.
Original error: Could not transfer artifact
org.apache.poi:poi-ooxml:jar:5.2.2 from/to central Error code 500,
Server Error
I hope someone could help me.
Related
I'm following an e-book and I can't go ahead because of the error there in the pom.xml file.
I have this following errors:
Project build error: Non-resolvable import POM: io.thorntail:bom-all:pom:2.7.0.Final failed to transfer from http://repo.mj.gov.br/repository/maven-group/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced. Original error: Could not transfer artifact io.thorntail:bom-all:pom:2.7.0.Final from/to nexus (http://repo.mj.gov.br/repository/maven-group/): transfer failed for http://repo.mj.gov.br/repository/maven-group/io/thorntail/bom-all/2.7.0.Final/bom-all-2.7.0.Final.pomJava(0)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.thorntail</groupId>
<artifactId>bom-all</artifactId>
<version>${version.thorntail}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
And this error:
Project build error: ‘dependencies.dependency.version’ for io.thorntail:jaxrs:jar is missing.Java(0)
<dependency>
<groupId>io.thorntail</groupId>
<artifactId>jaxrs</artifactId>
</dependency>
</dependencies>
How do I resolve this? I'm using VsCode Java.
Thanks for any help.
I was without access to the repository. Problem solved.
http://repo.mj.gov.br/repository/maven-group/
I'm trying to get a maven project built with an nd4j dependency on a linux ARM system.
Here's my current dependency in my pom.xml file
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-native-platform</artifactId>
<version>0.9.1</version>
<scope>test</scope>
</dependency>
Here is the error I'm getting when trying to do a maven install on my ARM system
Could not resolve dependencies for project com.test.test:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.nd4j:nd4j-native:jar:linux-arm:0.9.1, org.bytedeco.javacpp-presets:openblas:jar:linux-arm:0.2.19-1.3: Failure to find org.nd4j:nd4j-native:jar:linux-arm:0.9.1 in https://repo.maven.apache.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
While adding the following dependency in pom.xml file, getting ArtifactDescriptorException
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.19</version>
<scope>test</scope>
</dependency>
Issue:
Description Resource Path Location Type
ArtifactDescriptorException: Failed to read artifact descriptor for org.mockito:mockito-all:jar:1.10.19: ArtifactResolutionException: Failure to transfer org.mockito:mockito-all:pom:1.10.19 from http://repo.maven.apache.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. Original error: Could not transfer artifact org.mockito:mockito-all:pom:1.10.19 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org pom.xml /mockito-example line 1 Maven Dependency Problem
However, it is working fine with the 1.10.18 or 1.10.17
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.18</version>
<scope>test</scope>
</dependency>
I don't understand what is the issue with 1.10.19 version.
Any help would be helpful. Thanks!
Sounds like an earlier download attempt failed. As the message says, resolution will not be reattempted until the update interval of central has elapsed or updates are forced - typically the update interval is 24 hours.
If you haven't tried it already, suggest using the force updates option - mvn -U. (If this is in Eclipse, judging by the column titles, look for Force Update in the Maven/Update project dialog).
Just for reference, the same artifact version is downloading fine from over here.
I am working in camel (Servicemix 5.4.0) i am getting below error message while compiling project using mvn install
com.microsoft.sqlserver:sqljdbc4:jar:4.0: Failure to find
com.microsoft.sqlserver:sqljdbc:jar:4.0.2206.100 in https://repo.maven.apache.or
g/maven2 was cached in the local repository, resolution will not be reattempted
until the update interval of central has elapsed or updates are forced
I think it might because of pom.xml dependency part.
I have given following dependency in pom.xml
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>sqljdbc4</artifactId>
<version>4.0</version>
<scope>runtime</scope>
</dependency>
Please Help me out
This driver is not in Maven standard repository.
You could download it, and add to you local repository with:
mvn install:install-file -Dfile=sqljdbc4.jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0 -Dpackaging=jar
Download link for the driver:
http://www.microsoft.com/en-us/download/details.aspx?id=11774
I am doing a project on text categorization using Stanford NLP in Java. To get the API, I added the dependencies in my POM file.
<dependency>
<groupId>edu.stanford.nlp</groupId>
<artifactId>stanford-corenlp</artifactId>
<version>3.5.0</version>
</dependency>
<dependency>
<groupId>edu.stanford.nlp</groupId>
<artifactId>stanford-corenlp</artifactId>
<version>3.5.0</version>
<classifier>models</classifier>
</dependency>
When I do maven update/install I am getting the below error message :
Failure to transfer edu.stanford.nlp:stanford-corenlp:jar:models:3.5.0 from http://repo.maven.apache.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. Original error: Could not transfer artifact edu.stanford.nlp:stanford-corenlp:jar:models:3.5.0 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000.
I found a similar question here - Maven dependency:get does not download Stanford NLP model files . But, I am unable to find a solution anywhere. Any help please?
Perhaps Maven is in an inconsistent state? Have you tried something like:
mvn clean install -U
The dependencies I use -- which look identical to yours above -- are:
<dependency>
<groupId>edu.stanford.nlp</groupId>
<artifactId>stanford-corenlp</artifactId>
<version>3.5.0</version>
</dependency>
<dependency>
<groupId>edu.stanford.nlp</groupId>
<artifactId>stanford-corenlp</artifactId>
<version>3.5.0</version>
<classifier>models</classifier>
</dependency>