Bonjour,
J'essaye de télécharger un artifact qui n'est pas présent dans le repo central Maven.
Je précise donc dans mon POM l'endroit où se trouve le repo :
Et je spécifie la dépendance de cette manière dans mon POM :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6<repositories> <repository> <id>aduna repository</id> <url>http://repo.aduna-software.org/maven2/releases/org/openrdf/elmo/elmo-scutter/1.4/</url> </repository> </repositories>
Lorsque que j'execute la commande suivante voici le résultat obtenu :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7<dependencies> <dependency> <groupId>org.openrdf.elmo</groupId> <artifactId>elmo-scutter</artifactId> <version>1.4</version> </dependency> </dependencies>
Du coup mes questions sont :
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73 C:\Java\crawler_workspace\focused_crawler>mvn eclipse:clean eclipse:eclipse [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'eclipse'. [INFO] ------------------------------------------------------------------------ [INFO] Building Focused crawler [INFO] task-segment: [eclipse:clean, eclipse:eclipse] [INFO] ------------------------------------------------------------------------ [INFO] [eclipse:clean] [INFO] Deleting file: .project [INFO] Deleting file: .classpath [INFO] Deleting file: .wtpmodules [INFO] Deleting file: .component [INFO] Deleting file: org.eclipse.wst.common.component [INFO] Deleting file: org.eclipse.wst.common.project.facet.core.xml [INFO] Deleting file: org.eclipse.jdt.core.prefs [INFO] Deleting directory: .settings [INFO] Preparing eclipse:eclipse [INFO] No goals needed for project - skipping [INFO] [eclipse:eclipse] [INFO] Using as WTP server : null [INFO] Adding default classpath contaigner: org.eclipse.jdt.launching.JRE_CONTAI NER Downloading: <a href="http://repo.aduna-software.org/maven2/releases/org/openrdf/elmo/elm" target="_blank">http://repo.aduna-software.org/maven...enrdf/elmo/elm</a> o-scutter/1.4//org/openrdf/elmo/elmo-scutter/1.4/elmo-scutter-1.4.pom Downloading: <a href="http://repo1.maven.org/maven2/org/openrdf/elmo/elmo-scutter/1.4/elm" target="_blank">http://repo1.maven.org/maven2/org/op...cutter/1.4/elm</a> o-scutter-1.4.pom Downloading: <a href="http://repo.aduna-software.org/maven2/releases/org/openrdf/elmo/elm" target="_blank">http://repo.aduna-software.org/maven...enrdf/elmo/elm</a> o-scutter/1.4//org/openrdf/elmo/elmo-scutter/1.4/elmo-scutter-1.4.jar Downloading: <a href="http://repo1.maven.org/maven2/org/openrdf/elmo/elmo-scutter/1.4/elm" target="_blank">http://repo1.maven.org/maven2/org/op...cutter/1.4/elm</a> o-scutter-1.4.jar [WARNING] An error occurred during dependency resolution. Failed to retrieve org.openrdf.elmo:elmo-scutter-1.4 Caused by: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.openrdf.elmo -DartifactId=elmo-scutte r -Dversion=1.4 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.openrdf.elmo -DartifactId=elmo-scutter -Dversion=1.4 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[i d] Path to dependency: 1) org.mygroupid.crawler:crawler:jar:1.0-SNAPSHOT 2) org.openrdf.elmo:elmo-scutter:jar:1.4 org.openrdf.elmo:elmo-scutter:jar:1.4 from the specified remote repositories: aduna repository (http://repo.aduna-software.org/maven2/releases/org/openrdf/e lmo/elmo-scutter/1.4/), central (http://repo1.maven.org/maven2) [INFO] Unable to read jar manifest from C:\Java\apache-maven-2.0.9\local_reposit ory\org\openrdf\elmo\elmo-scutter\1.4\elmo-scutter-1.4.jar [INFO] Using source status cache: C:\Java\crawler_workspace\focused_crawler\targ et\mvn-eclipse-cache.properties [INFO] Wrote settings to C:\Java\crawler_workspace\focused_crawler\.settings\org .eclipse.jdt.core.prefs [INFO] Wrote Eclipse project for "crawler" to C:\Java\crawler_workspace\focused_ crawler. [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Fri Jan 30 16:42:30 CET 2009 [INFO] Final Memory: 6M/254M [INFO] ------------------------------------------------------------------------
1) Pourquoi je ne parviens pas à télécharger mes artifacts alors qu'à l'URL spécifiée, ils sont bien présents ?
2)Pourquoi j'ai cependant un BUILD SUCCESSFUL
Merci pour vos réponses.
Partager