'lut,
J'ai récupéré sur sourceforge le plugin xradar, il n'est pas natif à Maven et donc je peux pas l'installer automatiquement via "mvn xradar" ou par le pom.
Je voudrais savoir dans un premier temps si je m'y suis bien pris pour l'installer, j'ai tapper ça : mvn -X install:install-file -Dfile=maven-xradar-plugin-0.99.1.jar -DgroupId=xradar.sourceforge.net -DartifactId=xradar -Dversion=0.99.1 -Dpackaging=jar. Là j'ai BUILD SUCCESSFULL. Mais le soucis, c'est que dans mon pom j'ai mis ça :
et ça me sort ça :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 <plugin> <groupId>xradar.sourceforge.net</groupId> <artifactId>maven-xradar-plugin</artifactId> </plugin>
J'ai trouvé pas mal d'information sur des forums, y compris celui-ci. C'est quoi la différence entre DEPLOY et INSTALL? J'ai bien tenté un deploy mais il me sort une erreur du type :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'xradar.sourceforge.net:maven-xradar-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Thu May 10 15:30:04 CEST 2007 [INFO] Final Memory: 12M/22M [INFO] ------------------------------------------------------------------------
Si quelqu'un pouvait m'aider en m'éxpliquant clairement la démarche à suivre pour installer un plugin manuellement, et pouvoir l'utiliser dans le pom.
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 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven -deploy-plugin:2.3 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] ------------------------------------------------------------------------ [DEBUG] Trace
Par avance mille merci.
Partager