Maven error when trying to install Apache Ambari on Ubuntu - maven

I am trying to install Apache Ambari using the installation instructions at https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.5
I receive the following error whenever I run any of the maven (mvn) commands:
[INFO] Scanning for projects...
Downloading from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
Downloading from maven2-repository.atlassian: https://maven.atlassian.com/repository/public/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
Downloading from maven2-repository.dev.java.net: https://download.java.net/maven/2/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
Downloading from maven2-glassfish-repository.dev.java.net: https://download.java.net/maven/glassfish/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.wagon:wagon-ssh-external/maven-metadata.xml from/to maven2-repository.dev.java.net (https://download.java.net/maven/2/): transfer failed for https://download.java.net/maven/2/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.wagon:wagon-ssh-external/maven-metadata.xml from/to maven2-glassfish-repository.dev.java.net (https://download.java.net/maven/glassfish/): transfer failed for https://download.java.net/maven/glassfish/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.wagon:wagon-ssh-external/maven-metadata.xml from/to maven2-repository.atlassian (https://maven.atlassian.com/repository/public): transfer failed for https://maven.atlassian.com/repository/public/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.wagon:wagon-ssh-external/maven-metadata.xml from/to apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots): transfer failed for https://repository.apache.org/content/repositories/snapshots/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.wagon:wagon-ssh-external/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.zookeeper:zookeeper:jar -> duplicate declaration of version (?) # line 124, column 17
[ERROR] Unresolveable build extension: Error resolving version for plugin 'org.apache.maven.wagon:wagon-ssh-external' from the repositories [local (/home/vagrant/.m2/repository), maven2-repository.dev.java.net (https://download.java.net/maven/2/), maven2-glassfish-repository.dev.java.net (https://download.java.net/maven/glassfish/), maven2-repository.atlassian (https://maven.atlassian.com/repository/public), apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository #
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-compiler-plugin # line 334, column 15
[WARNING] 'build.plugins.plugin.version' for org.vafer:jdeb is missing. # line 132, column 15
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.ambari:ambari-agent:2.7.6.0.0 (/home/vagrant/ambari-src/apache-ambari-2.7.6-src/ambari-agent/pom.xml) has 1 error
[ERROR] Unresolveable build extension: Error resolving version for plugin 'org.apache.maven.wagon:wagon-ssh-external' from the repositories [local (/home/vagrant/.m2/repository), maven2-repository.dev.java.net (https://download.java.net/maven/2/), maven2-glassfish-repository.dev.java.net (https://download.java.net/maven/glassfish/), maven2-repository.atlassian (https://maven.atlassian.com/repository/public), apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository -> [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/PluginManagerException
I have the latest version of Ambari (2.7.6) and the latest version of Maven (3.8.6)
Here is the output of mvn -version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /opt/maven
Java version: 1.8.0_292, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-170-generic", arch: "amd64", family: "unix"

Related

maven issue : Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central

A maven build showing me below error: any help to fix it ?
Below is version
mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /opt/apache-maven-3.6.3
Java version: 17.0.5, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-17-openjdk-17.0.5.0.8-2.el8.x86_64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.18.0-326.el8.x86_64", arch: "amd64", family: "unix"
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom: Unknown host repo.maven.apache.org: Name or service not known -> [Help 1]
[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/PluginResolutionException
The pom stops below is where it stuck in DEBUG :
[INFO] --------------------------------[ pom ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
and I tried creating settings.xml with correct proxy but never helped. wget works fine from bvelow location : https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
So I am sure its not proxy issue and other packages copied fine.
Any idea ?

Errors executing Maven (MacOs Catalina) : Unresolveable build extension / Python configuration for SNAP (ESA)

I try to configure Python for SNAP software. As it is recommanded in this forum (https://forum.step.esa.int/t/unable-to-install-snappy-jpy-problem/5372/28) I have installed maven and followed the steps :
brew install maven
cd jpy
python setup.py bdist_wheel
I get the following errors :
installing to build/bdist.macosx-10.9-x86_64/wheel
running install
running maven
Executing Maven goal 'package'
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0-beta-7/wagon-ssh-1.0-beta-7.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-ssh:1.0-beta-7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7 #
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.jpy:jpy:0.10.0-SNAPSHOT (/Users/laura/jpy/pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-ssh:1.0-beta-7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7: Could not transfer artifact org.apache.maven.wagon:wagon-ssh:pom:1.0-beta-7 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0-beta-7/wagon-ssh-1.0-beta-7.pom: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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/PluginManagerException
Many topics raising a similar issue are solved by reconfiguring proxy or firewall. As I work on my own computer (macOS Catalina 10.15.7), without proxy or firewall, and as I don't have any knowledge of how it works, all help is welcome !
Thanks in advance,

Oozie Installation error-bin/mkdistro.sh -DskipTests

hduser#kas-XX:/usr/lib/Oozie/oozie-4.3.0$ bin/mkdistro.sh -DskipTests
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
Downloading from central: http://repo1.maven.org/maven2/org/apache/apache/17/apache-17.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.apache.oozie:oozie-main:4.3.0: Could not transfer artifact org.apache:apache:pom:17 from/to central (http://repo1.maven.org/maven2): Failed to transfer file: http://repo1.maven.org/maven2/org/apache/apache/17/apache-17.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. and 'parent.relativePath' points at wrong local POM # line 21, column 13
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.oozie:oozie-main:4.3.0 (/usr/lib/Oozie/oozie-4.3.0/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.apache.oozie:oozie-main:4.3.0: Could not transfer artifact org.apache:apache:pom:17 from/to central (http://repo1.maven.org/maven2): Failed to transfer file: http://repo1.maven.org/maven2/org/apache/apache/17/apache-17.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. and 'parent.relativePath' points at wrong local POM # line 21, 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
ERROR, Oozie distro creation failed
Version Information:
Hadoop 3.1.2,
openjdk version "11.0.5" ,
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.5, vendor: Private Build, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_IN, platform encoding: UTF-8
OS name: "linux", version: "5.3.0-26-generic", arch: "amd64", family: "unix",
Ubuntu 18.04
{personal hadoop environment and single node}

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.

Install Apache Ignite on EC2

I am trying to install Apache Ignite on EC2 (CentOS).
Downloaded latest Ignite src (2.0) and installed Java 1.8 and MVN.
Next tried to run (inside Ignite folder) MVN setup but is failing:
mvn clean package -DskipTests
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/apache/16/apache-16.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.apache.ignite:ignite-parent:1: Could not transfer artifact org.apache:apache:pom:16 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.32.215] failed: Connection timed out (Connection timed out) and 'parent.relativePath' points at no local POM # org.apache.ignite:ignite-parent:1, /home/ec2-user/ignite/apache-ignite-2.0.0-src/parent/pom.xml, line 29, column 13
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.ignite:apache-ignite:2.0.0 (/home/ec2-user/ignite/apache-ignite-2.0.0-src/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.apache.ignite:ignite-parent:1: Could not transfer artifact org.apache:apache:pom:16 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.32.215] failed: Connection timed out (Connection timed out) and 'parent.relativePath' points at no local POM # org.apache.ignite:ignite-parent:1, /home/ec2-user/ignite/apache-ignite-2.0.0-src/parent/pom.xml, line 29, 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
I am able to install same way on my Mac without this error. What could be a problem? Can MVN be set differently to avoid this error? Or is some issue with EC2/Apache Ignite compatibility? (I am not able to use AMI for Ignite since is not approved for usage within company network)
It's a problem with connection to maven repository, check if this repo accessible from your EC2 machine:
Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.32.215] failed: Connection timed out
It's not necessary to build Ignite from src on your server, you can download binaries and use them.
The easiest way to install ignite is :
download ZIP package from https://ignite.apache.org/
extract the content
run ignite_home/bin/ignite.sh

Resources