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 :

dépendance manquante dans maven


Sujet :

Maven Java

  1. #1
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    705
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 705
    Par défaut dépendance manquante dans maven
    Salut à tous,
    J'ai télécharger un projet JAVA qui utilise la base de données Hbase + JPA + JSF

    voiçi le lien du tuto :

    https://github.com/matzew/hbase-jpa-jsf

    Quand j'exécute la commande "mvn", je reçois cette erreur, j'ai pas su comment la résoudre
    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
     
    [INFO] ------------------------------------------------------------------------
    [INFO] Building myfaces-hbase 1.0.0
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] >>> jetty-maven-plugin:7.1.6.v20100715:run (default-cli) @ hbase >>>
    [WARNING] The POM for org.apache.myfaces.core:myfaces-api:jar:2.0.2-SNAPSHOT is missing, no dependency information available
    [WARNING] The POM for org.apache.myfaces.core:myfaces-impl:jar:2.0.2-SNAPSHOT is missing, no dependency information available
    [WARNING] The POM for org.apache.openwebbeans:openwebbeans-impl:jar:1.0.0-SNAPSHOT is missing, no dependency information available
    [WARNING] The POM for org.apache.openwebbeans:openwebbeans-jsf:jar:1.0.0-SNAPSHOT is missing, no dependency information available
    [WARNING] The POM for org.apache.openwebbeans:openwebbeans-web:jar:1.0.0-SNAPSHOT is missing, no dependency information available
    [WARNING] The POM for org.apache.openwebbeans:openwebbeans-resource:jar:1.0.0-SNAPSHOT is missing, no dependency information available
    [WARNING] The POM for org.apache.openwebbeans:openwebbeans-spi:jar:1.0.0-SNAPSHOT is missing, no dependency information available
    [WARNING] The POM for org.apache.hadoop:hbase:jar:0.20.3 is missing, no dependency information available
    [WARNING] Could not transfer metadata org.apache.geronimo.specs:geronimo-jpa_2.0_spec:1.0-EA2-SNAPSHOT/maven-metadata.xml from/to local.repository (file:../../local.repository/trunk): No connector available to access repository local.repository (file:../../local.repository/trunk) of type legacy using the available factories AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory
    [WARNING] Could not transfer metadata org.apache.geronimo.specs:geronimo-jpa_2.0_spec:1.0-EA2-SNAPSHOT/maven-metadata.xml from/to local.repository (file:../../local.repository/trunk): No connector available to access repository local.repository (file:../../local.repository/trunk) of type legacy using the available factories AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.407s
    [INFO] Finished at: Wed Mar 09 15:12:30 CET 2011
    [INFO] Final Memory: 3M/55M

    NB: Je travaille avec Eclipse Helios....

    Avez vous une solution? Merci

  2. #2
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    705
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 705
    Par défaut
    J'ai pas toujours trouvé de solutions à mon problème ...

    Est ce que quelqu'un peut me dire la signification de ce Warning :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    The POM for org.apache.openwebbeans:openwebbeans-resource:jar:1.0.0-SNAPSHOT is missing, no dependency information available
    Et comment pourrais-je le résoudre !

    Merci !

  3. #3
    Rédacteur/Modérateur
    Avatar de Logan Mauzaize
    Homme Profil pro
    Architecte technique
    Inscrit en
    Août 2005
    Messages
    2 894
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : Transports

    Informations forums :
    Inscription : Août 2005
    Messages : 2 894
    Par défaut
    Tu as une dépendance sur le module org.apache.openwebbeans:openwebbeans-resource:jar:1.0.0-SNAPSHOT mais maven n'a pas trouvé le POM (fichier "pom.xml" dans le repository), il ne peut donc extraire d'information "Maven" (ici les dépendances).

    Maven propose un système de dépendance "transitive", ton projet hérite donc des dépendances des modules dont il dépend "explicitement".
    Java : Cours et tutoriels - FAQ - Java SE 8 API - Programmation concurrente
    Ceylon : Installation - Concepts de base - Typage - Appels et arguments

    ECM = Exemple(reproduit le problème) Complet (code compilable) Minimal (ne postez pas votre application !)
    Une solution vous convient ? N'oubliez pas le tag
    Signature par pitipoisson

  4. #4
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    705
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 705
    Par défaut
    D'acord et merci pour votre réponse, il y a un autre problème qui me gène et à qui j'ai pas trouvé une solution ...

    Quand j'exécute mon projet à travers mon IDE (eclipse), (bouton droit sur mon projet => Run AS => Mavne build), je reçois ce message

    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
     
    [INFO] Scanning for projects...
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building myfaces-hbase 1.0.0
    [INFO] ------------------------------------------------------------------------
    [WARNING] Could not transfer metadata org.apache.geronimo.specs:geronimo-jpa_2.0_spec:1.0-EA2-SNAPSHOT/maven-metadata.xml from/to local.repository (file:../../local.repository/trunk): No connector available to access repository local.repository (file:../../local.repository/trunk) of type legacy using the available factories AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory
    [WARNING] Could not transfer metadata org.apache.geronimo.specs:geronimo-jpa_2.0_spec:1.0-EA2-SNAPSHOT/maven-metadata.xml from/to local.repository (file:../../local.repository/trunk): No connector available to access repository local.repository (file:../../local.repository/trunk) of type legacy using the available factories AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 2.137s
    [INFO] Finished at: Wed Mar 30 10:19:50 CET 2011
    [INFO] Final Memory: 4M/55M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project hbase: Could not resolve dependencies for project net.wessendorf:hbase:war:1.0.0: Failed to collect dependencies for [org.apache.geronimo.specs:geronimo-interceptor_1.1_spec:jar:1.0 (compile), org.apache.geronimo.specs:geronimo-jcdi_1.0_spec:jar:1.0 (compile), org.apache.geronimo.specs:geronimo-atinject_1.0_spec:jar:1.0 (compile), org.apache.geronimo.specs:geronimo-validation_1.0_spec:jar:1.0 (runtime), javax.annotation:jsr250-api:jar:1.0 (compile), org.datanucleus:datanucleus-hbase:jar:2.0.0-release (compile), org.apache.hadoop:hadoop-core:jar:0.20.2 (compile), org.apache.myfaces.core:myfaces-api:jar:2.0.2 (compile), org.apache.myfaces.core:myfaces-impl:jar:2.0.2 (compile), org.apache.openwebbeans:openwebbeans-impl:jar:1.0.0 (compile), org.apache.openwebbeans:openwebbeans-jsf:jar:1.0.0 (compile), org.apache.openwebbeans:openwebbeans-web:jar:1.0.0 (compile), org.apache.openwebbeans:openwebbeans-resource:jar:1.0.0 (compile), org.apache.openwebbeans:openwebbeans-spi:jar:1.0.0 (compile), org.apache.hadoop:hbase:jar:0.20.3 (compile), org.apache.zookeeper:zookeeper:jar:3.3.1 (compile), org.datanucleus:datanucleus-core:jar:[1.9,) (compile), org.datanucleus:datanucleus-jpa:jar:[1.9,) (compile), log4j:log4j:jar:[1.2,1.3) (compile), commons-logging:commons-logging:jar:1.1.1 (compile), commons-lang:commons-lang:jar:2.4 (compile), javax.jdo:jdo2-api:jar:2.3-eb (compile), org.apache.geronimo.specs:geronimo-jpa_2.0_spec:jar:1.0 (compile)]: Failed to read artifact descriptor for org.apache.hadoop:hadoop-core:jar:0.20.1: Could not transfer artifact org.apache.hadoop:hadoop-core:pom:0.20.1 from/to local.repository (file:../../local.repository/trunk): No connector available to access repository local.repository (file:../../local.repository/trunk) of type legacy using the available factories AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
    Mais quand je me positionne dans le projet (à travers l'invite de commande: cd ~/projetmaven), puis j'exécute la commande (mvn), je reçois ce message:

    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
     
    [ERROR] --------------------
    [ERROR]  Standard error from the DataNucleus tool + org.datanucleus.enhancer.DataNucleusEnhancer :
    [ERROR] --------------------
    [ERROR] log4j:ERROR Could not read configuration file from URL [file:/home/esprit/workspace/matzew-hbase-jpa-jsf-7dfc250/log4j.properties].
    java.io.FileNotFoundException: /home/esprit/workspace/matzew-hbase-jpa-jsf-7dfc250/log4j.properties (No such file or directory)
    	at java.io.FileInputStream.open(Native Method)
    	at java.io.FileInputStream.<init>(FileInputStream.java:106)
    	at java.io.FileInputStream.<init>(FileInputStream.java:66)
    	at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
    	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
    	at java.net.URL.openStream(URL.java:1010)
    	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:459)
    	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
    	at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
    	at org.apache.log4j.Logger.getLogger(Logger.java:105)
    	at org.datanucleus.util.Log4JLogger.<init>(Log4JLogger.java:49)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    	at org.datanucleus.util.NucleusLogger.getLoggerInstance(NucleusLogger.java:140)
    	at org.datanucleus.util.NucleusLogger.<clinit>(NucleusLogger.java:106)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.<clinit>(DataNucleusEnhancer.java:86)
    log4j:ERROR Ignoring configuration file [file:/home/esprit/workspace/matzew-hbase-jpa-jsf-7dfc250/log4j.properties].
    log4j:WARN No appenders could be found for logger (DataNucleus.Enhancer).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" java.lang.NoClassDefFoundError: org/datanucleus/OMFContext
    	at java.lang.Class.getDeclaredConstructors0(Native Method)
    	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    	at java.lang.Class.getConstructor0(Class.java:2699)
    	at java.lang.Class.getConstructor(Class.java:1657)
    	at org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:646)
    	at org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:318)
    	at org.datanucleus.NucleusContext.getMetaDataManager(NucleusContext.java:813)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.getMetaDataManager(DataNucleusEnhancer.java:252)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java:694)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java:568)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1305)
    Caused by: java.lang.ClassNotFoundException: org.datanucleus.OMFContext
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    	... 11 more
     
    [ERROR] --------------------
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] The DataNucleus tool org.datanucleus.enhancer.DataNucleusEnhancer exited with a non-null exit code.
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 2 minutes 53 seconds
    [INFO] Finished at: Wed Mar 30 10:15:52 CET 2011
    [INFO] Final Memory: 15M/181M
    [INFO] ------------------------------------------------------------------------


    Alors la, je suis bien perdu et j'ai rein compris
    Pouvez vous m'aider?

    Merci beaucoup !

  5. #5
    Rédacteur/Modérateur
    Avatar de Logan Mauzaize
    Homme Profil pro
    Architecte technique
    Inscrit en
    Août 2005
    Messages
    2 894
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : Transports

    Informations forums :
    Inscription : Août 2005
    Messages : 2 894
    Par défaut
    Cela me semble être une erreur de DataNucleus, j'essairai de poster un message sur le forum de l'éditeur.
    Java : Cours et tutoriels - FAQ - Java SE 8 API - Programmation concurrente
    Ceylon : Installation - Concepts de base - Typage - Appels et arguments

    ECM = Exemple(reproduit le problème) Complet (code compilable) Minimal (ne postez pas votre application !)
    Une solution vous convient ? N'oubliez pas le tag
    Signature par pitipoisson

  6. #6
    Membre éprouvé
    Profil pro
    Inscrit en
    Février 2007
    Messages
    140
    Détails du profil
    Informations personnelles :
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations forums :
    Inscription : Février 2007
    Messages : 140
    Par défaut
    Ton problème est bien explicite (dans la trace) : il te manque des dépendances que maven ne trouve pas :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    [ERROR] Failed to execute goal on project hbase: Could not resolve dependencies for project net.wessendorf:hbase:war:1.0.0: Failed to collect dependencies for [org.apache.geronimo.specs:geronimo-interceptor_1.1_spec:jar:1.0 (compile), org.apache.geronimo.specs:geronimo-jcdi_1.0_spec:jar:1.0 (compile), org.apache.geronimo.specs:geronimo-atinject_1.0_spec:jar:1.0 (compile), org.apache.geronimo.specs:geronimo-validation_1.0_spec:jar:1.0 (runtime), javax.annotation:jsr250-api:jar:1.0 (compile), org.datanucleus:datanucleus-hbase:jar:2.0.0-release (compile), org.apache.hadoop:hadoop-core:jar:0.20.2 (compile), org.apache.myfaces.core:myfaces-api:jar:2.0.2 (compile), org.apache.myfaces.core:myfaces-impl:jar:2.0.2 (compile), org.apache.openwebbeans:openwebbeans-impl:jar:1.0.0 (compile), org.apache.openwebbeans:openwebbeans-jsf:jar:1.0.0 (compile), org.apache.openwebbeans:openwebbeans-web:jar:1.0.0 (compile), org.apache.openwebbeans:openwebbeans-resource:jar:1.0.0 (compile), org.apache.openwebbeans:openwebbeans-spi:jar:1.0.0 (compile), org.apache.hadoop:hbase:jar:0.20.3 (compile), org.apache.zookeeper:zookeeper:jar:3.3.1 (compile), org.datanucleus:datanucleus-core:jar:[1.9,) (compile), org.datanucleus:datanucleus-jpa:jar:[1.9,) (compile), log4j:log4j:jar:[1.2,1.3) (compile), commons-logging:commons-logging:jar:1.1.1 (compile), commons-lang:commons-lang:jar:2.4 (compile), javax.jdo:jdo2-api:jar:2.3-eb (compile), org.apache.geronimo.specs:geronimo-jpa_2.0_spec:jar:1.0 (compile)]: Failed to read artifact descriptor for org.apache.hadoop:hadoop-core:jar:0.20.1: Could not transfer artifact org.apache.hadoop:hadoop-core:pom:0.20.1 from/to local.repository (file:../../local.repository/trunk): No connector available to access repository local.repository (file:../../local.repository/trunk) of type legacy using the available factories AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory -> [Help 1]

  7. #7
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    705
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 705
    Par défaut
    Voiçi mon pom.xml:

    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
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
      Copyright (C) 2010 Bartosch Warzecha, Matthias Weßendorf
     
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
     
      http://www.apache.org/licenses/LICENSE-2.0
     
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    -->
    <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>net.wessendorf</groupId>
    	<artifactId>hbase</artifactId>
    	<packaging>war</packaging>
    	<version>1.0.0</version>
    	<name>myfaces-hbase</name>
    	<description>Simple HBase/JPA Application</description>
    	<url>http://matthiaswessendorf.wordpress.com</url>
     
    	<build>
    		<!-- start jetty up, by default -->
    		<defaultGoal>jetty:run</defaultGoal>
    		<plugins>
     
    			<plugin>
    				<groupId>org.mortbay.jetty</groupId>
    				<artifactId>jetty-maven-plugin</artifactId>
    				<version>7.1.6.v20100715</version>
    				<configuration>
    					<scanIntervalSeconds>10</scanIntervalSeconds>
    					<webAppConfig>
    						<contextPath>/</contextPath>
    					</webAppConfig>
    					<connectors>
    						<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
    							<port>9090</port>
    							<maxIdleTime>60000</maxIdleTime>
    						</connector>
    					</connectors>
    				</configuration>
    			</plugin>
     
    			<!-- mimi release, generates some project archives -->
    			<plugin>
    				<artifactId>maven-assembly-plugin</artifactId>
    				<version>2.2-beta-5</version>
    				<configuration>
    					<descriptorRefs>
    						<descriptorRef>src</descriptorRef>
    					</descriptorRefs>
    				</configuration>
    			</plugin>
     
     
    			<!-- (byte code) enhancing of the "entities".. -->
    			<plugin>
    				<groupId>org.datanucleus</groupId>
    				<artifactId>maven-datanucleus-plugin</artifactId>
    				<version>2.0.0-release</version>
    				<configuration>
    					<log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration>
    					<verbose>true</verbose>
    					<api>JPA</api>
    					<persistenceUnitName>hbase-addressbook</persistenceUnitName>
                        <props>${basedir}/datanucleus.properties</props>
    				</configuration>		
    				<executions>
    					<execution>
    					    <phase>compile</phase> 
    						<goals>
    							<goal>enhance</goal>
    						</goals>
    					</execution>
    				</executions>
    			</plugin>
    		</plugins>
     
    		<pluginManagement>
    			<plugins>
    				<plugin>
    					<groupId>org.apache.maven.plugins</groupId>
    					<artifactId>maven-compiler-plugin</artifactId>
    					<version>2.0.2</version>
    					<configuration>
    						<source>1.6</source>
    						<target>1.6</target>
    						<encoding>${project.build.sourceEncoding}</encoding>
    						<showWarnings>true</showWarnings>
    					</configuration>
    				</plugin>
    			</plugins>
    		</pluginManagement>
    	</build>
     
    	<dependencies>
    <dependency>
    			<groupId>org.apache.geronimo.specs</groupId>
    			<artifactId>geronimo-interceptor_1.1_spec</artifactId>
    			<version>1.0</version>
    			<!-- <version>${geronimo_interceptor.version}</version> -->
    			<!--scope>runtime</scope -->
    		</dependency>
    <dependency>
    			<groupId>org.apache.geronimo.specs</groupId>
    			<artifactId>geronimo-jcdi_1.0_spec</artifactId>
    			<version>${geronimo_cdi.version}</version>
    		</dependency>
     
    		<dependency>
    			<groupId>org.apache.geronimo.specs</groupId>
    			<artifactId>geronimo-atinject_1.0_spec</artifactId>
    			<version>${geronimo_atinject.version}</version>
    		</dependency>
    <!-- This is a lame dependency, required by the JSR 299 specification. 
    			Not the fault of Apache OWB, but we have to have this here in order to be 
    			able to use Apache OWB outside of the typical EE realm. (Yes here in Jetty). -->
    		<dependency>
    			<groupId>org.apache.geronimo.specs</groupId>
    			<artifactId>geronimo-validation_1.0_spec</artifactId>
    			<version>1.0</version>
    			<scope>runtime</scope>
    		</dependency>
     
    		<dependency>
    			<groupId>javax.annotation</groupId>
    			<artifactId>jsr250-api</artifactId>
    			<version>1.0</version>
    		</dependency>
     
    		<!-- Dependencies needed for HBase, JPA etc. -->
    		<dependency>
    			<groupId>org.datanucleus</groupId>
    			<artifactId>datanucleus-hbase</artifactId>
    			<version>2.0.0-release</version>
    		</dependency>
     
    		<dependency>
    			<groupId>org.apache.hadoop</groupId>
    			<artifactId>hadoop-core</artifactId>
    			<version>0.20.2</version>
     
    			<exclusions>
    				<exclusion>
    					<groupId>org.mortbay.jetty</groupId>
    					<artifactId>jetty</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>org.mortbay.jetty</groupId>
    					<artifactId>jetty-util</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>tomcat</groupId>
    					<artifactId>jasper-runtime</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>tomcat</groupId>
    					<artifactId>jasper-compiler</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>org.mortbay.jetty</groupId>
    					<artifactId>jsp-api-2.1</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>org.mortbay.jetty</groupId>
    					<artifactId>jsp-2.1</artifactId>
     
    				</exclusion>
    			</exclusions>
     
     
    		</dependency>
    		<dependency>
       	<groupId>org.apache.myfaces.core</groupId>
       		<artifactId>myfaces-api</artifactId>
       		<version>2.0.2</version>
    	</dependency>
    	<dependency>
       		<groupId>org.apache.myfaces.core</groupId>
       		<artifactId>myfaces-impl</artifactId>
       		<version>2.0.2</version>
    	</dependency>
     
    	<dependency>
       		<groupId>org.apache.openwebbeans</groupId>
       		<artifactId>openwebbeans-impl</artifactId>
       		<version>1.0.0</version>
    	</dependency>
     
    	<dependency>
       		<groupId>org.apache.openwebbeans</groupId>
       		<artifactId>openwebbeans-jsf</artifactId>
       		<version>1.0.0</version>
    	</dependency>
     
    	<dependency>
       		<groupId>org.apache.openwebbeans</groupId>
       		<artifactId>openwebbeans-web</artifactId>
       		<version>1.0.0</version>
    	</dependency>
     
    	<dependency>
       		<groupId>org.apache.openwebbeans</groupId>
       		<artifactId>openwebbeans-resource</artifactId>
       		<version>1.0.0</version>
    	</dependency>
     
    	<dependency>
       		<groupId>org.apache.openwebbeans</groupId>
       		<artifactId>openwebbeans-spi</artifactId>
       		<version>1.0.0</version>
    	</dependency>
    		<dependency>
    			<groupId>org.apache.hadoop</groupId>
    			<artifactId>hbase</artifactId>
    			<version>0.20.3</version>
    		</dependency>
    		<dependency>
    			<groupId>org.apache.zookeeper</groupId>
    			<artifactId>zookeeper</artifactId>
    			<version>3.3.1</version>
    		</dependency>
     
    		<dependency>
    			<groupId>org.datanucleus</groupId>
    			<artifactId>datanucleus-core</artifactId>
    			<version>[1.9, )</version>
    		</dependency>
    		<dependency>
    			<groupId>org.datanucleus</groupId>
    			<artifactId>datanucleus-jpa</artifactId>
    			<version>[1.9, )</version>
    		</dependency>
    		<dependency>
    			<groupId>log4j</groupId>
    			<artifactId>log4j</artifactId>
    			<version>[1.2, 1.3)</version>
    		</dependency>
     
    		<dependency>
    			<groupId>commons-logging</groupId>
    			<artifactId>commons-logging</artifactId>
    			<version>1.1.1</version>
    		</dependency>
    		<dependency>
    			<groupId>commons-lang</groupId>
    			<artifactId>commons-lang</artifactId>
    			<version>2.4</version>
    		</dependency>
     
    		<dependency>
    			<groupId>javax.jdo</groupId>
    			<artifactId>jdo2-api</artifactId>
    			<version>2.3-eb</version>
    		</dependency>
    		<dependency>
    			<groupId>org.apache.geronimo.specs</groupId>
    			<artifactId>geronimo-jpa_2.0_spec</artifactId>
    			<version>1.0</version>
    		</dependency>
     
    	</dependencies>
     
     
    	<!-- some repos... -->
    	<repositories>
    		<repository>
    			<id>maven2-repository.dev.java.net</id>
    			<name>Java.net Repository for Maven</name>
    			<url>http://download.java.net/maven/2/</url>
    			<layout>default</layout>
    		</repository>
     
    		<repository>
    			<id>repository.jboss.org</id>
    			<name>JBoss Repository</name>
    			<url>http://repository.jboss.org/maven2</url>
    			<releases>
    				<enabled>true</enabled>
    			</releases>
    		</repository>
    		<repository>
    			<id>snapshots.jboss.org</id>
    			<name>JBoss Repository</name>
    			<url>http://snapshots.jboss.org/maven2</url>
    			<snapshots>
    				<enabled>true</enabled>
    				<updatePolicy>never</updatePolicy>
    			</snapshots>
    		</repository>
    		<repository>
    			<id>DN_M2_Repo</id>
    			<name>DataNucleus Repository</name>
    			<url>http://www.datanucleus.org/downloads/maven2</url>
    		</repository>
    		<repository>
    			<id>java.net</id>
    			<url>http://download.java.net/maven/2</url>
    		</repository>
    		<repository>
    			<id>glassfish</id>
    			<url>http://download.java.net/maven/glassfish</url>
    		</repository>
    		<repository>
    			<id>maven2-repository.jboss.com</id>
    			<name>Java.net Repository for Maven</name>
    			<url>http://repository.jboss.com/maven2/</url>
    		</repository>
     
    		<repository>
                <id>DataNucleus_Repos2</id>
                <name>DataNucleus Repository</name>
                <url>http://www.datanucleus.org/downloads/maven2</url>
            </repository>
    	</repositories>
    	<pluginRepositories>
    		<pluginRepository>
    			<id>DataNucleus_2</id>
    			<url>http://www.datanucleus.org/downloads/maven2/</url>
    		</pluginRepository>
    	</pluginRepositories>
    	<properties>
    		<myfaces.version>2.0.2-SNAPSHOT</myfaces.version>
    		<myfaces_codi.version>1.0.0-SNAPSHOT</myfaces_codi.version>
    		<openwebbeans.version>1.0.0-SNAPSHOT</openwebbeans.version>
    		<geronimo_interceptor.version>1.0</geronimo_interceptor.version>
    		<geronimo_cdi.version>1.0</geronimo_cdi.version>
    		<geronimo_atinject.version>1.0</geronimo_atinject.version>
    		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    	</properties>
    </project>
    Avez vous des suggestions?

  8. #8
    Membre éprouvé
    Profil pro
    Inscrit en
    Février 2007
    Messages
    140
    Détails du profil
    Informations personnelles :
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations forums :
    Inscription : Février 2007
    Messages : 140
    Par défaut
    As tu vérifié que t'as bien les jars en question dans ton repo local ou dans ton workspace ?
    Quelle est arborescence de ton projet ?

  9. #9
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    705
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 705
    Par défaut
    Oui, tous les jars sont dans le repo local et mon application ne me signale aucun jar introuvable !

    *********************

    Hiearchie de mon projet:

    Projet
    -src/main/java
    -src/main/ressources
    -JRESystemLibrary
    -Maven dependencies
    -src
    -target
    -POM.XML
    -Readme(.txt)

    =======
    J'ai télécharger ce projet via le lien du tuto qui se trouve dans le premier message de cette conversation !

  10. #10
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    705
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 705
    Par défaut
    Citation Envoyé par lucimed Voir le message
    As tu vérifié que t'as bien les jars en question dans ton repo local ou dans ton workspace ?
    Pour être clair, que voulez vous dire par

    1- repo local

    et

    2- workspace

    Je parle ici en terme de path/URL !

    Merci.

  11. #11
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    705
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 705
    Par défaut
    Salut Nemek,

    Avez vous reçu une réponse à propos le plugin DataNucleus?

    Car j'ai pas trouvé de solutions jusqu'à le moment

    y a t-il d'autres suggestions à ce problème?

    Merci

  12. #12
    Rédacteur/Modérateur
    Avatar de Logan Mauzaize
    Homme Profil pro
    Architecte technique
    Inscrit en
    Août 2005
    Messages
    2 894
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : Transports

    Informations forums :
    Inscription : Août 2005
    Messages : 2 894
    Par défaut
    On s'est mal compris, "[si j'étais toi] j'essairai ..."

    repo local : Maven stocke les librairies dans un repository. Le "repo local" est stocké sur ton disque. ("The default value is ${user.home}/.m2/repository" d'après la documentation Maven).

    workspace : Littéralement "Espace de travail". C'est le chemin que tu donnes à Eclipse quand il se lance.
    Java : Cours et tutoriels - FAQ - Java SE 8 API - Programmation concurrente
    Ceylon : Installation - Concepts de base - Typage - Appels et arguments

    ECM = Exemple(reproduit le problème) Complet (code compilable) Minimal (ne postez pas votre application !)
    Une solution vous convient ? N'oubliez pas le tag
    Signature par pitipoisson

  13. #13
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    705
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 705
    Par défaut
    Ok, oui apparament, on s'est mal compris !

    Et oui toutes les jars sont dans le repo local, j'en suis certain !

    ---------------------

    J'ai une chose qui va me rendre fou .... C'est que lorsque j'exécute mon projet à travers mon IDE (eclipse), (bouton droit sur mon projet => Run AS => Mavne build), je reçois ce message

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
     
    [ERROR] Failed to execute goal on project hbase: Could not resolve dependencies for project net.wessendorf:hbase:war:1.0.0: Failed to collect dependencies for [org.apache.geronimo.specs:geronimo-interceptor_1.1_spec:jar:1.0 (compile), org.apache.geronimo.specs:geronimo-jcdi_1.0_spec:jar:1.0 (compile), org.apache.geronimo.specs:geronimo-atinject_1.0_spec:jar:1.0 (compile), org.apache.geronimo.specs:geronimo-validation_1.0_spec:jar:1.0 (runtime), javax.annotation:jsr250-api:jar:1.0 (compile), org.datanucleus:datanucleus-hbase:jar:2.0.0-release (compile), org.apache.hadoop:hadoop-core:jar:0.20.2 (compile), org.apache.myfaces.core:myfaces-api:jar:2.0.2 (compile), org.apache.myfaces.core:myfaces-impl:jar:2.0.2 (compile), org.apache.openwebbeans:openwebbeans-impl:jar:1.0.0 (compile), org.apache.openwebbeans:openwebbeans-jsf:jar:1.0.0 (compile), org.apache.openwebbeans:openwebbeans-web:jar:1.0.0 (compile), org.apache.openwebbeans:openwebbeans-resource:jar:1.0.0 (compile), org.apache.openwebbeans:openwebbeans-spi:jar:1.0.0 (compile), org.apache.hadoop:hbase:jar:0.20.3 (compile), org.apache.zookeeper:zookeeper:jar:3.3.1 (compile), org.datanucleus:datanucleus-core:jar:[1.9,) (compile), org.datanucleus:datanucleus-jpa:jar:[1.9,) (compile), log4j:log4j:jar:[1.2,1.3) (compile), commons-logging:commons-logging:jar:1.1.1 (compile), commons-lang:commons-lang:jar:2.4 (compile), javax.jdo:jdo2-api:jar:2.3-eb (compile), org.apache.geronimo.specs:geronimo-jpa_2.0_spec:jar:1.0 (compile)]: Failed to read artifact descriptor for org.apache.hadoop:hadoop-core:jar:0.20.1: Could not transfer artifact org.apache.hadoop:hadoop-core:pom:0.20.1 from/to local.repository (file:../../local.repository/trunk): No connector available to access repository local.repository (file:../../local.repository/trunk) of type legacy using the available factories AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory -> [Help 1]
    Mais quand je me positionne dans le projet (à travers l'invite de commande: cd ~/projetmaven), puis j'exécute la commande (mvn), je reçois ce message:

    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
     
    [ERROR] log4j:ERROR Could not read configuration file from URL [file:/home/esprit/workspace/matzew-hbase-jpa-jsf-7dfc250/log4j.properties].
    java.io.FileNotFoundException: /home/esprit/workspace/matzew-hbase-jpa-jsf-7dfc250/log4j.properties (No such file or directory)
    	at java.io.FileInputStream.open(Native Method)
    	at java.io.FileInputStream.<init>(FileInputStream.java:106)
    	at java.io.FileInputStream.<init>(FileInputStream.java:66)
    	at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
    	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
    	at java.net.URL.openStream(URL.java:1010)
    	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:459)
    	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
    	at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
    	at org.apache.log4j.Logger.getLogger(Logger.java:105)
    	at org.datanucleus.util.Log4JLogger.<init>(Log4JLogger.java:49)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    	at org.datanucleus.util.NucleusLogger.getLoggerInstance(NucleusLogger.java:140)
    	at org.datanucleus.util.NucleusLogger.<clinit>(NucleusLogger.java:106)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.<clinit>(DataNucleusEnhancer.java:86)
    log4j:ERROR Ignoring configuration file [file:/home/esprit/workspace/matzew-hbase-jpa-jsf-7dfc250/log4j.properties].
    log4j:WARN No appenders could be found for logger (DataNucleus.Enhancer).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" Plugin (Bundle) "org.datanucleus" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath. The URL "file:/root/.m2/repository/org/datanucleus/datanucleus-core/3.0.0-m2/datanucleus-core-3.0.0-m2.jar" is already registered, and you are trying to register an identical plugin located at URL "file:/root/.m2/repository/org/datanucleus/datanucleus-core/3.0.0-m3/datanucleus-core-3.0.0-m3.jar."
    org.datanucleus.exceptions.NucleusException: Plugin (Bundle) "org.datanucleus" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath. The URL "file:/root/.m2/repository/org/datanucleus/datanucleus-core/3.0.0-m2/datanucleus-core-3.0.0-m2.jar" is already registered, and you are trying to register an identical plugin located at URL "file:/root/.m2/repository/org/datanucleus/datanucleus-core/3.0.0-m3/datanucleus-core-3.0.0-m3.jar."
    	at org.datanucleus.plugin.NonManagedPluginRegistry.registerBundle(NonManagedPluginRegistry.java:525)
    	at org.datanucleus.plugin.NonManagedPluginRegistry.registerBundle(NonManagedPluginRegistry.java:394)
    	at org.datanucleus.plugin.NonManagedPluginRegistry.registerExtensions(NonManagedPluginRegistry.java:218)
    	at org.datanucleus.plugin.NonManagedPluginRegistry.registerExtensionPoints(NonManagedPluginRegistry.java:159)
    	at org.datanucleus.plugin.PluginManager.<init>(PluginManager.java:59)
    	at org.datanucleus.NucleusContext.<init>(NucleusContext.java:204)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.<init>(DataNucleusEnhancer.java:162)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.<init>(DataNucleusEnhancer.java:148)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1201)
     
    [ERROR] --------------------
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] The DataNucleus tool org.datanucleus.enhancer.DataNucleusEnhancer exited with a non-null exit code.
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 48 seconds
    [INFO] Finished at: Mon Apr 18 13:55:19 CET 2011
    [INFO] Final Memory: 14M/184M
    [INFO] ------------------------------------------------------------------------
    C'est à dire j'exécute le même projet de deux façons différentes et j'obtiens deux genres d'erreur !!! C'est ce que je ne le comprends pas !

  14. #14
    Rédacteur/Modérateur
    Avatar de Logan Mauzaize
    Homme Profil pro
    Architecte technique
    Inscrit en
    Août 2005
    Messages
    2 894
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : Transports

    Informations forums :
    Inscription : Août 2005
    Messages : 2 894
    Par défaut
    Je dirais que tu ne lances pas Eclipse et la console avec le même user ou les mêmes droit.
    Autre piste ton POM fait référence à une classe Eclipse ... à étudier.

    Ce qui m'effraie c'est le chemin "/root/.m2", ça signifie que tu te connectes en root ?

    Tu peux essayer de lancer maven avec le paramètre "-e". Et également de poster sur le forum/mailinglist Maven
    Java : Cours et tutoriels - FAQ - Java SE 8 API - Programmation concurrente
    Ceylon : Installation - Concepts de base - Typage - Appels et arguments

    ECM = Exemple(reproduit le problème) Complet (code compilable) Minimal (ne postez pas votre application !)
    Une solution vous convient ? N'oubliez pas le tag
    Signature par pitipoisson

  15. #15
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    705
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 705
    Par défaut
    Oui, dans l'invite de commande, je suis en mode root !

    Je dirais que tu ne lances pas Eclipse et la console avec le même user ou les mêmes droit.
    Comment savoir avec quel utilisateur je me connecte en Eclipse?

  16. #16
    Rédacteur/Modérateur
    Avatar de Logan Mauzaize
    Homme Profil pro
    Architecte technique
    Inscrit en
    Août 2005
    Messages
    2 894
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : Transports

    Informations forums :
    Inscription : Août 2005
    Messages : 2 894
    Par défaut
    Ne te connectes pas en root.

    Comment tu lances Eclipse ?
    Java : Cours et tutoriels - FAQ - Java SE 8 API - Programmation concurrente
    Ceylon : Installation - Concepts de base - Typage - Appels et arguments

    ECM = Exemple(reproduit le problème) Complet (code compilable) Minimal (ne postez pas votre application !)
    Une solution vous convient ? N'oubliez pas le tag
    Signature par pitipoisson

  17. #17
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    705
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 705
    Par défaut
    Comme n'importe quel logiciel ! Je double cliques sur l'icone d'eclipse !

    Et j'ai exécuté mon projet en tant que simple utilisateur (à travers l'invite de commande)et j'ai obtenu ça:

    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
     
    [INFO] [compiler:compile]
    [INFO] Nothing to compile - all classes are up to date
    [INFO] [datanucleus:enhance {execution: default}]
    [INFO] 
    [ERROR] --------------------
    [ERROR]  Standard error from the DataNucleus tool + org.datanucleus.enhancer.DataNucleusEnhancer :
    [ERROR] --------------------
    [ERROR] log4j:ERROR Could not read configuration file from URL [file:/home/esprit/workspace/matzew-hbase-jpa-jsf-7dfc250/log4j.properties].
    java.io.FileNotFoundException: /home/esprit/workspace/matzew-hbase-jpa-jsf-7dfc250/log4j.properties (No such file or directory)
    	at java.io.FileInputStream.open(Native Method)
    	at java.io.FileInputStream.<init>(FileInputStream.java:106)
    	at java.io.FileInputStream.<init>(FileInputStream.java:66)
    	at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
    	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
    	at java.net.URL.openStream(URL.java:1010)
    	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:459)
    	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
    	at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
    	at org.apache.log4j.Logger.getLogger(Logger.java:105)
    	at org.datanucleus.util.Log4JLogger.<init>(Log4JLogger.java:49)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    	at org.datanucleus.util.NucleusLogger.getLoggerInstance(NucleusLogger.java:140)
    	at org.datanucleus.util.NucleusLogger.<clinit>(NucleusLogger.java:106)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.<clinit>(DataNucleusEnhancer.java:86)
    log4j:ERROR Ignoring configuration file [file:/home/esprit/workspace/matzew-hbase-jpa-jsf-7dfc250/log4j.properties].
    log4j:WARN No appenders could be found for logger (DataNucleus.Enhancer).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" Plugin (Bundle) "org.datanucleus" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath. The URL "file:/home/user/.m2/repository/org/datanucleus/datanucleus-core/3.0.0-m2/datanucleus-core-3.0.0-m2.jar" is already registered, and you are trying to register an identical plugin located at URL "file:/home/user/.m2/repository/org/datanucleus/datanucleus-core/3.0.0-m3/datanucleus-core-3.0.0-m3.jar."
    org.datanucleus.exceptions.NucleusException: Plugin (Bundle) "org.datanucleus" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath. The URL "file:/home/user/.m2/repository/org/datanucleus/datanucleus-core/3.0.0-m2/datanucleus-core-3.0.0-m2.jar" is already registered, and you are trying to register an identical plugin located at URL "file:/home/user/.m2/repository/org/datanucleus/datanucleus-core/3.0.0-m3/datanucleus-core-3.0.0-m3.jar."
    	at org.datanucleus.plugin.NonManagedPluginRegistry.registerBundle(NonManagedPluginRegistry.java:525)
    	at org.datanucleus.plugin.NonManagedPluginRegistry.registerBundle(NonManagedPluginRegistry.java:394)
    	at org.datanucleus.plugin.NonManagedPluginRegistry.registerExtensions(NonManagedPluginRegistry.java:218)
    	at org.datanucleus.plugin.NonManagedPluginRegistry.registerExtensionPoints(NonManagedPluginRegistry.java:159)
    	at org.datanucleus.plugin.PluginManager.<init>(PluginManager.java:59)
    	at org.datanucleus.NucleusContext.<init>(NucleusContext.java:204)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.<init>(DataNucleusEnhancer.java:162)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.<init>(DataNucleusEnhancer.java:148)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1201)
     
    [ERROR] --------------------
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] The DataNucleus tool org.datanucleus.enhancer.DataNucleusEnhancer exited with a non-null exit code.
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 9 seconds
    [INFO] Finished at: Mon Apr 18 15:06:57 CET 2011
    [INFO] Final Memory: 14M/184M
    [INFO] ------------------------------------------------------------------------

  18. #18
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    705
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 705
    Par défaut
    En fait,
    J'ai tout commencé !

    Et j'ai suivi par lettre les instructions qui se trouvent dans le lien suivant:

    https://github.com/matzew/hbase-jpa-jsf#readme

    Mais dans l'invite de commande, je reçois:

    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
     
    [INFO] [compiler:compile]
    [INFO] Compiling 10 source files to /home/esprit/workspace/hbase-jpa-jsf/target/classes
    [INFO] [datanucleus:enhance {execution: default}]
    [INFO] 
    [ERROR] --------------------
    [ERROR]  Standard error from the DataNucleus tool + org.datanucleus.enhancer.DataNucleusEnhancer :
    [ERROR] --------------------
    [ERROR] 11/04/18 17:16:32 INFO DataNucleus.Enhancer: DataNucleus Enhancer : Using ClassEnhancer "ASM" for API "JPA"
    11/04/18 17:16:32 ERROR DataNucleus.Persistence: Error : An error occurred trying to instantiate an instance of the API adapter "org.datanucleus.jpa.JPAAdapter" (perhaps you dont have the requisite datanucleus-api-XXX jar in the CLASSPATH?) : {1}
    java.lang.NoClassDefFoundError: org/datanucleus/StateManager
    	at java.lang.Class.getDeclaredConstructors0(Native Method)
    	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    	at java.lang.Class.getConstructor0(Class.java:2699)
    	at java.lang.Class.getConstructor(Class.java:1657)
    	at org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:662)
    	at org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:294)
    	at org.datanucleus.api.ApiAdapterFactory.getApiAdapter(ApiAdapterFactory.java:91)
    	at org.datanucleus.NucleusContext.<init>(NucleusContext.java:224)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.<init>(DataNucleusEnhancer.java:162)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.<init>(DataNucleusEnhancer.java:148)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1201)
    Caused by: java.lang.ClassNotFoundException: org.datanucleus.StateManager
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    	... 11 more
    Exception in thread "main" Error : An error occurred trying to instantiate an instance of the API adapter "org.datanucleus.jpa.JPAAdapter" (perhaps you dont have the requisite datanucleus-api-XXX jar in the CLASSPATH?) : {1}
    org.datanucleus.exceptions.NucleusUserException: Error : An error occurred trying to instantiate an instance of the API adapter "org.datanucleus.jpa.JPAAdapter" (perhaps you dont have the requisite datanucleus-api-XXX jar in the CLASSPATH?) : {1}
    	at org.datanucleus.api.ApiAdapterFactory.getApiAdapter(ApiAdapterFactory.java:107)
    	at org.datanucleus.NucleusContext.<init>(NucleusContext.java:224)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.<init>(DataNucleusEnhancer.java:162)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.<init>(DataNucleusEnhancer.java:148)
    	at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1201)
     
    [ERROR] --------------------
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] The DataNucleus tool org.datanucleus.enhancer.DataNucleusEnhancer exited with a non-null exit code.
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 57 seconds
    [INFO] Finished at: Mon Apr 18 17:16:32 CET 2011
    [INFO] Final Memory: 15M/182M
    [INFO] ------------------------------------------------------------------------


    Voiçi mon fichier pom.xml

    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
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
      Copyright (C) 2010 Bartosch Warzecha, Matthias Weßendorf
     
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
     
      http://www.apache.org/licenses/LICENSE-2.0
     
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    -->
    <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>net.wessendorf</groupId>
    	<artifactId>hbase</artifactId>
    	<packaging>war</packaging>
    	<version>1.0.0</version>
    	<name>myfaces-hbase</name>
    	<description>Simple HBase/JPA Application</description>
    	<url>http://matthiaswessendorf.wordpress.com</url>
     
    	<build>
    		<!-- start jetty up, by default -->
    		<defaultGoal>jetty:run</defaultGoal>
    		<plugins>
     
    			<plugin>
    				<groupId>org.mortbay.jetty</groupId>
    				<artifactId>jetty-maven-plugin</artifactId>
    				<version>7.1.6.v20100715</version>
    				<configuration>
    					<scanIntervalSeconds>10</scanIntervalSeconds>
    					<webAppConfig>
    						<contextPath>/</contextPath>
    					</webAppConfig>
    					<connectors>
    						<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
    							<port>9090</port>
    							<maxIdleTime>60000</maxIdleTime>
    						</connector>
    					</connectors>
    				</configuration>
    			</plugin>
     
    			<!-- mimi release, generates some project archives -->
    			<plugin>
    				<artifactId>maven-assembly-plugin</artifactId>
    				<version>2.2-beta-5</version>
    				<configuration>
    					<descriptorRefs>
    						<descriptorRef>src</descriptorRef>
    					</descriptorRefs>
    				</configuration>
    			</plugin>
     
     
    			<!-- (byte code) enhancing of the "entities".. -->
    			<plugin>
    				<groupId>org.datanucleus</groupId>
    				<artifactId>maven-datanucleus-plugin</artifactId>
    				<version>2.0.0-release</version>
    				<configuration>
    					<verbose>true</verbose>
    					<api>JPA</api>
    					<persistenceUnitName>hbase-addressbook</persistenceUnitName>
    				</configuration>
    				<executions>
    					<execution>
    						<phase>compile</phase>
    						<goals>
    							<goal>enhance</goal>
    						</goals>
    					</execution>
    				</executions>
    			</plugin>
    		</plugins>
     
    		<pluginManagement>
    			<plugins>
    				<plugin>
    					<groupId>org.apache.maven.plugins</groupId>
    					<artifactId>maven-compiler-plugin</artifactId>
    					<version>2.0.2</version>
    					<configuration>
    						<source>1.6</source>
    						<target>1.6</target>
    						<encoding>${project.build.sourceEncoding}</encoding>
    						<showWarnings>true</showWarnings>
    					</configuration>
    				</plugin>
    			</plugins>
    		</pluginManagement>
    	</build>
     
    	<dependencies>
    		<dependency>
    			<groupId>org.apache.myfaces.core</groupId>
    			<artifactId>myfaces-api</artifactId>
    			<version>${myfaces.version}</version>
    			<scope>compile</scope>
    		</dependency>
     
    		<dependency>
    			<groupId>org.apache.myfaces.core</groupId>
    			<artifactId>myfaces-impl</artifactId>
    			<version>${myfaces.version}</version>
    			<scope>runtime</scope>
    		</dependency>
     
    		<!-- MyFaces CODI
    		<dependency>
    			<groupId>org.apache.myfaces.extensions.cdi.core</groupId>
    			<artifactId>myfaces-extcdi-core-api</artifactId>
    			<version>${myfaces_codi.version}</version>
    			<scope>compile</scope>
    		</dependency>
     
    		<dependency>
    			<groupId>org.apache.myfaces.extensions.cdi.core</groupId>
    			<artifactId>myfaces-extcdi-core-impl</artifactId>
    			<version>${myfaces_codi.version}</version>
    			<scope>runtime</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.apache.myfaces.extensions.cdi.jee-modules</groupId>
    			<artifactId>myfaces-extcdi-jsf20-module-api</artifactId>
    			<version>${myfaces_codi.version}</version>
    			<scope>compile</scope>
    		</dependency>
     
    		<dependency>
    			<groupId>org.apache.myfaces.extensions.cdi.jee-modules</groupId>
    			<artifactId>myfaces-extcdi-jsf20-module-impl</artifactId>
    			<version>${myfaces_codi.version}</version>
    			<scope>runtime</scope>
    		</dependency -->
     
    		<!-- today you have to build Apache OWB -->
    		<dependency>
    			<groupId>org.apache.openwebbeans</groupId>
    			<artifactId>openwebbeans-impl</artifactId>
    			<version>${openwebbeans.version}</version>
    		</dependency>
     
    		<dependency>
    			<groupId>org.apache.openwebbeans</groupId>
    			<artifactId>openwebbeans-jsf</artifactId>
    			<version>${openwebbeans.version}</version>
    			<scope>runtime</scope>
    		</dependency>
     
    		<dependency>
    			<groupId>org.apache.geronimo.specs</groupId>
    			<artifactId>geronimo-interceptor_1.1_spec</artifactId>
    			<version>${geronimo_interceptor.version}</version>
    			<!--scope>runtime</scope -->
    		</dependency>
    		<dependency>
    			<groupId>org.apache.openwebbeans</groupId>
    			<artifactId>openwebbeans-web</artifactId>
    			<version>${openwebbeans.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.apache.openwebbeans</groupId>
    			<artifactId>openwebbeans-resource</artifactId>
    			<version>${openwebbeans.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.apache.openwebbeans</groupId>
    			<artifactId>openwebbeans-spi</artifactId>
    			<version>${openwebbeans.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.apache.geronimo.specs</groupId>
    			<artifactId>geronimo-jcdi_1.0_spec</artifactId>
    			<version>${geronimo_cdi.version}</version>
    		</dependency>
     
    		<dependency>
    			<groupId>org.apache.geronimo.specs</groupId>
    			<artifactId>geronimo-atinject_1.0_spec</artifactId>
    			<version>${geronimo_atinject.version}</version>
    		</dependency>
     
    		<!-- This is a lame dependency, required by the JSR 299 specification. 
    			Not the fault of Apache OWB, but we have to have this here in order to be 
    			able to use Apache OWB outside of the typical EE realm. (Yes here in Jetty). -->
    		<dependency>
    			<groupId>org.apache.geronimo.specs</groupId>
    			<artifactId>geronimo-validation_1.0_spec</artifactId>
    			<version>1.0</version>
    			<scope>runtime</scope>
    		</dependency>
     
    		<dependency>
    			<groupId>javax.annotation</groupId>
    			<artifactId>jsr250-api</artifactId>
    			<version>1.0</version>
    		</dependency>
     
    		<!-- Dependencies needed for HBase, JPA etc. -->
    		<dependency>
    			<groupId>org.datanucleus</groupId>
    			<artifactId>datanucleus-hbase</artifactId>
    			<version>2.0.0-release</version>
    		</dependency>
     
    		<dependency>
    			<groupId>org.apache.hadoop</groupId>
    			<artifactId>hadoop-core</artifactId>
    			<version>0.20.2</version>
     
    			<exclusions>
    				<exclusion>
    					<groupId>org.mortbay.jetty</groupId>
    					<artifactId>jetty</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>org.mortbay.jetty</groupId>
    					<artifactId>jetty-util</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>tomcat</groupId>
    					<artifactId>jasper-runtime</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>tomcat</groupId>
    					<artifactId>jasper-compiler</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>org.mortbay.jetty</groupId>
    					<artifactId>jsp-api-2.1</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>org.mortbay.jetty</groupId>
    					<artifactId>jsp-2.1</artifactId>
     
    				</exclusion>
    			</exclusions>
     
     
    		</dependency>
    		<dependency>
    			<groupId>org.apache.hadoop</groupId>
    			<artifactId>hbase</artifactId>
    			<version>0.20.3</version>
    		</dependency>
    		<dependency>
    			<groupId>org.apache.zookeeper</groupId>
    			<artifactId>zookeeper</artifactId>
    			<version>3.3.1</version>
    		</dependency>
     
    		<dependency>
    			<groupId>org.datanucleus</groupId>
    			<artifactId>datanucleus-core</artifactId>
    			<version>[1.9, )</version>
    		</dependency>
    		<dependency>
    			<groupId>org.datanucleus</groupId>
    			<artifactId>datanucleus-jpa</artifactId>
    			<version>[1.9, )</version>
    		</dependency>
    		<dependency>
    			<groupId>log4j</groupId>
    			<artifactId>log4j</artifactId>
    			<version>[1.2, 1.3)</version>
    		</dependency>
     
    		<dependency>
    			<groupId>commons-logging</groupId>
    			<artifactId>commons-logging</artifactId>
    			<version>1.1.1</version>
    		</dependency>
    		<dependency>
    			<groupId>commons-lang</groupId>
    			<artifactId>commons-lang</artifactId>
    			<version>2.4</version>
    		</dependency>
     
    		<dependency>
    			<groupId>javax.jdo</groupId>
    			<artifactId>jdo2-api</artifactId>
    			<version>2.3-eb</version>
    		</dependency>
    		<dependency>
    			<groupId>org.apache.geronimo.specs</groupId>
    			<artifactId>geronimo-jpa_2.0_spec</artifactId>
    			<version>1.0</version>
    		</dependency>
     
    	</dependencies>
     
     
    	<!-- some repos... -->
    	<repositories>
    		<repository>
    			<id>maven2-repository.dev.java.net</id>
    			<name>Java.net Repository for Maven</name>
    			<url>http://download.java.net/maven/2/</url>
    			<layout>default</layout>
    		</repository>
     
    		<repository>
    			<id>repository.jboss.org</id>
    			<name>JBoss Repository</name>
    			<url>http://repository.jboss.org/maven2</url>
    			<releases>
    				<enabled>true</enabled>
    			</releases>
    		</repository>
    		<repository>
    			<id>snapshots.jboss.org</id>
    			<name>JBoss Repository</name>
    			<url>http://snapshots.jboss.org/maven2</url>
    			<snapshots>
    				<enabled>true</enabled>
    				<updatePolicy>never</updatePolicy>
    			</snapshots>
    		</repository>
    		<repository>
    			<id>DN_M2_Repo</id>
    			<name>DataNucleus Repository</name>
    			<url>http://www.datanucleus.org/downloads/maven2</url>
    		</repository>
    		<repository>
    			<id>java.net</id>
    			<url>http://download.java.net/maven/2</url>
    		</repository>
    		<repository>
    			<id>glassfish</id>
    			<url>http://download.java.net/maven/glassfish</url>
    		</repository>
    		<repository>
    			<id>maven2-repository.jboss.com</id>
    			<name>Java.net Repository for Maven</name>
    			<url>http://repository.jboss.com/maven2/</url>
    		</repository>
     
    	</repositories>
    	<pluginRepositories>
    		<pluginRepository>
    			<id>DataNucleus_2</id>
    			<url>http://www.datanucleus.org/downloads/maven2/</url>
    		</pluginRepository>
    	</pluginRepositories>
    	<properties>
    		<myfaces.version>2.0.2-SNAPSHOT</myfaces.version>
    		<myfaces_codi.version>1.0.0-SNAPSHOT</myfaces_codi.version>
    		<openwebbeans.version>1.0.0-SNAPSHOT</openwebbeans.version>
    		<geronimo_interceptor.version>1.0</geronimo_interceptor.version>
    		<geronimo_cdi.version>1.0</geronimo_cdi.version>
    		<geronimo_atinject.version>1.0</geronimo_atinject.version>
    		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    	</properties>
    </project>
    Que dois-je faire?

    Merci pour votre aide

  19. #19
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    705
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 705
    Par défaut
    il y a une autre chose que je ne le comprends pas, c'est quoi la signification des icones des .jars du maven avec une sorte de carreau blanc comme ça:

    http://oi52.tinypic.com/2a630p0.jpg

    Merci !

  20. #20
    Membre averti Avatar de ssoltani
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2011
    Messages
    28
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Finance

    Informations forums :
    Inscription : Avril 2011
    Messages : 28
    Par défaut
    Citation Envoyé par L'aigle de Carthage Voir le message
    il y a une autre chose que je ne le comprends pas, c'est quoi la signification des icones des .jars du maven avec une sorte de carreau blanc comme ça:

    http://oi52.tinypic.com/2a630p0.jpg

    Merci !
    Ce sont des jars que tu possèdes sur un repository local.
    Regarde dans ton /home/users, tu devrais posséder un répertoire .m2 qui contient l'ensemble des jars téléchargés via maven.

Discussions similaires

  1. Dépendance entre projet Maven et projet non maven dans Eclipse
    Par identifiant_bidon dans le forum Maven
    Réponses: 1
    Dernier message: 24/02/2011, 13h25
  2. Fichier manquant dans jar généré par Maven
    Par Helifyl dans le forum Maven
    Réponses: 2
    Dernier message: 23/06/2010, 10h14
  3. SvcMgr : manquant dans Delphi 2005 ???
    Par sinfoni dans le forum Delphi
    Réponses: 4
    Dernier message: 23/07/2006, 15h31
  4. Objet manquant dans le menu insertion
    Par Speedy08 dans le forum Access
    Réponses: 3
    Dernier message: 17/03/2006, 20h19
  5. [Webforms] Onglet ASP.NET manquant dans admin IIS
    Par quanou dans le forum Général Dotnet
    Réponses: 4
    Dernier message: 19/09/2005, 13h14

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