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 :

"mvn site" en erreur


Sujet :

Maven Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Septembre 2007
    Messages
    17
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2007
    Messages : 17
    Par défaut "mvn site" en erreur
    Bonjour,

    Un problème que je n'arrive pas à résoudre, j'ai un projet maven 3 multi module (les pom ci dessous), je n'arrive pas à exécuter "mvn site" sur le parent, la commande est en erreur avec :

    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
     
    [INFO] Scanning for projects...
    [WARNING] 
    [WARNING] Some problems were encountered while building the effective model for obeoz:contact-gwt:war:0.0.5
    [WARNING] The expression ${parent.groupId} is deprecated. Please use ${project.parent.groupId} instead.
    [WARNING] The expression ${parent.version} is deprecated. Please use ${project.parent.version} instead.
    [WARNING] 
    [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
    [WARNING] 
    [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
    [WARNING] 
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Build Order:
    [INFO] 
    [INFO] Contact
    [INFO] Contact Core
    [INFO] Contact Presentation
    [INFO] Contact DWR
    [INFO] Contact GWT
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Contact 0.0.5
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-site-plugin:3.0:site (default-site) @ contact-parent ---
    [INFO] configuring report plugin org.apache.maven.plugins:maven-surefire-report-plugin:2.9
    [INFO] 
    [INFO] >>> maven-surefire-report-plugin:2.9:report (report:report) @ contact-parent >>>
    [INFO] 
    [INFO] <<< maven-surefire-report-plugin:2.9:report (report:report) @ contact-parent <<<
    [INFO] 
    [INFO] >>> maven-surefire-report-plugin:2.9:report-only (report:report-only) @ contact-parent >>>
    [INFO] 
    [INFO] <<< maven-surefire-report-plugin:2.9:report-only (report:report-only) @ contact-parent <<<
    [WARNING] No project URL defined - decoration links will not be relativized!
    [INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
    [INFO] Skipped "Surefire Report" report, file "surefire-report.html" already exists for the English version.
    [INFO] Generating "Surefire Report" report    --- maven-surefire-report-plugin:2.9
    [WARNING] Unable to locate Test Source XRef to link to - DISABLED
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Contact Core 0.0.5
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-site-plugin:3.0:site (default-site) @ contact-core ---
    [INFO] configuring report plugin org.apache.maven.plugins:maven-surefire-report-plugin:2.9
    [INFO] 
    [INFO] >>> maven-surefire-report-plugin:2.9:report (report:report) @ contact-core >>>
    [INFO] 
    [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ contact-core ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 17 resources
    [INFO] Copying 5 resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ contact-core ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ contact-core ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /home/vallee/dev/workspace/contact/sources/contact-core/src/test/resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ contact-core ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ contact-core ---
    [INFO] Surefire report directory: /home/vallee/dev/workspace/contact/sources/contact-core/target/surefire-reports
     
    -------------------------------------------------------
     T E S T S
    -------------------------------------------------------
    Running obeoz.contact.domain.model.UserTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec
    Running obeoz.contact.service.impl.UserManagerImplTest
    15:54:20,450 DEBUG UserManagerImpl:103 - User ID=test_user found, user is called First name Last name
    15:54:20,456 DEBUG UserManagerImpl:140 - Updating user 'test_user'.
    15:54:20,459 DEBUG UserManagerImpl:178 - Creating user 'test_user'.
    15:54:20,462 DEBUG UserManagerImpl:178 - Creating user 'test_user'.
    15:54:20,464 DEBUG UserManagerImpl:184 - User login 'test_user' already exists.
    Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.247 sec
     
    Results :
     
    Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
     
    [INFO] 
    [INFO] <<< maven-surefire-report-plugin:2.9:report (report:report) @ contact-core <<<
    [INFO] 
    [INFO] >>> maven-surefire-report-plugin:2.9:report-only (report:report-only) @ contact-core >>>
    [INFO] 
    [INFO] <<< maven-surefire-report-plugin:2.9:report-only (report:report-only) @ contact-core <<<
    [WARNING] No project URL defined - decoration links will not be relativized!
    [INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
    [INFO] Skipped "Surefire Report" report, file "surefire-report.html" already exists for the English version.
    [INFO] Generating "Surefire Report" report    --- maven-surefire-report-plugin:2.9
    [WARNING] Unable to locate Test Source XRef to link to - DISABLED
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Contact Presentation 0.0.5
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-site-plugin:3.0:site (default-site) @ contact-presentation ---
    [INFO] configuring report plugin org.apache.maven.plugins:maven-surefire-report-plugin:2.9
    [INFO] 
    [INFO] >>> maven-surefire-report-plugin:2.9:report (report:report) @ contact-presentation >>>
    [INFO] 
    [INFO] <<< maven-surefire-report-plugin:2.9:report (report:report) @ contact-presentation <<<
    [INFO] 
    [INFO] >>> maven-surefire-report-plugin:2.9:report-only (report:report-only) @ contact-presentation >>>
    [INFO] 
    [INFO] <<< maven-surefire-report-plugin:2.9:report-only (report:report-only) @ contact-presentation <<<
    [WARNING] No project URL defined - decoration links will not be relativized!
    [INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
    [INFO] Skipped "Surefire Report" report, file "surefire-report.html" already exists for the English version.
    [INFO] Generating "Surefire Report" report    --- maven-surefire-report-plugin:2.9
    [WARNING] Unable to locate Test Source XRef to link to - DISABLED
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Contact DWR 0.0.5
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-site-plugin:3.0:site (default-site) @ contact-dwr ---
    [INFO] configuring report plugin org.apache.maven.plugins:maven-surefire-report-plugin:2.9
    [INFO] 
    [INFO] >>> maven-surefire-report-plugin:2.9:report (report:report) @ contact-dwr >>>
    [INFO] 
    [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ contact-dwr ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 0 resource
    [INFO] 
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ contact-dwr ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- native2ascii-maven-plugin:1.0-alpha-1:native2ascii (native2ascii-utf8) @ contact-dwr ---
    [INFO] 
    [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ contact-dwr ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /home/vallee/dev/workspace/contact/sources/contact-dwr/src/test/resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ contact-dwr ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ contact-dwr ---
    [INFO] No tests to run.
    [INFO] Surefire report directory: /home/vallee/dev/workspace/contact/sources/contact-dwr/target/surefire-reports
     
    -------------------------------------------------------
     T E S T S
    -------------------------------------------------------
    There are no tests to run.
     
    Results :
     
    Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
     
    [INFO] 
    [INFO] <<< maven-surefire-report-plugin:2.9:report (report:report) @ contact-dwr <<<
    [INFO] 
    [INFO] >>> maven-surefire-report-plugin:2.9:report-only (report:report-only) @ contact-dwr >>>
    [INFO] 
    [INFO] <<< maven-surefire-report-plugin:2.9:report-only (report:report-only) @ contact-dwr <<<
    [WARNING] No project URL defined - decoration links will not be relativized!
    [INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
    [INFO] Skipped "Surefire Report" report, file "surefire-report.html" already exists for the English version.
    [INFO] Generating "Surefire Report" report    --- maven-surefire-report-plugin:2.9
    [WARNING] Unable to locate Test Source XRef to link to - DISABLED
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Contact GWT 0.0.5
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-site-plugin:3.0:site (default-site) @ contact-gwt ---
    [INFO] configuring report plugin org.apache.maven.plugins:maven-surefire-report-plugin:2.9
    [INFO] 
    [INFO] >>> maven-surefire-report-plugin:2.9:report (report:report) @ contact-gwt >>>
    [INFO] 
    [INFO] --- gwt-maven-plugin:2.3.0:i18n (default) @ contact-gwt ---
    [INFO] 
    [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ contact-gwt ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 744 resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ contact-gwt ---
    [INFO] Compiling 1 source file to /home/vallee/dev/workspace/contact/sources/contact-gwt/target/contact-gwt-0.0.5/WEB-INF/classes
    [INFO] 
    [INFO] --- maven-war-plugin:2.1.1:exploded (default) @ contact-gwt ---
    [INFO] Exploding webapp
    [INFO] Assembling webapp [contact-gwt] in [/home/vallee/dev/workspace/contact/sources/contact-gwt/target/contact-gwt-0.0.5]
    [INFO] Processing war project
    [INFO] Copying webapp resources [/home/vallee/dev/workspace/contact/sources/contact-gwt/src/main/webapp]
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO] 
    [INFO] Contact ........................................... SUCCESS [8.092s]
    [INFO] Contact Core ...................................... SUCCESS [4.462s]
    [INFO] Contact Presentation .............................. SUCCESS [0.528s]
    [INFO] Contact DWR ....................................... SUCCESS [1.845s]
    [INFO] Contact GWT ....................................... FAILURE [6.369s]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 21.656s
    [INFO] Finished at: Sun Aug 07 15:54:30 CEST 2011
    [INFO] Final Memory: 20M/149M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project contact-gwt: failed to get report for org.apache.maven.plugins:maven-surefire-report-plugin: Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:exploded (default) on project contact-gwt: Failed to copy file for artifact [obeoz:contact-core:jar:0.0.5:compile]: /home/vallee/dev/workspace/contact/sources/contact-core/target/classes (Is a directory) -> [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/MojoExecutionException
    [ERROR] 
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR]   mvn <goals> -rf :contact-gwt

    note:
    -la commande "mvn site" sur les 'enfants' est fonctionnelle.
    -j'ai suivit le tuto ici : http://sites.google.com/site/jeenigx...en-and-eclipse
    pour permettre d'intégrer mvn et eclipse et gwt correctement

    le pom parent:
    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
     
    <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>obeoz</groupId>
    	<artifactId>contact-parent</artifactId>
    	<name>Contact</name>
    	<version>0.0.5</version>
    	<packaging>pom</packaging>
    	<distributionManagement>
    		<site>
    			<id>www.yourcompany.com</id>
    			<url>scp://www.yourcompany.com/www/docs/project/</url>
    		</site>
    	</distributionManagement>
    	<properties>
    		<maven.compiler.source>1.5</maven.compiler.source>
    		<maven.compiler.target>1.5</maven.compiler.target>
     
    		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     
    		<spring.version>3.0.5.RELEASE</spring.version>
    		<gwt-servlet.version>2.3.0</gwt-servlet.version>
    		<gwt-user.version>2.3.0</gwt-user.version>
    		<gwt-dev.version>2.3.0</gwt-dev.version>
    		<validation-api.version>1.0.0.GA</validation-api.version>
    		<junit.version>4.7</junit.version>
    		<gxt.version>2.2.4-gwt22</gxt.version>
     
    		<maven-compiler-plugin.version>2.3.2</maven-compiler-plugin.version>
    		<gwt-maven-plugin.version>2.3.0</gwt-maven-plugin.version>
    		<maven-site-plugin.version>3.0</maven-site-plugin.version>
    		<maven-surefire-report-plugin.version>2.9</maven-surefire-report-plugin.version>
    		<maven-war-plugin.version>2.1.1</maven-war-plugin.version>
     
    	</properties>
    	<inceptionYear>2011</inceptionYear>
    	<build>
    		<plugins>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-compiler-plugin</artifactId>
    				<version>${maven-compiler-plugin.version}</version>
    				<inherited>true</inherited>
    				<configuration>
    					<source>${maven.compiler.source}</source>
    					<target>${maven.compiler.target}</target>
    				</configuration>
    			</plugin>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-site-plugin</artifactId>
    				<inherited>false</inherited>
    				<configuration>
    					<siteDirectory>${project.basedir}/src/site</siteDirectory>
    				</configuration>
    			</plugin>
    		</plugins>
    		<pluginManagement>
    			<plugins>
    				<plugin>
    					<groupId>org.apache.maven.plugins</groupId>
    					<artifactId>maven-site-plugin</artifactId>
    					<version>${maven-site-plugin.version}</version>
    					<configuration>
    						<siteDirectory>${project.parent.basedir}/src/site</siteDirectory>
     
    						<reportPlugins>
     
    							<plugin>
    								<groupId>org.apache.maven.plugins</groupId>
    								<artifactId>maven-surefire-report-plugin</artifactId>
    								<version>${maven-surefire-report-plugin.version}</version>
    							</plugin>
     
    						</reportPlugins>
    					</configuration>
    				</plugin>
    			</plugins>
    		</pluginManagement>
    	</build>
    	<modules>
    		<module>contact-core</module>
    		<module>contact-presentation</module>
    	</modules>
    </project>
    le pom presentation:
    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
     
    <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>
    	<parent>
    		<groupId>obeoz</groupId>
    		<artifactId>contact-parent</artifactId>
    		<version>0.0.5</version>
    		<relativePath>../pom.xml</relativePath>
    	</parent>
    	<properties>
    		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    	</properties>
    	<artifactId>contact-presentation</artifactId>
    	<packaging>pom</packaging>
    	<name>Contact Presentation</name>
    	<dependencies>
    		<dependency>
    			<groupId>javax.servlet</groupId>
    			<artifactId>servlet-api</artifactId>
    			<version>2.4</version>
    			<scope>provided</scope>
    		</dependency>
    	</dependencies>
    	<modules>
    		<module>../contact-dwr</module>
    		<module>../contact-gwt</module>
    	</modules>
    </project>
    le pom core:
    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
     
    <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>
    	<parent>
    		<groupId>obeoz</groupId>
    		<artifactId>contact-parent</artifactId>
    		<version>0.0.5</version>
    		<relativePath>../pom.xml</relativePath>
    	</parent>
    	<artifactId>contact-core</artifactId>
    	<packaging>jar</packaging>
    	<name>Contact Core</name>
    	<dependencies>
    		<dependency>
    			<groupId>org.aspectj</groupId>
    			<artifactId>aspectjrt</artifactId>
    			<version>1.5.4</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.aspectj</groupId>
    			<artifactId>aspectjweaver</artifactId>
    			<version>1.5.4</version>
    			<scope>runtime</scope>
    		</dependency>
    		<dependency>
    			<groupId>commons-dbcp</groupId>
    			<artifactId>commons-dbcp</artifactId>
    			<version>1.2.2</version>
    			<scope>runtime</scope>
    			<exclusions>
    				<exclusion>
    					<groupId>xml-apis</groupId>
    					<artifactId>xml-apis</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>xerces</groupId>
    					<artifactId>xerces</artifactId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    		<dependency>
    			<groupId>commons-lang</groupId>
    			<artifactId>commons-lang</artifactId>
    			<version>2.3</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>concurrent</groupId>
    			<artifactId>concurrent</artifactId>
    			<version>1.3.4</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>hsqldb</groupId>
    			<artifactId>hsqldb</artifactId>
    			<version>1.8.0.7</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>javax.mail</groupId>
    			<artifactId>mail</artifactId>
    			<version>1.4</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>javax.persistence</groupId>
    			<artifactId>persistence-api</artifactId>
    			<version>1.0</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>jdom</groupId>
    			<artifactId>jdom</artifactId>
    			<version>1.0</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>log4j</groupId>
    			<artifactId>log4j</artifactId>
    			<version>1.2.13</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>junit</groupId>
    			<artifactId>junit</artifactId>
    			<version>3.8.1</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>mysql</groupId>
    			<artifactId>mysql-connector-java</artifactId>
    			<version>5.1.5</version>
    			<scope>runtime</scope>
    		</dependency>
    		<dependency>
    			<groupId>net.sf.ehcache</groupId>
    			<artifactId>ehcache</artifactId>
    			<version>1.4.0</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.acegisecurity</groupId>
    			<artifactId>acegi-security</artifactId>
    			<version>1.0.6</version>
    			<scope>compile</scope>
    			<exclusions>
    				<exclusion>
    					<groupId>org.springframework</groupId>
    					<artifactId>spring-jdbc</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>org.springframework</groupId>
    					<artifactId>spring-remoting</artifactId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    		<dependency>
    			<groupId>org.easymock</groupId>
    			<artifactId>easymock</artifactId>
    			<version>2.0</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-entitymanager</artifactId>
    			<version>3.3.2.GA</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-aop</artifactId>
    			<version>${spring.version}</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-core</artifactId>
    			<version>${spring.version}</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-jdbc</artifactId>
    			<version>${spring.version}</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-orm</artifactId>
    			<version>${spring.version}</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-context-support</artifactId>
    			<version>${spring.version}</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-test</artifactId>
    			<version>${spring.version}</version>
    			<scope>test</scope>
    		</dependency>
    	</dependencies>
    	<build>
    		<plugins>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-jar-plugin</artifactId>
    				<version>2.3.1</version>
    				<configuration>
    					<archive>
    						<manifest>
    							<addClasspath>true</addClasspath>
    						</manifest>
    					</archive>
    				</configuration>
    			</plugin>
    		</plugins>
    		<resources>
    			<resource>
    				<directory>src/main/java</directory>
    			</resource>
    			<resource>
    				<directory>src/main/resources</directory>
    			</resource>
    		</resources>
    	</build>
    </project>
    le pom gwt:
    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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <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">
     
    	<parent>
    		<groupId>obeoz</groupId>
    		<artifactId>contact-presentation</artifactId>
    		<version>0.0.5</version>
    		<relativePath>../contact-presentation/pom.xml</relativePath>
    	</parent>
    	<modelVersion>4.0.0</modelVersion>
    	<groupId>obeoz</groupId>
    	<artifactId>contact-gwt</artifactId>
    	<packaging>war</packaging>
    	<version>0.0.5</version>
    	<name>Contact GWT</name>
     
    	<properties>
    		<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
    	</properties>
    	<dependencies>
    		<dependency>
    			<groupId>${parent.groupId}</groupId>
    			<artifactId>contact-core</artifactId>
    			<version>${parent.version}</version>
    <!-- 			<scope>compile</scope> -->
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-webmvc</artifactId>
    			<version>${spring.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>com.google.gwt</groupId>
    			<artifactId>gwt-servlet</artifactId>
    			<version>${gwt-servlet.version}</version>
    			<scope>runtime</scope>
    		</dependency>
    		<dependency>
    			<groupId>com.google.gwt</groupId>
    			<artifactId>gwt-user</artifactId>
    			<version>${gwt-user.version}</version>
    			<scope>provided</scope>
    		</dependency>
    		<dependency>
    			<groupId>com.google.gwt</groupId>
    			<artifactId>gwt-dev</artifactId>
    			<version>${gwt-dev.version}</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>javax.validation</groupId>
    			<artifactId>validation-api</artifactId>
    			<version>${validation-api.version}</version>
    			<scope>provided</scope>
    		</dependency>
    		<dependency>
    			<groupId>junit</groupId>
    			<artifactId>junit</artifactId>
    			<version>${junit.version}</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>com.extjs</groupId>
    			<artifactId>gxt</artifactId>
    			<version>${gxt.version}</version>
    			<type>jar</type>
    			<scope>compile</scope>
    		</dependency>
    	</dependencies>
     
    	<build>
    		<!-- Generate compiled stuff in the folder used for developing mode -->
    		<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
     
    		<plugins>
     
    			<!-- GWT Maven Plugin -->
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>gwt-maven-plugin</artifactId>
    				<version>${gwt-maven-plugin.version}</version>
    				<executions>
    					<execution>
    						<goals>
    							<goal>compile</goal>
    							<goal>test</goal>
    							<goal>i18n</goal>
    							<!-- <goal>generateAsync</goal> -->
    						</goals>
    					</execution>
    				</executions>
    				<configuration>
    					<runTarget>contactgwt.html</runTarget>
    					<hostedWebapp>${webappDirectory}</hostedWebapp>
    					<i18nMessagesBundle>obeoz.contact.presentation.gwt.client.Messages</i18nMessagesBundle>
    				</configuration>
    				<dependencies>
    					<dependency>
    						<groupId>com.google.gwt</groupId>
    						<artifactId>gwt-user</artifactId>
    						<version>${gwt-user.version}</version>
    					</dependency>
    					<dependency>
    						<groupId>com.google.gwt</groupId>
    						<artifactId>gwt-dev</artifactId>
    						<version>${gwt-dev.version}</version>
    					</dependency>
    				</dependencies>
    			</plugin>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-site-plugin</artifactId>
    				<version>${maven-site-plugin.version}</version>
     
    			</plugin>
    			<plugin>
    				<!-- Create an exploded webapp in a specified directory. -->
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-war-plugin</artifactId>
    				<version>${maven-war-plugin.version}</version>
    				<executions>
    					<execution>
    						<phase>compile</phase>
    						<goals>
    							<goal>exploded</goal>
    						</goals>
    					</execution>
    				</executions>
    				<configuration>
    					<webappDirectory>${webappDirectory}</webappDirectory>
    				</configuration>
    			</plugin>
    		</plugins>
    	</build>
    </project>

  2. #2
    Membre éclairé

    Inscrit en
    Août 2002
    Messages
    302
    Détails du profil
    Informations personnelles :
    Âge : 43

    Informations forums :
    Inscription : Août 2002
    Messages : 302
    Par défaut
    Bonjour,
    Je crois que ton problème provient de :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Failed to copy file for artifact [obeoz:contact-core:jar:0.0.5:compile]: /home/vallee/dev/workspace/contact/sources/contact-core/target/classes (Is a directory)
    et cela concernant le plugin
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:exploded

  3. #3
    Membre averti
    Profil pro
    Inscrit en
    Septembre 2007
    Messages
    17
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2007
    Messages : 17
    Par défaut et...
    bien sur j'ai vu ce message, mais j'avoue ne pas le comprendre et encore moins comment le solutionner...

  4. #4
    Membre éclairé

    Inscrit en
    Août 2002
    Messages
    302
    Détails du profil
    Informations personnelles :
    Âge : 43

    Informations forums :
    Inscription : Août 2002
    Messages : 302
    Par défaut
    Bah,
    Déja pour commcencer ceci implique que ton problème n'est pas dans la phase site mais dans la phase de packaging de ton projet.
    Tu peux par exemple voir comment se comporte ton maven-war-plugin en mode normal et non en mode exploded pour commencer.
    Passe en mode debug pour avoir plus de logs.

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