Ici c'est maven-surefire-plugin dont il est question... qui plante dans le phase des tests.
Montres nous ta config de maven-surefire-plugin et cargo-maven2-plugin.
Ici c'est maven-surefire-plugin dont il est question... qui plante dans le phase des tests.
Montres nous ta config de maven-surefire-plugin et cargo-maven2-plugin.
Ce que tu dois faire me semble clair à partir de làPlease refer to C:\Users\CVQF1540\workspace_Server\wsag4j\wsag4j-rest\wsag4j-rest-webapp\target\surefire-reports for the individual test results.
Je ne sais pas tout à coup pourquoi mais après avoir relancé l'exécution "mvn clean install" j'obtiens une autre erreur dont voici le contenu:
Par ailleurs voici le contenu de mon fichier pom.xml pour wsag4j-rest-webapp:Tests run: 16, Failures: 1, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] WSAG4J: Web Service Agreement for Java ............ SUCCESS [1:25.448s]
[INFO] WSAG4J: XML-Types ................................. SUCCESS [9.787s]
[INFO] WSAG4J: WS-Addressing XML-Types ................... SUCCESS [34.718s]
[INFO] WSAG4J: WS-Agreement XML-Types .................... SUCCESS [1:11.946s]
[INFO] WSAG4J: Common XML Types .......................... SUCCESS [1:13.463s]
[INFO] WSAG4J: JSDL XML-Types ............................ SUCCESS [42.978s]
[INFO] WSAG4J: Server Resources .......................... SUCCESS [10.724s]
[INFO] WSAG4J: API ....................................... SUCCESS [11.258s]
[INFO] WSAG4J: Pattern ................................... SUCCESS [7.091s]
[INFO] WSAG4J: Server .................................... SUCCESS [3:28.315s]
[INFO] WSAG4J: Samples ................................... SUCCESS [5.167s]
[INFO] WSAG4J: Client Resources .......................... SUCCESS [0.971s]
[INFO] WSAG4J: Integration Tests ......................... SUCCESS [3.787s]
[INFO] WSAG4J: REST Remote Stack ......................... SUCCESS [0.161s]
[INFO] WSAG4J: REST API .................................. SUCCESS [4.315s]
[INFO] WSAG4J: REST Client ............................... SUCCESS [6.978s]
[INFO] WSAG4J: RESTful Service Implementation ............ SUCCESS [3.825s]
[INFO] WSAG4J: RESTful Agreement Factory Webapp .......... FAILURE [3:19.239s]
[INFO] WSAG4J: Rest Distribution ......................... SKIPPED
[INFO] WSAG4J: Deprecated WSRF Remote Stack .............. SKIPPED
[INFO] WSAG4J: WSRF Client Implementation ................ SKIPPED
[INFO] WSAG4J: WSRF-Stack Integration .................... SKIPPED
[INFO] WSAG4J: WSRF Agreement Factory Webapp ............. SKIPPED
[INFO] WSAG4J: WSRF Distribution ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:02.347s
[INFO] Finished at: Fri Jun 21 18:38:07 CEST 2013
[INFO] Final Memory: 27M/321M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default) on project wsag4j-rest-webapp: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\CVQF1540\workspace_Server\wsag4j\wsag4j-rest\wsag4j-rest-webapp\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default) on project wsag4j-rest-webapp: There are test failures.
Please refer to C:\Users\CVQF1540\workspace_Server\wsag4j\wsag4j-rest\wsag4j-rest-webapp\target\surefire-reports for the individual test results.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
Please refer to C:\Users\CVQF1540\workspace_Server\wsag4j\wsag4j-rest\wsag4j-rest-webapp\target\surefire-reports for the individual test results.
at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:87)
at org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:641)
at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:615)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:137)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:98)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/d...ilureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :wsag4j-rest-webapp
Code XML : 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 <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>net.sf.wsag4j.rest</groupId> <artifactId>wsag4j-rest</artifactId> <version>2.0.1-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>wsag4j-rest-webapp</artifactId> <packaging>war</packaging> <name>WSAG4J: RESTful Agreement Factory Webapp</name> <dependencies> <dependency> <groupId>net.sf.wsag4j</groupId> <artifactId>wsag4j</artifactId> <classifier>site</classifier> </dependency> <dependency> <groupId>net.sf.wsag4j</groupId> <artifactId>wsag4j-api</artifactId> </dependency> <dependency> <groupId>net.sf.wsag4j.rest</groupId> <artifactId>wsag4j-rest-client</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>net.sf.wsag4j</groupId> <artifactId>wsag4j-server</artifactId> </dependency> <dependency> <groupId>net.sf.wsag4j</groupId> <artifactId>wsag4j-pattern</artifactId> </dependency> <dependency> <groupId>net.sf.wsag4j</groupId> <artifactId>wsag4j-samples</artifactId> </dependency> <dependency> <groupId>net.sf.wsag4j.rest</groupId> <artifactId>wsag4j-rest-server</artifactId> </dependency> <dependency> <groupId>net.sf.wsag4j.rest</groupId> <artifactId>wsag4j-rest-client</artifactId> </dependency> <dependency> <groupId>net.sf.wsag4j</groupId> <artifactId>wsag4j-it</artifactId> </dependency> <dependency> <groupId>net.sf.wsag4j</groupId> <artifactId>wsag4j-client-resources</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>net.sf.wsag4j</groupId> <artifactId>wsag4j-server-resources</artifactId> <type>zip</type> <classifier>resources</classifier> </dependency> <dependency> <groupId>net.sf.wsag4j</groupId> <artifactId>wsag4j-client-resources</artifactId> <type>zip</type> <classifier>resources</classifier> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxrs</artifactId> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-databinding-xmlbeans</artifactId> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-extension-providers</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> </dependency> </dependencies> <properties> <wsag4j.gateway.address>http://127.0.0.1:${servlet-container-port}/wsag4j</wsag4j.gateway.address> </properties> <build> <plugins> <!-- include the wsag4j server resources --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <!-- all client and server resources --> <execution> <id>generate-shared-resources</id> <goals> <goal>unpack-dependencies</goal> </goals> <phase>generate-resources</phase> <configuration> <outputDirectory>${project.build.directory}/classes</outputDirectory> <includeGroupIds>net.sf.wsag4j</includeGroupIds> <includeClassifiers>resources</includeClassifiers> <includeArtifactIds>wsag4j-client-resources,wsag4j-server-resources</includeArtifactIds> <excludeTransitive>true</excludeTransitive> </configuration> </execution> <execution> <id>unpack-project-doc</id> <phase>generate-resources</phase> <goals> <!-- <goal>resolve</goal> --> <goal>unpack</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/project-doc</outputDirectory> <artifactItems> <artifactItem> <groupId>net.sf.wsag4j</groupId> <artifactId>wsag4j</artifactId> <classifier>site</classifier> <type>jar</type> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webResources> <resource> <directory>${basedir}/target/project-doc</directory> <targetPath /> </resource> </webResources> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <executions> <execution> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> <configuration> <skip>false</skip> <systemProperties> <property> <name>wsag4j.gateway.address</name> <value>${wsag4j.gateway.address}</value> </property> </systemProperties> </configuration> </execution> </executions> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.6</version> <configuration> <wait>false</wait> <!-- Container configuration --> <container> <containerId>tomcat5x</containerId> <zipUrlInstaller> <!--<proxy> <host>p-goodway</host> <port>3128</port> </proxy>--> <url>http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.30/bin/apache-tomcat-5.5.30.zip</url> <!-- <installDir>${project.build.directory}/cargoinstalls</installDir> --> </zipUrlInstaller> <output>${project.build.directory}/logs/container.log</output> <append>false</append> <log>${project.build.directory}/logs/cargo.log</log> <systemProperties> <wsag4j.gateway.address>${wsag4j.gateway.address}</wsag4j.gateway.address> </systemProperties> </container> <!-- Configuration to use with the container or the deployer --> <configuration> <type>standalone</type> <home>${project.build.directory}/apache-tomcat</home> <properties> <cargo.servlet.port>${servlet-container-port}</cargo.servlet.port> <cargo.logging>high</cargo.logging> </properties> <deployables> <deployable> <groupId>net.sf.wsag4j.rest</groupId> <artifactId>wsag4j-rest-webapp</artifactId> <type>war</type> <properties> <context>/wsag4j</context> </properties> </deployable> </deployables> </configuration> </configuration> <executions> <execution> <id>start-container</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> </goals> </execution> <execution> <id>stop-container</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>
Je vois la même erreur...
Tu peux tjrs sauter les tests en mettant la balise <skip> à true. Mais la soluce se trouve dans le rapport de tes tests... As-tu regardé le rapport de surefire comme te l'a demandé tchize_ ?
Pour le reste : rien ne me saute aux yeux !
Encore un fois ce type de déclaration qui télécharge le reste du monde est prohibé chez FT <url>http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.30/bin/apache-tomcat-5.5.30.zip</url>. De plus inutile de le télécharger, si tu as un tomcat sur ta station... cf la balise home dans <container>... mais bon tes problèmes ne viennent pas de là...
Après avoir consulté le rapport de surefire, voici ce qui est affiché dans le fichier d'information comme problème :
------------------------------------------------------------------------------
Test set: org.ogf.graap.wsag4j.factory.PendingAgreementFactoryTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 45.626 sec <<< FAILURE!
testCreatePendingAgreementWithNotification(org.ogf.graap.wsag4j.factory.PendingAgreementFactoryTest) Time elapsed: 40.328 sec <<< FAILURE!
junit.framework.AssertionFailedError: The pending agreement was not subcontracted.
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at org.ogf.graap.wsag.it.AbstractPendingAgreementFactoryTest.testCreatePendingAgreementWithNotification(AbstractPendingAgreementFactoryTest.java:246)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:96)
at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:117)
at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
J'ai mis skip à true pour surefire et j'ai relancé mvn clean install, ça devrait être mieux.
J'ai également mis la balise <skip> à true pour un autre pom.xml qui m'a généré le même type d'erreur que précédemment avec surefire et finalement le build s'est terminé avec succès. Je ne sais pas si cela posera des problèmes à long terme mais toujours est-il que l'opération de build s'est bien terminée. Merci pour vos aides et supports, ils m'ont été fort utiles.
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager