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

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  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?

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, 14h25
  2. Fichier manquant dans jar généré par Maven
    Par Helifyl dans le forum Maven
    Réponses: 2
    Dernier message: 23/06/2010, 11h14
  3. SvcMgr : manquant dans Delphi 2005 ???
    Par sinfoni dans le forum Delphi
    Réponses: 4
    Dernier message: 23/07/2006, 16h31
  4. Objet manquant dans le menu insertion
    Par Speedy08 dans le forum Access
    Réponses: 3
    Dernier message: 17/03/2006, 21h19
  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, 14h14

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