I am getting the error below in log whenever I try to build my Spring project.
Could anyone please help me?
[WARNING] Could not transfer metadata org.springframework:spring-core:3.2.1.SPR-10124-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (like--//tinkerpop.com/maven2): Access denied to link-->//tinkerpop.com/maven2/org/springframework/spring-core/3.2.1.SPR-10124-SNAPSHOT/maven-metadata.xml. Error code 403, Forbidden
[WARNING] Failure to transfer org.springframework:spring-core:3.2.1.SPR-10124-SNAPSHOT/maven-metadata.xml from link: //tinkerpop.com/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of tinkerpop-repository has elapsed or updates are forced. Original error: Could not transfer metadata org.springframework:spring-core:3.2.1.SPR-10124-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (link://tinkerpop.com/maven2): Access denied to link---//tinkerpop.com/maven2/org/springframework/spring-core/3.2.1.SPR-10124-SNAPSHOT/maven-metadata.xml. Error code 403, Forbidden
I had the same error. In my case I am using Netbeans 7.1.2, I am posting this because maybe someone end up here same as I did.
I tried to configure the proxy options from the GUI, but the documentation says that maven doesn't read those. So I checked the NetBeans FAQ here :
What mainly you have to do is create (if it does not exist) a settings.xml under
user.home/.m2/settings.xml
if you don't have it you can copy from
netbeans.home/java/maven/conf/settings.xml
then uncomment if you already have it otherwise just fill this section:
<proxies>
<proxy>
<active>true</active>
<host>myproxy.host.net</host>
<port>80</port>
</proxy>
</proxies>
you have to check your proxy configuration and replace it there
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 want to check out a project from svn,but it gives an error(the server is actually runnig)
URL access forbidden for unknown reason
svn: Unable to connect to a repository at URL 'http:.................'
svn: Access to '............' forbidden
The error means that your user account does not have permissions to read the repository path you want to checkout. Contact your manager or server / repository admin for assistance with this issue.
It seems the issue is with a wrong repository access path configuration in svn server.
For e.g. if you are trying to access repository path
yoursvnserver.com/repo/projectRepository/trunk
and svn repository access rules is set wrong as below you could face the mentioned error. Please check with your svn server admin to fix this.
[groups]
superUser=admin
projectDev=user1,user2
[projectRepository:trunk]
#projectDev=r
[projectRepository:/branches]
#projectDev=rw
I managed to have my maven jar hosted in my private repo (at least this is what I see).
https://repository-{my-library}.forge.cloudbees.com/snapshot/
When I access it from the browser the folder 'org' shows up and browsing I can see the XML and jar.
The problem is when I try to use the jar for my app, I get this error:
Downloading: http://repository-{my-library}.forge.cloudbees.com/release/org/{my-library}/{my-library}/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading: https://raw.github.com/{my-library}/spring-boot-legacy/mvn-repo/org/{my-library}/{my-library}/0.0.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.{my-library}:{my-library}:0.0.1-SNAPSHOT/maven-metadata.xml from/to {my-library}-snapshot (http://repository-{my-library}.forge.cloudbees.com/release/): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Failure to transfer org.{my-library}:{my-library}:0.0.1-SNAPSHOT/maven-metadata.xml from http://repository-{my-library}.forge.cloudbees.com/release/ was cached in the local repository, resolution will not be reattempted until the update interval of {my-library}-snapshot has elapsed or updates are forced. Original error: Could not transfer metadata org.{my-library}:{my-library}:0.0.1-SNAPSHOT/maven-metadata.xml from/to {my-library}-snapshot (http://repository-{my-library}.forge.cloudbees.com/release/): Not authorized , ReasonPhrase:Unauthorized.
I don't understand why I can accesss the repo snapshot from the browser yet maven says "Unauthorized"?
You need to add a custom settings.xml to your private repository, mount it and load the configuration from there. Otherwise you won't be able to access your (protected) artifacts.
The documentation is pretty well hidden, but you can find it here: http://developer.cloudbees.com/bin/view/DEV/Accessing+under+an+external+Maven+repository
We had to change the repository location in the Pom.xml but when I run Maven(from within IntelliJ IDE) I notice in the logs that it still points to the old URL.
The maven repository in our organization has recently been moved to a new URL. The old URL is not valid anymore and hence I get connection timeout errors in the logs. I verified that all the instances of old URL has been updated in the POM.xmls.
Here is the excerpt of the logs. I do not find any references of the old URL anywhere on my machine.
[Proj Guard] Skipping disabled repository central
[Proj Guard] snapshot com.XYZ.Proj:Proj-libraries-conflict-guard:4.trunk-SNAPSHOT: checking for updates from mvnnexus
[Proj Guard] Checking for pre-existing User-Agent configuration.
[Proj Guard] Adding User-Agent configuration.
[Proj Guard] Connecting to repository: 'mvnnexus' with url: 'http://ABC.XYZ.corp:8081/nexus/content/groups/public'.
[Proj Guard] repository metadata for: 'snapshot com.XYZ.Proj:Proj-libraries-conflict-guard:4.trunk-SNAPSHOT' could not be retrieved from repository: mvnnexus due to an error: Error transferring file: Connection timed out: connect
org.apache.maven.wagon.TransferFailedException: Error transferring file: Connection timed out: connect
at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)
at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:443)
at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:97)
at org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:65)
at org.apache.maven.artifact.transform.SnapshotTransformation.transformForResolve(SnapshotTransformation.java:63)
at org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForResolve(DefaultArtifactTransformationManager.java:55)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:145)
The URL has been changed from(example) http:// ABC.XYZ.corp:8081/nexus/content/groups/public
to http:// nexus.Test.corp/nexus/content/groups/public but it does not seem to be picking.
Am I missing anything?
Please help me figure this out, let me know if you need any further info.
When I add Neo4j 1.9.M05 to my project dependencies (with maven), I'm getting the following error in eclipse:
ArtifactDescriptorException: Failed to read artifact descriptor for org.neo4j:neo4j-kernel:jar:tests:1.9.M05: UnresolvableModelException: Failure to find org.neo4j:parent:pom:1.9.M05 in http://m2.neo4j.org/releases was cached in the local repository, resolution will not be reattempted until the update interval of neo4j-release-repository has elapsed or updates are forced
This seems to make sense because the URL "http://m2.neo4j.org/content/repositories/releases/org/neo4j/parent" does not exist. Was anybody able to use 1.9.M05 already? Is there another public repository where I can find this dependency?
ps: does anybody know when the neo4j-cypher-dsl module gets updated to 1.9.M05?
For now, you can bypass this problem by manually placing this parent pom in your local maven repository (or upload it to your companies nexus, or ...).
If the parent has not been deployed, I would suggest you file a bug report with the authors, as this won't work. They'll either have to deploy the parent, of spin off a new release.