I'm trying to create a Nexus Proxy Repository to http://nexus.fdvs.com.ar/content/groups/public/, but we have only problems!!!! When I try buid my maven project, my Nexus does not find the DynamicJasper:4.0.2 artfact and the bellow error happens:
[ERROR] Failed to execute goal on project siepa-web: Could not resolve dependencies for project com.indra.cartoes:siepa-web:war:1.0.0-SNAPSHOT: Could not find artifact ar.com.fdvs:DynamicJasper:jar:4.0.2 in nexus (http://nexus.sispcs.web/nexus/content/groups/public/) -> [Help 1]
Any idea about these problem?
Thanks for your attention and time.
I have founded the problem.
Add proxy repository to Nexus Public Repository and error finish.
But now another error have emerged:
Failed to transfer file: http://nexus.sispcs.web/nexus/content/groups/public/ar/com/fdvs/DynamicJasper/4.0.2/DynamicJasper-4.0.2.pom. Return code is: 502 , ReasonPhrase:Bad Gateway
Any help?
The problem was resolved.
Really it was necessary add the target proxy repository to Nexus Public Repository.
Thx for all.
The first URL you reference returns an error.
Check that the artifact is actually available manually.
Related
I have tried multiple options changing the spring boot starter parent versions updating the
repository URL in the POM file, But still no luck keep on getting the below issue.
Tried adding the repository config in the pom still getting the issue. I have tried deletng the entire m2 repo but no luck its trying to download other tuff but not the plugin.
Error :
plugin org.springframework.boot:spring-boot-maven-plugin:2.1.3.RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.springframework.boot:spring-boot-maven-plugin:jar:2.1.3.RELEASE: Could not transfer artifact org.springframework.boot:spring-boot-maven-plugin:pom:2.1.3.RELEASE from/to central (http://repo.maven.apache.org/maven2): Failed to transfer http://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-maven-plugin/2.1.3.RELEASE/spring-boot-maven-plugin-2.1.3.RELEASE.pom. Error code 501, HTTPS Required
The url from where your code is trying to fetch the dependency should be an https url
expected url
in your case it is :-
your code URL
You might need to change your artifactory url
I am trying to build an old project which runs with apache-maven-2.2.1 and Java 1.6.
Project ID: org.apache.maven.plugins:maven-resources-plugin
Reason: POM 'org.apache.maven.plugins:maven-resources-plugin' not found in repository: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-resources-plugin:pom:2.3
from the specified remote repositories:
codehaus-snapshot-repository (http://snapshots.repository.codehaus.org/),
central (http://repo1.maven.org/maven2),
maven2-repository.dev.java.net (http://download.java.net/maven/2/),
repo (file://C:\localrepo\lib)
for project org.apache.maven.plugins:maven-resources-plugin
As you can see, I have downloaded the maven-resources-plugin-2.3.jar and put that into lib dir but why still it saying not found. How to resolve this issue. Thanks in advance.
I am trying learn the jmonkey engine and want to set up a maven project. I copied the maven setup from the jmonkey website in to my pom and still get a error:
Failed to execute goal on project jmonkey.test: Could not resolve dependencies for project com.example:jmonkey.test:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.jmonkeyengine:jme3-core:jar:3.2.0-stable: Failed to read artifact descriptor for org.jmonkeyengine:jme3-core:jar:3.2.0-stable: Could not transfer artifact org.jmonkeyengine:jme3-core:pom:3.2.0-stable from/to jcenter (http://jcenter.bintray.com): Access denied to http://jcenter.bintray.com/org/jmonkeyengine/jme3-core/3.2.0-stable/jme3-core-3.2.0-stable.pom. Error code 403, Forbidden -> [Help 1]
I don't now what to do to get it working.
You are somehow trying to fetch the dependency from jcenter over http. You should try fetching it over https. That is why you get a 403 status code from jcenter.
Please find the below logs :
[ERROR] Failed to execute goal on project hospital: Could not resolve dependencies for project
com.project_name.test.web:hospital:war:0.0.1-SNAPSHOT: Failed to collect dependencies at
com.example.test:example-child:jar:1.1.12-SNAPSHOT: Failed to read artifact descriptor for
com.example.test:example-child:jar:1.1.12-SNAPSHOT: Could not transfer artifact
com.example.test:example-parent:pom:1.1.12-SNAPSHOT from/to maven-central
(http://central.maven.org/maven2/): central.maven.org: Unknown host central.maven.org -> [Help 1]
Thanks in advance!
This failes likely due to an artifact downloaded earlier (in my case .m2/repository/org/geotools/geotools/19.1/geotools-19.1.pom) containing this as a specific repo, maybe even retrieved from a thirdparty repo.
Check your local artifacts for references to the repository, e.g. by this brute force approach:
grep -nr "central.maven.org" ~/.m2/repository/
Replacing/removing the dependency solved the issue.
I'm trying to do a clean install on this project
https://github.com/jberet/jberet-wildfly-samples
I'm stucked with this error:
Could not resolve dependencies for project
org.jberet.samples:clusterInfinispan:war:1.4.0.Alpha-SNAPSHOT: Failed
to collect dependencies at
org.jberet:jberet-wildfly-cluster-infinispan:jar:1.3.0.Final: Failed
to read artifact descriptor for
org.jberet:jberet-wildfly-cluster-infinispan:jar:1.3.0.Final: Failure
to find org.jberet:jberet-wildfly:pom:1.4.0.Alpha-SNAPSHOT
It appears that artifactory is ONLY available on search.maven.org
I tried to do either a force update -U and to manually clean the local repo directory, but nothing changes.
I wonder if I have to manually add the above repo or should automatically seek there
Any hints?
I think he didn't publish 1.4.0.Alpha in maven center.
You can try to change 1.4.0.Alpha to 1.3.0.Final in pom.xml like this
<parent>
<groupId>org.jberet</groupId>
<artifactId>jberet-parent</artifactId>
<version>1.3.0.Final</version>
</parent>
<groupId>org.jberet.samples</groupId>
<artifactId>wildfly-jberet-samples</artifactId>
<version>1.3.0.Final</version>
And use mvn clean install -Pwildfly
Wow, you are right: https://search.maven.org/artifact/org.jberet/jberet-wildfly-cluster-infinispan/1.3.0.Final/jar
I'm not sure if anybody here on Stackoverflow will be able to help you.
Continue your issue with jberet's community: https://github.com/jberet/jberet-wildfly-samples/issues/2 you have to solve it with them.
EDIT:
Now that I think more about it, it's also possible to add their SNAPSHOT repository to your settings.xml file: https://maven.apache.org/settings.html#Repositories but I didn't find link to their repository.
Anyway: witnessing this I would stay away from jberet project, because this is a big failure on their part.
Read the maven error: "failure to find org.jberet:jberet-wildfly:pom:1.4.0.Alpha-SNAPSHOT" means there is a a dependency referencing org.jberet:jberet-wildfly:pom 1.4.0.Alpha-SNAPSHOT.
Either the repository forbids deploying SNAPSHOT (and it make sense for central)
either your configuration forbids downloading SNAPSHOT (see http://maven.apache.org/settings.html#Repositories).
You should check local pom.xml referencing 1.4.0.Alpha-SNAPSHOT and replace it with a non SNAPSHOT (1.4.0.Alpha for beginners).