bonjour,

Je cherche à uploader mon jar construit avec maven dans le repository distant.
J'ai fait plein de recherche mais je tombe lors du deploiement sur l'erreur :
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.644s
[INFO] Finished at: Wed Apr 07 15:52:16 CEST 2010
[INFO] Final Memory: 14M/35M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) on project fr.intuitiv.proto.core: Error retrieving previous build number for artifact 'fr.intuitiv.proto:fr.intuitiv.proto.core:jar': repository metadata for: 'snapshot fr.intuitiv.proto:fr.intuitiv.proto.core:0.0.1-SNAPSHOT' could not be retrieved from repository: alfresco due to an error: Exit code: 1 - 'scp' n'est pas reconnu en tant que commande interne
ou externe, un programme ex‚cutable ou un fichier de commandes.
-> [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/d...utionException

J'ai tout fait dans les regles de l'art pourtant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<distributionManagement>
		<repository>
			<id>alfresco</id>
			<name>Alfresco320r prototype repo</name>
			<url>scpexe://osiris.intuitiv.lan:8081/nexus/content/repositories/alfresco</url>
		</repository>
	</distributionManagement>
 
	<build>
		<extensions>
			<!-- Enabling the use of FTP -->
			<extension>
				<groupId>org.apache.maven.wagon</groupId>
				<artifactId>wagon-ssh-external</artifactId>
				<version>1.0-beta-6</version>
			</extension>
		</extensions>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
		</plugins>
	</build>
et le settings.xml :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<servers>
		<server>
			<id>alfresco</id>
			<username>ffournel</username>
			<password>Scarabe_1</password>
			<configuration>
				<sshExecutable>plink.exe</sshExecutable>
				<scpExecutable>pscp.exe</scpExecutable>
				<sshArgs>-P 22</sshArgs>
				<scpArgs>-P 22</scpArgs>
			</configuration>
		</server>
	</servers>
Bien sur, les executables de putty sont dans le PATH.

Merci de votre aide