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 :

Error building POM


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
    Août 2006
    Messages
    568
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 568
    Par défaut Error building POM
    Bonjour,

    J'essaye de compiler les ressources d'un projet et j'obtiens le message d'erreur suivant

    [code]
    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
     
    C:\xxx\xxxxx>mvn compile
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Unnamed - xxxxx:jar:1.0.0
    [INFO]    task-segment: [compile]
    [INFO] ------------------------------------------------------------------------
    Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resour
    ces-plugin/2.3/maven-resources-plugin-2.3.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugi
    n:pom:2.3' from repository central (http://repo1.maven.org/maven2): Error transf
    erring file
    Downloading: http://download.java.net/maven/1/org/apache/maven/plugins/maven-res
    ources-plugin/2.3/maven-resources-plugin-2.3.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugi
    n:pom:2.3' from repository sunrepository (http://download.java.net/maven/1): Err
    or transferring file
    Downloading: http://repository.jboss.org/maven2/org/apache/maven/plugins/maven-r
    esources-plugin/2.3/maven-resources-plugin-2.3.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugi
    n:pom:2.3' from repository jbossrepository (http://repository.jboss.org/maven2):
     Error transferring file
    Downloading: http://repository.apache.org/snapshots/org/apache/maven/plugins/mav
    en-resources-plugin/2.3/maven-resources-plugin-2.3.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugi
    n:pom:2.3' from repository apacherepository (http://repository.apache.org/snapsh
    ots): Error transferring file
    Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plug
    ins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugi
    n:pom:2.3' from repository ibibliorepository (http://mirrors.ibiblio.org/pub/mir
    rors/maven2): Error transferring file
    Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resour
    ces-plugin/2.3/maven-resources-plugin-2.3.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugi
    n:pom:2.3' from repository central (http://repo1.maven.org/maven2): Error transf
    erring file
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Error building POM (may not be this project's POM).
     
     
    Project ID: org.apache.maven.plugins:maven-resources-plugin
     
    Reason: POM 'org.apache.maven.plugins:maven-resources-plugin' not found in repos
    itory: Unable to download the artifact from any repository
     
      org.apache.maven.plugins:maven-resources-plugin:pom:2.3
     
    from the specified remote repositories:
      jbossrepository (http://repository.jboss.org/maven2),
      ibibliorepository (http://mirrors.ibiblio.org/pub/mirrors/maven2),
      central (http://repo1.maven.org/maven2),
      apacherepository (http://repository.apache.org/snapshots),
      sunrepository (http://download.java.net/maven/1)
     
     for project org.apache.maven.plugins:maven-resources-plugin
     
     
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 9 seconds
    [INFO] Finished at: Fri Jun 03 11:52:03 CEST 2011
    [INFO] Final Memory: 1M/15M
    [INFO] ------------------------------------------------------------------------
    je vous remercie pour votre aide

  2. #2
    Membre éclairé Avatar de le Daoud
    Profil pro
    Inscrit en
    Novembre 2002
    Messages
    287
    Détails du profil
    Informations personnelles :
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations forums :
    Inscription : Novembre 2002
    Messages : 287
    Par défaut
    Bonjour,

    Ne rencontres-tu pas un pb de connexion ? Es-tu derrière un proxy ?
    Si tu mets une des URL (par exemple http://repo1.maven.org/maven2/org/ap...plugin-2.3.pom) dans le navigateur, ça passe ?

    daoud

  3. #3
    Membre éclairé
    Profil pro
    Inscrit en
    Août 2006
    Messages
    568
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 568
    Par défaut
    merci pour ta réponse
    effectivement je croyais que c'est dû au proxy alors que je n'ai aucun problème pour acceder à la page http://repo1.maven.org/maven2/org/ap...plugin-2.3.pom par exemple.

    j'ai quand même configuré le proxy dans settings.xml
    j'obtiens d'autres types d'erreurs :

    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
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
     
    Missing:
    ----------
    1) apache-logging:commons-logging:jar:1.1.0.jboss
     
      Try downloading the file manually from the project website.
     
      Then, install it using the command:
          mvn install:install-file -DgroupId=apache-logging -DartifactId=commons-log
    ging -Dversion=1.1.0.jboss -Dpackaging=jar -Dfile=/path/to/file
     
      Alternatively, if you host your own repository you can deploy the file there:
     
          mvn deploy:deploy-file -DgroupId=apache-logging -DartifactId=commons-loggi
    ng -Dversion=1.1.0.jboss -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepo
    sitoryId=[id]
     
      Path to dependency:
            1) xxx:xxxx:jar:1.0.0
            2) apache-logging:commons-logging:jar:1.1.0.jboss
     
    2) opensaml:xmltooling:jar:1.1.0
     
      Try downloading the file manually from the project website.
     
      Then, install it using the command:
          mvn install:install-file -DgroupId=opensaml -DartifactId=xmltooling -Dvers
    ion=1.1.0 -Dpackaging=jar -Dfile=/path/to/file
     
      Alternatively, if you host your own repository you can deploy the file there:
     
          mvn deploy:deploy-file -DgroupId=opensaml -DartifactId=xmltooling -Dversio
    n=1.1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
     
      Path to dependency:
            1) xxx:xxxx:jar:1.0.0
            2) opensaml:xmltooling:jar:1.1.0
     
    3) opensaml:opensaml:jar:2.1.0
     
      Try downloading the file manually from the project website.
     
      Then, install it using the command:
          mvn install:install-file -DgroupId=opensaml -DartifactId=opensaml -Dversio
    n=2.1.0 -Dpackaging=jar -Dfile=/path/to/file
     
      Alternatively, if you host your own repository you can deploy the file there:
     
          mvn deploy:deploy-file -DgroupId=opensaml -DartifactId=opensaml -Dversion=
    2.1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
     
      Path to dependency:
            1) xxx:xxxx:jar:1.0.0
            2) opensaml:opensaml:jar:2.1.0
     
    4) org.apache.commons:commons-codec:jar:1.3
     
      Try downloading the file manually from the project website.
     
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.apache.commons -DartifactId=commons
    -codec -Dversion=1.3 -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.apache.commons -DartifactId=commons-c
    odec -Dversion=1.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepository
    Id=[id]
     
      Path to dependency:
            1) xxxx:xxxx:jar:1.0.0
            2) org.apache.commons:commons-codec:jar:1.3
     
    5) opensaml:openws:jar:1.1.0
     
      Try downloading the file manually from the project website.
     
      Then, install it using the command:
          mvn install:install-file -DgroupId=opensaml -DartifactId=openws -Dversion=
    1.1.0 -Dpackaging=jar -Dfile=/path/to/file
     
      Alternatively, if you host your own repository you can deploy the file there:
     
          mvn deploy:deploy-file -DgroupId=opensaml -DartifactId=openws -Dversion=1.
    1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
     
      Path to dependency:
            1) xxxx:xxxx:jar:1.0.0
            2) opensaml:openws:jar:1.1.0
     
    ----------
    5 required artifacts are missing.
     
    for artifact:
      xxxx:xxxxx:jar:1.0.0
     
    from the specified remote repositories:
      jbossrepository (http://repository.jboss.org/maven2),
      ibibliorepository (http://mirrors.ibiblio.org/pub/mirrors/maven2),
      apacherepository (http://repository.apache.org/snapshots),
      central (http://repo1.maven.org/maven2),
      sunrepository (http://download.java.net/maven/1)
     
     
     
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 28 seconds
    [INFO] Finished at: Fri Jun 03 16:00:02 CEST 2011
    [INFO] Final Memory: 12M/30M
    [INFO] ------------------------------------------------------------------------
    je vous remercie pour votre aide

  4. #4
    Membre éclairé Avatar de le Daoud
    Profil pro
    Inscrit en
    Novembre 2002
    Messages
    287
    Détails du profil
    Informations personnelles :
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations forums :
    Inscription : Novembre 2002
    Messages : 287
    Par défaut
    Il se pourrait que cela soit une question de version.
    commons-logging ne semble pas exister en 1.1.0 mais en 1.1 ou 1.1.1 (voir : http://search.maven.org/#search|ga|1...ons-logging%22)
    La problématique semble la même pour les autres jar.

  5. #5
    Membre éclairé
    Profil pro
    Inscrit en
    Août 2006
    Messages
    568
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 568
    Par défaut
    merci encore,
    j'ai installé le binaire "apache-maven-2.0.11-bin.zip"

  6. #6
    Membre éclairé Avatar de le Daoud
    Profil pro
    Inscrit en
    Novembre 2002
    Messages
    287
    Détails du profil
    Informations personnelles :
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations forums :
    Inscription : Novembre 2002
    Messages : 287
    Par défaut
    je pensais à un problème de version des dépendances et non de maven.
    Chaque dépendance est renseignée dans un tag dependency et a un numéro de version indiqué dans un tag version (cela est peut-être indiqué aussi dans le tag dependency-management). Il faut s'assurer que la version est bien valide, ce qui ne semble pas être le cas pour les jar en erreur (par exemple pour commons-logging il faut mettre 1.1 et non 1.1.0

  7. #7
    Membre éclairé
    Profil pro
    Inscrit en
    Août 2006
    Messages
    568
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 568
    Par défaut
    tu as raison puisque j'ai essayé avec une autre version plus recente de Marven et j'ai eu les même erreurs
    peu-tu me dire ou est ce que je peux changer les tag dependency stp

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

Discussions similaires

  1. Réponses: 1
    Dernier message: 12/04/2011, 10h07
  2. [Maven] Error building POM
    Par djolof dans le forum Maven
    Réponses: 2
    Dernier message: 24/03/2009, 12h31
  3. [ERROR]BUILD ERROR with maven
    Par Jacobian dans le forum Maven
    Réponses: 3
    Dernier message: 28/01/2009, 23h27
  4. [Continuum] Error de Build/Impossible de récuperer un module par ftp
    Par kalan dans le forum Intégration Continue
    Réponses: 11
    Dernier message: 08/09/2006, 15h18
  5. BUILD ERROR sur création d'un projet multi-modules
    Par elitost dans le forum Maven
    Réponses: 1
    Dernier message: 28/08/2006, 15h23

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