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 :

[maven 2] installation d'hibernate


Sujet :

Maven Java

  1. #1
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Juillet 2007
    Messages
    37
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2007
    Messages : 37
    Points : 28
    Points
    28
    Par défaut [maven 2] installation d'hibernate
    bonjour,

    j'ai des soucis pour installer hibernate.
    impossible d'avoir une version supérieure à 3.0.3 : est-ce possible de prendre le 3.2.0 (qu'il ne trouve pas sur le repo général public de maven) ?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
        <dependency>
          <groupId>hibernate</groupId>
          <artifactId>hibernate</artifactId>
          <version>3.0.3</version>
       </dependency>
    je voudrais :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
        <dependency>
          <groupId>hibernate</groupId>
          <artifactId>hibernate</artifactId>
          <version>3.2.0</version>
       </dependency>

  2. #2
    Membre actif
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    219
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Avril 2007
    Messages : 219
    Points : 200
    Points
    200
    Par défaut
    Salut,

    pourquoi tu ne peux pas ??

    Quel est le message d'erreur?

    @+

  3. #3
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Juillet 2007
    Messages
    37
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2007
    Messages : 37
    Points : 28
    Points
    28
    Par défaut
    visiblement, il ne trouve pas le jar :

    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
    [INFO] Scanning for projects...
    [INFO] ----------------------------------------------------------------------------
    [INFO] Building enterprise java beans for GNG project
    [INFO]    task-segment: [install]
    [INFO] ----------------------------------------------------------------------------
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    Downloading: http://repo1.maven.org/maven2/hibernate/hibernate/3.2.0/hibernate-3.2.0.pom
    Downloading: http://repo1.maven.org/maven2/hibernate/hibernate/3.2.0/hibernate-3.2.0.jar
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
     
    Missing:
    ----------
    1) hibernate:hibernate:jar:3.2.0
     
      Try downloading the file manually from the project website.
     
      Then, install it using the command: 
          mvn install:install-file -DgroupId=hibernate -DartifactId=hibernate \
              -Dversion=3.2.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=hibernate -DartifactId=hibernate \
              -Dversion=3.2.0 -Dpackaging=jar -Dfile=/path/to/file \
               -Durl=[url] -DrepositoryId=[id]
     
      Path to dependency: 
      	1) com.alcatel.gng:GNG_EJB:ejb:1.0
      	2) hibernate:hibernate:jar:3.2.0
     
    ----------
    1 required artifact is missing.
     
    for artifact: 
      com.alcatel.gng:GNG_EJB:ejb:1.0
     
    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: 2 seconds
    [INFO] Finished at: Thu Jul 26 17:07:21 CEST 2007
    [INFO] Final Memory: 3M/6M
    [INFO] ------------------------------------------------------------------------
    sur la page http://repo1.maven.org/maven2/hibernate/hibernate/ il n'y a pas plus récent en stable que 3.0.5 et 3.1.rc1... comment cela se fait-il ?

  4. #4
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Juillet 2007
    Messages
    37
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2007
    Messages : 37
    Points : 28
    Points
    28
    Par défaut
    en fait, le groupID a changé de hibernate en org.hibernate...
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
        <dependency>
          <groupId>org.hibernate</groupId>
          <artifactId>hibernate</artifactId>
          <version>3.2.4.sp1</version>
       </dependency>

  5. #5
    Membre actif
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    219
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Avril 2007
    Messages : 219
    Points : 200
    Points
    200
    Par défaut
    Tu dois pouvoir trouver un plugin qui a été développé avec la version 3.2 de hibernate mais ca ne va pas être un plug-in reconnu par la comunauté maven2.

    Ceux qui ont été testé et qui sont sur :

    http://maven.apache.org/plugins/index.html
    http://mojo.codehaus.org/

    D'ailleurs sur le dernier tu dois pouvoir trouver un plugin Hibernate 3.2.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    <groupId>org.codehaus.mojo</groupId>
            <artifactId>hibernate3-maven-plugin</artifactId>
            <version>2.0-SNAPSHOT</version>
    Regarde cette page :

    http://mojo.codehaus.org/maven-hiber...gin/index.html

    Bon courage,

    @+

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

Discussions similaires

  1. Problème d'installation d'Hibernate
    Par foussil dans le forum Hibernate
    Réponses: 4
    Dernier message: 07/11/2006, 22h39
  2. [plugin] Installation d'Hibernate Sync
    Par Tourix dans le forum Eclipse Java
    Réponses: 12
    Dernier message: 10/07/2006, 17h43
  3. Installation d'Hibernate??
    Par mejri dans le forum Eclipse Java
    Réponses: 8
    Dernier message: 12/04/2006, 12h52
  4. [Maven 2] Installer le plugin archetypes-webapp
    Par Sniper37 dans le forum Maven
    Réponses: 5
    Dernier message: 23/03/2006, 08h43
  5. [Install] Eclipse hibernate synchroniser
    Par bonododo dans le forum Eclipse Java
    Réponses: 3
    Dernier message: 08/02/2006, 13h13

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