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 clean install


Sujet :

Maven Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Février 2007
    Messages
    382
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 382
    Par défaut problème clean install
    Bonjour,

    j'ai le pom.xml suivant :
    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
     
    <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.paris.damien77</groupId>
        <artifactId>ApplicationTest</artifactId>
        <version>0.0.1-SNAPSHOT</version>
     
        <packaging>jar</packaging>   
     
        <dependencies>
            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>1.2.15</version>
            </dependency>
        </dependencies>
     
    </project>
    et quand je fais un mvn clean install j'ai le message suivant :
    C:\Users\Damien\Programmation\Java\FTPServer>mvn clean install
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Unnamed - fr.paris.damien77:ApplicationTest:jar:0.0.1-SNAPSHOT
    [INFO] task-segment: [clean, install]
    [INFO] ------------------------------------------------------------------------
    [INFO] [clean:clean]
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    Downloading: https://maven-repository.dev.java.ne...rs/jms-1.1.jar
    Downloading: http://repo1.maven.org/maven2/javax/....1/jms-1.1.jar
    Downloading: https://maven-repository.dev.java.ne...jmxtools-1.2.1
    .jar
    Downloading: http://repo1.maven.org/maven2/com/su...ools-1.2.1.jar
    Downloading: https://maven-repository.dev.java.ne...mxri-1.2.1.jar

    Downloading: http://repo1.maven.org/maven2/com/su...mxri-1.2.1.jar
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    Missing:
    ----------
    1) javax.jms:jms:jar:1.1

    Try downloading the file manually from:
    http://java.sun.com/products/jms/docs.html

    Then, install it using the command:
    mvn install:install-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar -D
    file=/path/to/file

    Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar -Dfi
    le=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) fr.paris.damien77:ApplicationTest:jar:0.0.1-SNAPSHOT
    2) log4j:log4j:jar:1.2.15
    3) javax.jms:jms:jar:1.1

    2) com.sun.jdmk:jmxtools:jar:1.2.1

    Try downloading the file manually from:
    http://java.sun.com/products/JavaManagement/download.html

    Then, install it using the command:
    mvn install:install-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion=1.2.1 -Dpackag
    ing=jar -Dfile=/path/to/file

    Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion=1.2.1 -Dpackagin
    g=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) fr.paris.damien77:ApplicationTest:jar:0.0.1-SNAPSHOT
    2) log4j:log4j:jar:1.2.15
    3) com.sun.jdmk:jmxtools:jar:1.2.1

    3) com.sun.jmx:jmxri:jar:1.2.1

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=com.sun.jmx -DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=
    jar -Dfile=/path/to/file

    Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=com.sun.jmx -DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=ja
    r -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) fr.paris.damien77:ApplicationTest:jar:0.0.1-SNAPSHOT
    2) log4j:log4j:jar:1.2.15
    3) com.sun.jmx:jmxri:jar:1.2.1

    ----------
    3 required artifacts are missing.

    for artifact:
    fr.paris.damien77:ApplicationTest:jar:0.0.1-SNAPSHOT

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


    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 6 seconds
    [INFO] Finished at: Sat May 10 16:23:47 CEST 2008
    [INFO] Final Memory: 6M/11M
    [INFO] ------------------------------------------------------------------------

    Pouquoi ? je ne comprend pas.

  2. #2
    Expert éminent
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 483
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 483
    Par défaut
    Tu dépend (indirectement ou directement) de trois artefacts non disponible sur les repository public. Met à jour tes dépendanceou, comme indiqué dans le message, télécharge les à la main.

  3. #3
    Membre expérimenté
    Homme Profil pro
    Inscrit en
    Février 2008
    Messages
    197
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Seine et Marne (Île de France)

    Informations forums :
    Inscription : Février 2008
    Messages : 197
    Par défaut
    C'est la version 1.2.15 de log4j qui dépend de dépendances non disponibles sur le repository central. Perso j'utilise la 1.2.14 qui n'a pas ce soucis. Sinon comme le dit tchize_ il faut te procurer ces librairies et les déployer localement (perso je trouve ça un peu lourd juste pour avoir des logs).

Discussions similaires

  1. Problème task clean install
    Par Leniouns dans le forum Maven
    Réponses: 9
    Dernier message: 09/05/2012, 15h56
  2. Problème avec mvn clean install
    Par berty_bb dans le forum Maven
    Réponses: 3
    Dernier message: 15/12/2011, 23h05
  3. [SAPdb]Problème d'installation
    Par manou dans le forum SAP
    Réponses: 3
    Dernier message: 17/04/2003, 10h20
  4. Problème d'installation oracle 8.1.7 sous NT
    Par Anonymous dans le forum Installation
    Réponses: 7
    Dernier message: 02/08/2002, 15h18
  5. Réponses: 3
    Dernier message: 27/07/2002, 00h02

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