Maven Project Failed to Build in Eclipse - maven

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.

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

maven dependency issue in VDI machine

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?

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 fails building CAS server

I am trying to implement SSO feature and downloaded all projects and pom.xml from http://www.jasig.org/cas/download.
So, I got my maven project and then In eclipse I just did import as existing maven project.
then I Run the project as MVN CLEAN and it is not running and getting error as
[INFO] Scanning for projects...
Downloading: http://developer.ja-sig.org/maven2/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom
Downloading: http://repo.maven.apache.org/maven2/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.jasig.cas:cas-server:3.5.0 (D:\CAS\Single Sign On\cas-server-3.5.0-release\cas-server-3.5.0\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not transfer artifact org.jasig.parent:jasig-parent:pom:21 from/to jasig-repository (http://developer.ja-sig.org/maven2): null to http://developer.ja-sig.org/maven2/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom and 'parent.relativePath' points at wrong local POM # line 22, column 11: UnresolvedAddressException -> [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
some one told that it is proxy problem, so i changed settings.xml file to place proxy as
<proxy>
<id>123</id>
<active>true</active>
<protocol>http</protocol>
<username>abc.def#xyz.com</username>
<password>xyz1233</password>
<host>proxy.com</host>
<port>80</port>
<nonProxyHosts>google.com</nonProxyHosts>
</proxy>
still it is not running, can someone please pointout mistake?
Why not downloading jasig-parent from Maven central instead ?

Resources