maven could not resolve dependencies for jmonkeyengine - java

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.

Related

Maven Build Issue with spring-boot-starter-parent <version>2.1.3.RELEASE</version>

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

How to resolve central.maven.org: Unknown host central.maven.org in Maven Project?

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.

Nexus Proxy Repository to http://dynamicjasper.com FAILED

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.

Gradle fails to download external dependency from local artifactory which should be downloaded form mavenCentral

My gradle build fails due to an error from artifactory:
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':PublishService:compile'.
> Could not resolve org.geotools:gt-wfs:9.0.
Required by:
infraview_gradle:PublishService:0-SNAPSHOT > net.infraview:infraview_context:0-SNAPSHOT
infraview_gradle:PublishService:0-SNAPSHOT > net.infraview:infraview_srv_masterdata:0-SNAPSHOT
> Could not HEAD 'http://beast:8082/artifactory/libs-snapshot-local/org/geotools/gt-wfs/9.0/gt-wfs-9.0.pom'. Received status code 409 from server: Conflict
The geotools artifact is not in my "libs-snapshot-local" - artifactory.
Why does gradle try to download is from there?
When I paste the request
http://beast:8082/artifactory/libs-snapshot-local/org/geotools/gt-wfs/9.0/gt-wfs-9.0.pom
into the browser I get:
"message" : "The repository 'libs-snapshot-local' rejected the artifact 'libs-snapshot-local:org/geotools/gt-wfs/9.0/gt-wfs-9.0.pom' due to its snapshot/release handling policy."
Why does artifactory complain about "snapshot release handling policy" although this jar isn't in the artifactory in the first place?
Is this a gradle or an artifactory issue?
Ok, i got it. There was another repo next to "libs-snapshot-release" in the artifactory which contained the jar.
Thanks for the comment.

Could not transfer artifact despite I see this jar inside my local repo

I try to build my applivation and get followinf error message:
[ERROR] Failed to execute goal on project XXX: Could not resolve dependencies for project XXX:1.0.0-SNAPSHOT: Failed to collect dependencies at com.day.cq:cq-i18n:jar:5.4.4: Failed to read artifact descriptor for com.day.cq:cq-i18n:jar:5.4.4: Could not transfer artifact com.day.cq:cq-i18n:pom:5.4.4 from/to repo1 (http://HOST.COM/content/groups/public/): Connection to http://HOST.COM refused: Connection refused: connect
But on filesystem I see that this jar exists inside following folder:
.m2\repository\com\day\cq\cq-i18n\5.4.4
How to fix this problem?
update
Tried to execute with -o option:
Failed to execute goal on project XXXs: Could not resolve dependencies for project XXX:bundle:1.0.0-SNAPSHOT: Cannot access adobe (http://repo.adobe.com/nexus/content/groups/public/) in offline mode and the artifact com.day.cq:cq-i18n:jar:5.4.4 has not been downloaded from it before.

Categories

Resources