maven dependency issue in VDI machine - maven

I am facing below issue.
[INFO] Scanning for projects...
[INFO] Downloading from : https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.1.2.RELEASE/spring-boot-starter-parent-2.1.2.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.airtelbank.merchant.settlement.feeder:apb-merchant-settlement-feeder:0.0.12: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.2.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org and 'parent.relativePath' points at no local POM # line 14, column 10
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.airtelbank.merchant.settlement.feeder:apb-merchant-settlement-feeder:0.0.12 (\\10.5.0.253\rdsh_dev_ind\b0218163\Desktop\code\merchant-settlement-feeder\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.airtelbank.merchant.settlement.feeder:apb-merchant-settlement-feeder:0.0.12: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.2.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org and 'parent.relativePath' points at no local POM # line 14, column 10: Unknown host repo.maven.apache.org -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
if any body face past. please help how to solve?

Related

i got following error while build mvn clean install

sudo mvn clean install
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.3.2.RELEASE/spring-boot-starter-parent-2.3.2.RELEASE.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.careinsurance.crosssell:crosssellservice:1.0 (/var/lib/jenkins/workspace/cross_sell/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.3.2.RELEASE from/to central (https://repo.maven.apache.org/maven2): peer not authenticated and 'parent.relativePath' points at no local POM # line 6, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
[Pipeline] }

Unable to build Artifactory OSS 7.15 from source

I was trying to compile JFrog Artifactory from source code, but I ran into a maven issue.
Here are my steps:
Download the latest source from https://releases.jfrog.io/artifactory/bintray-artifactory/org/artifactory/oss/jfrog-artifactory-oss/7.17.5/jfrog-artifactory-oss-7.17.5-sources.tar.gz
Unzip it and run mvn clean install in the root directory
Get an error
This is the error I got:
PS C:\Users\mTrachoz\Desktop\jfrog-artifactory-7.17.5> mvn clean install
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.artifactory:artifactory-parent:7.17.5: Failure to find org.jfrog.common:jfrog-parent-pom:pom:7.17.2 in http://jcenter.bintray.com was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM # line 22, column 13
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.artifactory:artifactory-parent:7.17.5 (C:\Users\mTrachoz\Desktop\jfrog-artifactory-7.17.5\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.artifactory:artifactory-parent:7.17.5: Failure to find org.jfrog.common:jfrog-parent-pom:pom:7.17.2 in http://jcenter.bintray.com was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM # line 22, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Received fatal alert: protocol_version and 'parent.relativePath' points at wrong local POM

I'm learning from git projects:"https://github.com/spring-cloud/spring-cloud-zookeeper",when i import the project into intellij idea IDE,and run mvn --settings .settings.xml package in terminal,it shows error :
spring-cloud-zookeeper-master>mvn --settings .settings.xml package
[INFO] Scanning for projects...
Downloading: https://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-build/3.0.0.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework.cloud:spring-cloud-build:3.0.0.BUILD-SNAPSHOT/maven-metadata.xml from/to spring-snapshots (https://repo.spring.io/libs-snapsho
t-local): Received fatal alert: protocol_version
Downloading: https://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-build/3.0.0.BUILD-SNAPSHOT/spring-cloud-build-3.0.0.BUILD-SNAPSHOT.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.springframework.cloud:spring-cloud-zookeeper:3.0.0.BUILD-SNAPSHOT (D:\projects\study\spring-cloud-zookeeper-master\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not transfer artifact org.springframework.cloud:spring-cloud-build:pom:3.0.0.BUILD-SNAPSHOT from/to spring-snapshots (https://repo.spring.i
o/libs-snapshot-local): Received fatal alert: protocol_version and 'parent.relativePath' points at no local POM # line 14, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Try to activate Use plugin registry.

Maven Project Failed to Build in Eclipse

I created a demo maven project from start.spring.io, and I tried to run mvn clean package from Eclipse, but it gave me the following error:
[INFO] Scanning for projects...
[INFO] Downloading from : https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.0.6.RELEASE/spring-boot-starter-parent-2.0.6.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org and 'parent.relativePath' points at no local POM # line 14, column 10
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.example:demo:0.0.1-SNAPSHOT (C:\Development\demo\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org and 'parent.relativePath' points at no local POM # line 14, column 10: Unknown host repo.maven.apache.org -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Picked up JAVA_TOOL_OPTIONS: -agentpath:"C:\Windows\system32\Aternity\Java\JavaHookLoader.dll"="C:\ProgramData\Aternity\hooks"
Anyone knows the problem? Thanks in advance.
Problem is solved by adding the settings.xml in the .m2 folder.

Unresolveable build extension in Maven

I am getting below error while building maven project.
[INFO] Scanning for projects...
Downloading: http://repo.jfrog.org/artifactory/plugins-releases-local/org/jfrog/maven/annomo
jo/maven-plugin-tools-anno/1.4.0/maven-plugin-tools-anno-1.4.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.0
or one of its dependencies could not be resolved: Failed to collect dependencies at org.mul
e.tools.maven:mule-app-maven-plugin:jar:1.0 -> org.jfrog.maven.annomojo:maven-plugin-tools-a
nno:jar:1.4.0 #
[ERROR] Unknown packaging: mule # line 6, column 13
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.test:testproj:1.0.1 (C:\Users\john\proj\testproj
c\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin
:1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org
.mule.tools.maven:mule-app-maven-plugin:jar:1.0 -> org.jfrog.maven.annomojo:maven-plugin-too
ls-anno:jar:1.4.0: Failed to read artifact descriptor for org.jfrog.maven.annomojo:maven-plu
gin-tools-anno:jar:1.4.0: Could not transfer artifact org.jfrog.maven.annomojo:maven-plugin-
tools-anno:pom:1.4.0 from/to jfrog (http://repo.jfrog.org/artifactory/plugins-releases-local
): Connect to repo.jfrog.org:80 [repo.jfrog.org/52.200.110.120, repo.jfrog.org/52.73.83.233]
failed: Connection refused: connect -> [Help 2]
[ERROR] Unknown packaging: mule # line 6, column 13
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the follow
ing articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
Earlier we got connection refused for different IP. we opened the firewall for the same. Now it is showing differnt IP for connection refused.
Could you please help us on this to reslove the issue?

Resources