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 :

Compilation avec Maven


Sujet :

Maven Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Inscrit en
    Janvier 2009
    Messages
    139
    Détails du profil
    Informations forums :
    Inscription : Janvier 2009
    Messages : 139
    Par défaut Compilation avec Maven
    Bonjour,
    Là j'essaie de compiler mon premier projet maven en utilisant mvn compiler:compile. Apres le téléchargement de certain dependances, il m'affiche l'erreur suivante:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    6 required artifacts are missing.
     
    for artifact:
      com.formation.maven:maven-first-step:jar
     
    from the specified remote repositories:
      central (<a href="http://repo1.maven.org/maven2" target="_blank">http://repo1.maven.org/maven2</a>)
    Voilà 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
    <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/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
     
      <groupId>com.formation.maven</groupId>
      <artifactId>maven-first-step</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <packaging>jar</packaging>
     
      <name>maven-first-step</name>
      <url>http://maven.apache.org</url>
     
      <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      </properties>
     <dependencies>
    		<dependency>
    			<groupId>org.apache.cxf</groupId>
    			<artifactId>cxf-rt-frontend-jaxws</artifactId>
    			<version>2.2.6</version>
    		</dependency>
     
    		<dependency>
    			<groupId>org.apache.cxf</groupId>
    			<artifactId>cxf-rt-transports-http</artifactId>
    			<version>2.2.6</version>
    		</dependency>
     
    		<dependency>
    			<groupId>org.apache.cxf</groupId>
    			<artifactId>cxf-rt-transports-http-jetty
    			</artifactId>
    			<version>2.2.6</version>
    		</dependency>
     
     
    		<dependency>
    			<groupId>org.apache.tomcat</groupId>
    			<artifactId>jasper</artifactId>
    			<version>6.0.16</version>
    			<scope>provided</scope>
    		</dependency>
    		<dependency>
    			<groupId>javax.servlet.jsp</groupId>
    			<artifactId>jsp-api</artifactId>
    			<version>2.1</version>
    			<scope>provided</scope>
    		</dependency>
     
     
    		<dependency>
    			<groupId>org.mortbay.jetty</groupId>
    			<artifactId>jetty</artifactId>
    			<version>6.1.15</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>ant</groupId>
    			<artifactId>ant</artifactId>
    			<version>1.7.0</version>
    			<scope>provided</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.mortbay.jetty</groupId>
    			<artifactId>jetty-plus</artifactId>
    			<version>6.1.15</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>jetty</groupId>
    			<artifactId>jsp</artifactId>
    			<version>2.1-6.0.2</version>
    		</dependency>
    		<dependency>
    			<groupId>jetty</groupId>
    			<artifactId>jsp-api</artifactId>
    			<version>2.1-6.0.2</version>
    		</dependency>
    		<dependency>
    			<groupId>org.mortbay.jetty</groupId>
    			<artifactId>jetty-naming</artifactId>
    			<version>6.1.15</version>
    			<scope>test</scope>
    			<exclusions>
    				<exclusion>
    					<groupId>javax.mail</groupId>
    					<artifactId>mail</artifactId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    		<!-- Compile dependencies -->
    		<dependency>
    			<groupId>javax.servlet</groupId>
    			<artifactId>jstl</artifactId>
    			<version>1.2</version>
    		</dependency>
    		<dependency>
    			<groupId>log4j</groupId>
    			<artifactId>log4j</artifactId>
    			<version>1.2.14</version>
    		</dependency>
    		<dependency>
    			<groupId>org.tuckey</groupId>
    			<artifactId>urlrewritefilter</artifactId>
    			<version>3.1.0</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-core</artifactId>
    			<version>${spring.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-beans</artifactId>
    			<version>${spring.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-context</artifactId>
    			<version>${spring.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-web</artifactId>
    			<version>${spring.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-webmvc</artifactId>
    			<version>${spring.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework.webflow</groupId>
    			<artifactId>spring-webflow</artifactId>
    			<version>${webflow.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>ognl</groupId>
    			<artifactId>ognl</artifactId>
    			<version>2.6.9</version>
    		</dependency>
    		<!-- Container-provided dependencies-->
    		<dependency>
    			<groupId>javax.servlet</groupId>
    			<artifactId>servlet-api</artifactId>
    			<version>2.4</version>
    			<scope>provided</scope>
    		</dependency>
    		<dependency>
    			<groupId>javax.servlet.jsp</groupId>
    			<artifactId>jsp-api</artifactId>
    			<version>2.1</version>
    			<scope>provided</scope>
    		</dependency>
    		<!-- Test dependencies -->
    		<dependency>
    			<groupId>junit</groupId>
    			<artifactId>junit</artifactId>
    			<version>4.5</version>
    			<scope>test</scope>
    		</dependency>
    	</dependencies>
    	<build>
    		<plugins>
    		<plugin>
               <artifactId>maven-compiler-plugin</artifactId>
               <version>2.0.2</version>
             </plugin>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-compiler-plugin</artifactId>
    				<configuration>
    					<source>1.5</source>
    					<target>1.5</target>
    				</configuration>
    			</plugin>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-dependency-plugin</artifactId>
    				<executions>
    					<execution>
    						<id>install</id>
    						<phase>install</phase>
    						<goals>
    							<goal>sources</goal>
    						</goals>
    					</execution>
    				</executions>
    			</plugin>
    		</plugins>
    	</build>
     
    </project>

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

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

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Par défaut
    6 required artifacts are missing.
    regarde la liste des artefacts qui manquent et corrige ton pom.xml en conséquence (probablement des versions qui n'existent pas ou des fautes dans les noms)

Discussions similaires

  1. [Java - Débutant] Compiler avec Maven
    Par seby1996 dans le forum Maven
    Réponses: 1
    Dernier message: 22/08/2011, 00h27
  2. [Flex4] Page blanche suite compilation avec maven
    Par youkoun dans le forum Flex
    Réponses: 0
    Dernier message: 27/06/2011, 17h41
  3. Developpement en local, compilation avec Maven
    Par Sylvain James dans le forum IGN API Géoportail
    Réponses: 5
    Dernier message: 30/04/2011, 15h59
  4. erreur de compilation avec maven
    Par itachidesu dans le forum GWT et Vaadin
    Réponses: 3
    Dernier message: 22/09/2010, 17h54
  5. Généricité : erreur de compilation (avec Maven)
    Par Invité dans le forum Langage
    Réponses: 6
    Dernier message: 07/05/2009, 11h16

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