IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Maven Java Discussion :

Unable to download the artifact from any repository


Sujet :

Maven Java

  1. #1
    Membre régulier
    Profil pro
    Étudiant
    Inscrit en
    Décembre 2006
    Messages
    177
    Détails du profil
    Informations personnelles :
    Âge : 38
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Décembre 2006
    Messages : 177
    Points : 106
    Points
    106
    Par défaut Unable to download the artifact from any repository
    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 :
    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>
    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
    7
    <dependencies>
            <dependency>
                <groupId>org.openrdf.elmo</groupId>
                <artifactId>elmo-scutter</artifactId>
                <version>1.4</version>
            </dependency>
        </dependencies>
    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
    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] ------------------------------------------------------------------------
    Du coup mes questions sont :
    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.

  2. #2
    Membre habitué Avatar de DanielW33
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    327
    Détails du profil
    Informations personnelles :
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Mai 2006
    Messages : 327
    Points : 164
    Points
    164
    Par défaut
    il faut mettre l'url du repository sans ajouter le groupId de l'artifact que tu desire.

    Essaie comme cela :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    <repositories>
       <repository>
          <id>aduna repository</id>
          <url>http://repo.aduna-software.org/maven2/releases</url>
       </repository>
    </repositories>

  3. #3
    Membre régulier
    Inscrit en
    Août 2007
    Messages
    84
    Détails du profil
    Informations personnelles :
    Âge : 44

    Informations forums :
    Inscription : Août 2007
    Messages : 84
    Points : 98
    Points
    98
    Par défaut
    2)Pourquoi j'ai cependant un BUILD SUCCESSFUL
    Parce que le plugin eclipse a son propre mécanisme de résolution de
    dépendances, principalement pour éviter un BUILD FAILED sur la non-présence de source ou de javadoc pour un artéfact.

    Si tu lances mvn compile, là tu auras certainement un BUILD FAILED

  4. #4
    Membre régulier
    Profil pro
    Étudiant
    Inscrit en
    Décembre 2006
    Messages
    177
    Détails du profil
    Informations personnelles :
    Âge : 38
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Décembre 2006
    Messages : 177
    Points : 106
    Points
    106
    Par défaut re
    Merci pour vos deux réponses

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 0
    Dernier message: 11/07/2012, 08h51
  2. [Sonar] [Maven] Unable to download the artifact from any repository
    Par niro75 dans le forum Qualimétrie
    Réponses: 16
    Dernier message: 16/07/2010, 10h12
  3. erreur:Unable to download the artifact
    Par Sniper37 dans le forum Maven
    Réponses: 3
    Dernier message: 07/03/2008, 10h02
  4. Réponses: 3
    Dernier message: 23/03/2006, 16h55
  5. [WebForms][1.1] Unable to make the session state request
    Par the_bmo dans le forum Général Dotnet
    Réponses: 7
    Dernier message: 12/10/2005, 14h27

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo