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 :

Problème avec mvn clean install


Sujet :

Maven Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre à l'essai
    Homme Profil pro
    Inscrit en
    Décembre 2011
    Messages
    4
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Décembre 2011
    Messages : 4
    Par défaut Problème avec mvn clean install
    Bonjour à tous,
    J`éssaye de compiler Tanaguru-rules avec la commande «mvn clean install» mais echec "Failed to resolve artifact" . voici le message:


    [INFO] Scanning for projects...
    [INFO] Reactor build order:
    [INFO] tanaguru-rules-all
    [INFO] tanaguru-rules-testing-tools
    [INFO] accessiweb2.1
    [INFO] tanaguru-rules-resources
    [INFO] tanaguru-rules
    [INFO] ------------------------------------------------------------------------
    [INFO] Building tanaguru-rules-all
    [INFO] task-segment: [clean, install]
    [INFO] ------------------------------------------------------------------------
    [INFO] [clean:clean {execution: default-clean}]
    [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
    [INFO] [install:install {execution: default-install}]
    [INFO] Installing /root/Sources/tanaguru-rules/pom.xml to /root/.m2/repository/org/opens/tanaguru-rules-all/1.0/tanaguru-rules-all-1.0.pom
    [INFO] ------------------------------------------------------------------------
    [INFO] Building tanaguru-rules-testing-tools
    [INFO] task-segment: [clean, install]
    [INFO] ------------------------------------------------------------------------
    [INFO] [clean:clean {execution: default-clean}]
    [INFO] Deleting file set: /root/Sources/tanaguru-rules/tanaguru-rules-testing-tools/target (included: [**], excluded: [])
    [INFO] [resources:resources {execution: default-resources}]
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 559 resources
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.pom
    [INFO] Unable to find resource 'org.opens:tanaguru-api:pom:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.pom
    [INFO] Unable to find resource 'org.opens:nomenclatureloader:pom:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.pom
    [INFO] Unable to find resource 'org.opens:rule-implementation-loader:pom:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.pom
    [INFO] Unable to find resource 'org.opens:persistence:pom:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.pom
    [INFO] Unable to find resource 'org.opens:crawler:pom:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.pom
    [INFO] Unable to find resource 'org.opens:contentloader:pom:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.pom
    [INFO] Unable to find resource 'org.opens:processor:pom:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.pom
    [INFO] Unable to find resource 'org.opens:consolidator:pom:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.jar
    [INFO] Unable to find resource 'org.opens:tanaguru-api:jar:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.jar
    [INFO] Unable to find resource 'org.opens:nomenclatureloader:jar:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.jar
    [INFO] Unable to find resource 'org.opens:rule-implementation-loader:jar:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.jar
    [INFO] Unable to find resource 'org.opens:persistence:jar:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.jar
    [INFO] Unable to find resource 'org.opens:crawler:jar:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.jar
    [INFO] Unable to find resource 'org.opens:contentloader:jar:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.jar
    [INFO] Unable to find resource 'org.opens:processor:jar:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/op...-1.3.0-RC1.jar
    [INFO] Unable to find resource 'org.opens:consolidator:jar:1.3.0-RC1' in repository central (http://repo1.maven.org/maven2)
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    Missing:
    ----------
    1) org.opens:tanaguru-api:jar:1.3.0-RC1

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.opens -DartifactId=tanaguru-api -Dversion=1.3.0-RC1 -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.opens -DartifactId=tanaguru-api -Dversion=1.3.0-RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) org.opens:tanaguru-rules-testing-tools:jar:0.8.4-RC1
    2) org.opens:tanaguru-api:jar:1.3.0-RC1

    2) org.opens:nomenclatureloader:jar:1.3.0-RC1

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.opens -DartifactId=nomenclatureloader -Dversion=1.3.0-RC1 -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.opens -DartifactId=nomenclatureloader -Dversion=1.3.0-RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) org.opens:tanaguru-rules-testing-tools:jar:0.8.4-RC1
    2) org.opens:nomenclatureloader:jar:1.3.0-RC1

    3) org.opens:rule-implementation-loader:jar:1.3.0-RC1

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.opens -DartifactId=rule-implementation-loader -Dversion=1.3.0-RC1 -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.opens -DartifactId=rule-implementation-loader -Dversion=1.3.0-RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) org.opens:tanaguru-rules-testing-tools:jar:0.8.4-RC1
    2) org.opens:rule-implementation-loader:jar:1.3.0-RC1

    4) org.opens:persistence:jar:1.3.0-RC1

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.opens -DartifactId=persistence -Dversion=1.3.0-RC1 -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.opens -DartifactId=persistence -Dversion=1.3.0-RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) org.opens:tanaguru-rules-testing-tools:jar:0.8.4-RC1
    2) org.opens:persistence:jar:1.3.0-RC1

    5) org.opens:crawler:jar:1.3.0-RC1

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.opens -DartifactId=crawler -Dversion=1.3.0-RC1 -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.opens -DartifactId=crawler -Dversion=1.3.0-RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) org.opens:tanaguru-rules-testing-tools:jar:0.8.4-RC1
    2) org.opens:crawler:jar:1.3.0-RC1

    6) org.opens:contentloader:jar:1.3.0-RC1

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.opens -DartifactId=contentloader -Dversion=1.3.0-RC1 -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.opens -DartifactId=contentloader -Dversion=1.3.0-RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) org.opens:tanaguru-rules-testing-tools:jar:0.8.4-RC1
    2) org.opens:contentloader:jar:1.3.0-RC1

    7) org.opens:processor:jar:1.3.0-RC1

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.opens -DartifactId=processor -Dversion=1.3.0-RC1 -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.opens -DartifactId=processor -Dversion=1.3.0-RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) org.opens:tanaguru-rules-testing-tools:jar:0.8.4-RC1
    2) org.opens:processor:jar:1.3.0-RC1

    8) org.opens:consolidator:jar:1.3.0-RC1

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.opens -DartifactId=consolidator -Dversion=1.3.0-RC1 -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.opens -DartifactId=consolidator -Dversion=1.3.0-RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) org.opens:tanaguru-rules-testing-tools:jar:0.8.4-RC1
    2) org.opens:consolidator:jar:1.3.0-RC1

    ----------
    8 required artifacts are missing.

    for artifact:
    org.opens:tanaguru-rules-testing-tools:jar:0.8.4-RC1

    from the specified remote repositories:
    central (http://repo1.maven.org/maven2)



    Pourriez vous m'aider s'il vous plait.
    Merci d'avance

  2. #2
    Rédacteur
    Avatar de romaintaz
    Homme Profil pro
    Java craftsman
    Inscrit en
    Juillet 2005
    Messages
    3 790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Java craftsman
    Secteur : Finance

    Informations forums :
    Inscription : Juillet 2005
    Messages : 3 790
    Par défaut
    Bonjour,

    Ton problème est simple : il n'arrive pas à trouver des dépendances. Par exemple "org.opens:tanaguru-api:jar:1.3.0-RC1". Par défaut, Maven va chercher les dépendances dans les repositories définis dans le settings.xml, ou éventuellement dans http://repo1.maven.org/maven2/, le repository officiel de Maven.

    Donc soit tu ajoutes un repository contenant ces dépendances dans ton fichier settings.xml, soit tu installes ces dépendances localement dans ton repository (voir la FAQ pour ça).
    Nous sommes tous semblables, alors acceptons nos différences !
    --------------------------------------------------------------
    Liens : Blog | Page DVP | Twitter
    Articles : Hudson | Sonar | Outils de builds Java Maven 3 | Play! 1 | TeamCity| CitConf 2009
    Critiques : Apache Maven

  3. #3
    Membre à l'essai
    Homme Profil pro
    Inscrit en
    Décembre 2011
    Messages
    4
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Décembre 2011
    Messages : 4
    Par défaut mvn clean install
    Merci Romaintaz d'avoir répondu aussi vite,
    En effet je ne trouve aucun repository qui contient ces dépendances.
    et le lien "http://repo1/maven.org/maven2/" sembles ne pas être fonctionnel.
    Pouvez vous m'indiquer un repository valide pour trouver ces dépendance
    Une fois encore merci d'avance

  4. #4
    Membre émérite

    Homme Profil pro
    Architecte technique
    Inscrit en
    Juin 2005
    Messages
    588
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Juin 2005
    Messages : 588
    Par défaut
    Citation Envoyé par berty_bb Voir le message
    Merci Romaintaz d'avoir répondu aussi vite,
    En effet je ne trouve aucun repository qui contient ces dépendances.
    et le lien "http://repo1/maven.org/maven2/" sembles ne pas être fonctionnel.
    Pouvez vous m'indiquer un repository valide pour trouver ces dépendance
    Une fois encore merci d'avance
    Le repo central de Mavel est fonctionnel: http://repo1.maven.org/maven2/
    Tu obtiens des erreurs sur des jars de tanaguru qui ne sont pas sur le repos central... Normal, c'est le produit que tu buildes !

    Le build du projet ne semble pas si simple: http://www.tanaguru.org/fr/content/i...on-version-141

    - Installation de librairies externes dans le repo local (il te faudra trouver les jars en question)
    - Build module par module dans un ordre bien précis

Discussions similaires

  1. Problème avec "mvn install:install-file"
    Par iliass001 dans le forum Maven
    Réponses: 2
    Dernier message: 18/04/2013, 08h51
  2. Problème avec mvn clean
    Par chady dans le forum Maven
    Réponses: 2
    Dernier message: 07/03/2011, 01h47
  3. Problème avec mvn install
    Par dark_geek dans le forum Maven
    Réponses: 5
    Dernier message: 06/04/2010, 15h58
  4. Problème avec wine pour installer matlab
    Par Ph.denis dans le forum Applications et environnements graphiques
    Réponses: 4
    Dernier message: 26/11/2006, 17h15
  5. Problème avec visual studio installer
    Par logs77 dans le forum Installation, Déploiement et Sécurité
    Réponses: 3
    Dernier message: 26/09/2006, 15h46

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