Bonjour,
J'ai une erreur quand je lance la commande mvn release:perform
J'ai un projet tout basique dont voici le pom.xml :
Je lance la commande mvn release:prepare , et un tag est bien créé dans mon SCM.
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>fr.test</groupId> <artifactId>test1</artifactId> <packaging>jar</packaging> <version>1.1-SNAPSHOT</version> <name>Maven Quick Start Archetype</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <scm> <connection>scm:svn:file:///c:/SVN/test1/trunk</connection> <developerConnection>scm:svn:file:///c:/SVN/test1/trunk</developerConnection> <url>scm:svn:file:///c:/SVN/test1/trunk</url> </scm> <build> <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ftp</artifactId> <version>1.0-alpha-6</version> </extension> </extensions> </build> <distributionManagement> <!-- use the following if you're not using a snapshot version. --> <repository> <id>ftp-repository</id> <name>Repository Name</name> <url>ftp://ftpperso.free.fr</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>ftp-repository</id> <name>Repository Name</name> <url>ftp://ftpperso.free.fr</url> </snapshotRepository> </distributionManagement> </project>
Mais quand je lance la commande mvn release:perform j'ai l'erreur suivante :
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 ..... ...... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-deploy-plugin: .2.1 check that the following section of the pom.xml is present and correct: <distributionManagement> <!-- use the following if you're not using a snapshot version. --> <repository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </snapshotRepository> </distributionManagement> Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7 seconds [INFO] Finished at: Fri Sep 22 21:23:14 CEST 2006 [INFO] Final Memory: 8M/15M [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error executing Maven: Maven execution failed, exit code: '1' [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11 seconds [INFO] Finished at: Fri Sep 22 21:23:14 CEST 2006 [INFO] Final Memory: 4M/8M [INFO] ------------------------------------------------------------------------
Des idées ?
Merci d'avance
Partager