Good morning
I am currently working on a maven-nar-plugin snapshot version which allow me
to build QT project.
The release plugin is using ArtifactResolver (maven-compat-3.0.4.jar) which
allow me to download nar with classifier <aol> : into function the
com.github.maven_nar.AbstractDependencyMojo.downloadAttachedNars(List<AttachedNarArtifact>)
:
artifactResolver.resolve(dependency,
remoteArtifactRepositories, getLocalRepository());
Situation :
I have 2 servers :
Linux
Windows
I deployed (mmsputils) on Windows and after on Linux (with another classifier)
Information :
dependency definition inside my pom
<dependency>
<dependency>
<groupId>com.inetpsa.ivi00.ihm.wrapper</groupId>
<artifactId>mmsputils</artifactId>
<version>2.2.11-SNAPSHOT</version>
<type>nar</type>
</dependency>
Part of snapshot reposition of
com.inetpsa.ivi00.ihm.wrapper:mmsputils:2.2.11-SNAPSHOT
mmsputils-2.2.11-20150331.050340-3-noarch.nar 106785 3/31/15 7:03
AM
mmsputils-2.2.11-20150331.050340-3-noarch.nar.md5 32 3/31/15 7:03
AM
mmsputils-2.2.11-20150331.050340-3-noarch.nar.sha1 40 3/31/15 7:03
AM
mmsputils-2.2.11-20150331.050340-3-x86-Windows-msvc-static.nar 1412074
3/31/15 7:03 AM
mmsputils-2.2.11-20150331.050340-3-x86-Windows-msvc-static.nar.md5 32
3/31/15 7:03 AM
mmsputils-2.2.11-20150331.050340-3-x86-Windows-msvc-static.nar.sha1 40
3/31/15 7:03 AM
mmsputils-2.2.11-20150331.050340-3.nar 3472 3/31/15 7:03 AM
mmsputils-2.2.11-20150331.050340-3.nar.md5 32 3/31/15 7:03 AM
mmsputils-2.2.11-20150331.050340-3.nar.sha1 40 3/31/15 7:03 AM
mmsputils-2.2.11-20150331.050340-3.pom 3438 3/31/15 7:03 AM
mmsputils-2.2.11-20150331.050340-3.pom.md5 32 3/31/15 7:03 AM
mmsputils-2.2.11-20150331.050340-3.pom.sha1 40 3/31/15 7:03 AM
mmsputils-2.2.11-20150331.050502-4-arm-Linux-g++bistrognu-static.nar 2981955
3/31/15 7:05 AM
mmsputils-2.2.11-20150331.050502-4-arm-Linux-g++bistrognu-static.nar.md5
32 3/31/15 7:05 AM
mmsputils-2.2.11-20150331.050502-4-arm-Linux-g++bistrognu-static.nar.sha1
40 3/31/15 7:05 AM
mmsputils-2.2.11-20150331.050502-4-noarch.nar 106935 3/31/15 7:05
AM
mmsputils-2.2.11-20150331.050502-4-noarch.nar.md5 32 3/31/15 7:05
AM
mmsputils-2.2.11-20150331.050502-4-noarch.nar.sha1 40 3/31/15 7:05
AM
mmsputils-2.2.11-20150331.050502-4.nar 3471 3/31/15 7:05 AM
mmsputils-2.2.11-20150331.050502-4.nar.md5 32 3/31/15 7:05 AM
mmsputils-2.2.11-20150331.050502-4.nar.sha1 40 3/31/15 7:05 AM
mmsputils-2.2.11-20150331.050502-4.pom 3438 3/31/15 7:05 AM
mmsputils-2.2.11-20150331.050502-4.pom.md5 32 3/31/15 7:05 AM
mmsputils-2.2.11-20150331.050502-4.pom.sha1 40 3/31/15 7:05 AM
Log :
DEBUG] Download for NarDependencies {
[DEBUG] -
com.inetpsa.ivi00.ihm.wrapper:mmsputils:nar:x86-Windows-msvc-static:2.2.11-SNAPSHOT:compile
[DEBUG] -
com.inetpsa.ivi00.ihm.wrapper:mmsputils:nar:noarch:2.2.11-SNAPSHOT:compile
[DEBUG] -
com.inetpsa.ivi00.ihm.uilogic:stdcommon:nar:noarch:15.0.2-SNAPSHOT:compile
[DEBUG] -
com.inetpsa.ivi00.ihm.wrapper:cppglib:nar:x86-Windows-msvc-static:2.2.11-SNAPSHOT:compile
[DEBUG] -
com.inetpsa.ivi00.ihm.wrapper:cppglib:nar:noarch:2.2.11-SNAPSHOT:compile
[DEBUG] }
[DEBUG] Resolving
com.inetpsa.ivi00.ihm.wrapper:mmsputils:nar:x86-Windows-msvc-static:2.2.11-SNAPSHOT:compile
[DEBUG] Could not find metadata
com.inetpsa.ivi00.ihm.wrapper:mmsputils:2.2.11-SNAPSHOT/maven-metadata.xml in
local (G:\ivi00\Eclipse_DEV\Integration\maven\repository)
[DEBUG] Skipped remote update check for
com.inetpsa.ivi00.ihm.wrapper:mmsputils:2.2.11-SNAPSHOT/maven-metadata.xml,
already updated during this session.
[DEBUG] Using connector WagonRepositoryConnector with priority 0.0 for
http://ciq-repository.dev.inetpsa.com/repository/virtual
[INFO] Downloading:
http://ciq-repository.dev.inetpsa.com/repository/virtual/com/inetpsa/ivi00/ihm/wrapper/mmsputils/2.2.11-SNAPSHOT/mmsputils-2.2.11-20150331.050502-4-x86-Windows-msvc-static.nar
[DEBUG] Writing tracking file
G:\ivi00\Eclipse_DEV\Integration\maven\repository\com\inetpsa\ivi00\ihm\wrapper\mmsputils\2.2.11-SNAPSHOT\mmsputils-2.2.11-20150331.050502-4-x86-Windows-msvc-static.nar.lastUpdated
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
I have an issue when I want to get the dependency on a previous timestamp, the
resolver can not find
mmsputils-2.2.11-20150331.050340-3-x86-Windows-msvc-static.nar because it is
not present in the last snapshot.
Unfortunatly, I am not able to deploy in one time the both classifier because
there are 2 servers (Linux and Windows)
Are there any solution to get the latest timestamp that have the classifier
requested?
Kind regards
C1 Internal
X
C2 Restricted
C3 Confidential
C4 Secret
!!!!
http://surete.inetpsa.com<http://surete.inetpsa.com/>
------------------------------------------------------------------------
Rémi DEPARIS
PSA Peugeot Citroën
DRD/DSEE/MCSI/AISL/IVIS
Fixe : (+33)9 66 66 52 98 (27)
Courriel : [email protected]
VVA -VVA026
------------------------------------------------------------------------
Ce message peut contenir des informations confidentielles. S'il ne vous est pas
destiné, merci de le détruire et d'informer immédiatement son émetteur.
Pour plus d'informations relatives à la confidentialité et à la sécurité
veuillez consulter
http://disclaimer.psa-peugeot-citroen.com<http://disclaimer.psa-peugeot-citroen.com/>
This message may contain information that is confidential. If you are not the
intended recipient, please advise the sender immediately and delete this
message.
For further information on confidentiality and the risks inherent in electronic
communication see
http://disclaimer.psa-peugeot-citroen.com<http://disclaimer.psa-peugeot-citroen.com/>