Josef,
Check your ~/.m2/settings.xml against the reference (you need all 4 nexus
profiles public/staging/release/snapshots - I see you have staging though which
used to the the issue - so hopefully all 4 will allow you to pass this one)
Was going to answer before on the mvn version - decided to reproduce.
I get the same (not related to the mvn 3.3.3- certificate issue) on my
internal (with proxy) windows git-bash setup that does not have all the nexus
servers - however I work OK on my RHEL 7.3 VM which is outside the firewall
(not the issue though) - with all 4 repos in the reference settings.xml
https://wiki.onap.org/display/DW/Setting+Up+Your+Development+Environment#SettingUpYourDevelopmentEnvironment-MavenExamplesettings.xml
[root@obrien-b2 onap3]# mvn
org.apache.maven.plugins:maven-dependency-plugin:2.10:get
-DremoteRepositories=https://nexus.onap.org/content/groups/staging
-Dartifact=org.openecomp.demo.vnf:sample-distribution:1.1.0-SNAPSHOT:tar.gz:hc
-Dtransitive=false -Ddest=.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.10:get (default-cli) @ standalone-pom ---
[INFO] Resolving
org.openecomp.demo.vnf:sample-distribution:tar.gz:hc:1.1.0-SNAPSHOT
Downloading:
http://repo.maven.apache.org/maven2/org/openecomp/demo/vnf/sample-distribution/1.1.0-SNAPSHOT/maven-metadata.xml
Downloading:
https://nexus.onap.org/content/groups/staging/org/openecomp/demo/vnf/sample-distribution/1.1.0-SNAPSHOT/maven-metadata.xml
Downloading:
https://nexus.onap.org/content/repositories/snapshots/org/openecomp/demo/vnf/sample-distribution/1.1.0-SNAPSHOT/maven-metadata.xml
Downloading:
https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/openecomp/demo/vnf/sample-distribution/1.1.0-SNAPSHOT/maven-metadata.xml
Downloaded:
https://nexus.onap.org/content/repositories/snapshots/org/openecomp/demo/vnf/sample-distribution/1.1.0-SNAPSHOT/maven-metadata.xml
(1.2 kB at 1.1 kB/s)
Downloading:
https://nexus.onap.org/content/repositories/snapshots/org/openecomp/demo/vnf/sample-distribution/1.1.0-SNAPSHOT/sample-distribution-1.1.0-20170626.141009-107-hc.tar.gz
Downloaded:
https://nexus.onap.org/content/repositories/snapshots/org/openecomp/demo/vnf/sample-distribution/1.1.0-SNAPSHOT/sample-distribution-1.1.0-20170626.141009-107-hc.tar.gz
(25 MB at 4.1 MB/s)
[WARNING] destination/dest parameter is deprecated: it will disappear in future
version.
[INFO] Copying
/root/.m2/repository/org/openecomp/demo/vnf/sample-distribution/1.1.0-SNAPSHOT/sample-distribution-1.1.0-SNAPSHOT-hc.tar.gz
to /root/onap3/.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.495 s
[INFO] Finished at: 2017-06-27T15:01:47-07:00
[INFO] Final Memory: 18M/400M
[INFO] ------------------------------------------------------------------------
With
<activeProfiles>
<activeProfile>10_nexus</activeProfile>
<activeProfile>20_openecomp-public</activeProfile>
<activeProfile>30_openecomp-staging</activeProfile>
<activeProfile>40_openecomp-release</activeProfile>
<activeProfile>50_openecomp-snapshots</activeProfile>
<activeProfile>60_opendaylight-release</activeProfile>
<activeProfile>70_opendaylight-snapshots</activeProfile>
</activeProfiles>
For reference I get the same issue if I only run with release/public internally
(I would say you are missing staging - but it looks like snapshot)
$ mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:get
-DremoteRepositories=https://nexus.onap.org/content/groups/staging
-Dartifact=org.openecomp.demo.vnf:sample-distribution:1.1.0-SNAPSHOT:tar.gz:hc
-Dtransitive=false -Ddest=.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.10:get (default-cli) @ standalone-pom ---
Downloading:
https://nexus.openecomp.org/content/groups/public/org/apache/maven/doxia/doxia-site-renderer/1.2/doxia-site-renderer-1.2.pom
Downloaded:
https://nexus.openecomp.org/content/groups/public/org/apache/maven/doxia/doxia-site-renderer/1.2/doxia-site-renderer-1.2.pom
(6.2 kB at 3.5 kB/s)
.....
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:28 min
[INFO] Finished at: 2017-06-27T17:57:42-04:00
[INFO] Final Memory: 16M/205M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-dependency-plugin:2.10:get (default-cli) on
project standalone-pom: Couldn't download artifact: Could not find artifact
org.openecomp.demo.vnf:sample-distribution:tar.gz:hc:1.1.0-SNAPSHOT in temp
(https://nexus.onap.org/content/groups/staging)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.openecomp.demo.vnf
-DartifactId=sample-distribution -Dversion=1.1.0-SNAPSHOT -Dclassifier=hc
-Dpackaging=tar.gz -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file
there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.openecomp.demo.vnf
-DartifactId=sample-distribution -Dversion=1.1.0-SNAPSHOT -Dclassifier=hc
-Dpackaging=tar.gz -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
/michael
From: [email protected]
[mailto:[email protected]] On Behalf Of Josef Reisinger
Sent: Tuesday, June 27, 2017 12:43
To: onap-discuss <[email protected]>
Subject: Re: [onap-discuss] vFW: got one step further: Couldn't download
artifact (was previous peer not authenticated in maven project build in
cloud-init)
Nobody faces this error?
I asked "friend G." and it seems that there is some issue with the
certificates. If I look a but up in cloud-init-output, I can see there was an
error installing the certificates:
/var/lib/dpkg/info/ca-certificates-java.postinst: line 53: java: command not
found
/var/lib/dpkg/info/ca-certificates-java.postinst: line 66: java: command not
found
The command which help me one step further was
update-ca-certificates -f
So that I do not have the "peer not authenticated" (what a §"$$%"&§ error
message by the way....) and get something which I do not understand at all. I
have to admit I am using maven the first time....
root@demofwl01pgn:/opt# mvn
org.apache.maven.plugins:maven-dependency-plugin:2.10:get
-DremoteRepositories=https://nexus.onap.org/content/groups/staging
-Dartifact=org.openecomp.demo.vnf:sample-distribution:1.1.0-SNAPSHOT:tar.gz:hc
-Dtransitive=false -Ddest=.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.10:get (default-cli) @ standalone-pom ---
[INFO] Resolving
org.openecomp.demo.vnf:sample-distribution:tar.gz:hc:1.1.0-SNAPSHOT
Downloading:
https://nexus.onap.org/content/groups/staging/org/openecomp/demo/vnf/sample-distribution/1.1.0-SNAPSHOT/maven-metadata.xml
Downloading:
https://nexus.onap.org/content/groups/staging/org/openecomp/demo/vnf/sample-distribution/1.1.0-SNAPSHOT/sample-distribution-1.1.0-SNAPSHOT-hc.tar.gz
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.436s
[INFO] Finished at: Tue Jun 27 16:33:52 UTC 2017
[INFO] Final Memory: 17M/171M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-dependency-plugin:2.10:get (default-cli) on
project standalone-pom: Couldn't download artifact: Could not find artifact
org.openecomp.demo.vnf:sample-distribution:tar.gz:hc:1.1.0-SNAPSHOT in temp
(https://nexus.onap.org/content/groups/staging)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.openecomp.demo.vnf
-DartifactId=sample-distribution -Dversion=1.1.0-SNAPSHOT -Dclassifier=hc
-Dpackaging=tar.gz -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file
there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.openecomp.demo.vnf
-DartifactId=sample-distribution -Dversion=1.1.0-SNAPSHOT -Dclassifier=hc
-Dpackaging=tar.gz -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR] org.openecomp.demo.vnf:sample-distribution:tar.gz:1.1.0-SNAPSHOT
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
snapshots=false),
[ERROR] temp (https://nexus.onap.org/content/groups/staging, releases=true,
snapshots=true)
[ERROR] -> [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/MojoExecutionException
Any quick help from you guys?
I logg this under https://jira.onap.org/projects/UCA/issues/UCA-28
Mit freundlichen Grüßen / Kind regards
Josef Reisinger
When wisdom comes to call, there's nobody listening at all - Pendragon / Man Of
Nomadic Traits
IBM Sales & Distribution, Communications Sector
Certified IT-Architect Telecommunications
IBM Certified Telecommunications Industry ITA
Lehrbeauftragter an der Hochschule Fresenius
IBM Deutschland
Godesberger Allee 127
53175 Bonn Beuel
Phone: +49 151 1426 4559
Mobile: +49-(0) 151 1426 4559
E-Mail: [email protected]<mailto:[email protected]>
IBM Deutschland GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Martina Koederitz (Vorsitzende), Nicole Reimer, Norbert
Janzen, Dr. Christian Keller, Ivo Koerner, Stefan Lutz
Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB
14562 / WEEE-Reg.-Nr. DE 99369940
From: "Josef Reisinger"
<[email protected]<mailto:[email protected]>>
To: onap-discuss
<[email protected]<mailto:[email protected]>>
Date: 27.06.2017 16:53
Subject: [onap-discuss] vFW: peer not authenticated in maven project
build in cloud-init
Sent by:
[email protected]<mailto:[email protected]>
________________________________
I logged this in JIRA, maybe I get a response faster on the list:
When deploying a vFW demo stack, I get a "peer not authenticated" error in
maven build. The same happens if I try to run the command manually. Anybody to
know what is missing?
mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:get
-DremoteRepositories=https://nexus.onap.org/content/groups/staging
-Dartifact=org.openecomp.demo.vnf:sample-distribution:1.1.0-SNAPSHOT:tar.gz:hc
-Dtransitive=false -Ddest=.
Mit freundlichen Grüßen / Kind regards
Josef Reisinger _______________________________________________
onap-discuss mailing list
[email protected]<mailto:[email protected]>
https://lists.onap.org/mailman/listinfo/onap-discuss
This message and the information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at https://www.amdocs.com/about/email-disclaimer
<https://www.amdocs.com/about/email-disclaimer>
_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss