Salut a tous,
Encore moi he oui je suis toujours sur les plugins maven.
Bon maintenant j'ai un probleme avec le plugin war pour le deploiement de mon war.
Apparament, le plugin genere bien le fichier .war mais ensuite j'ai une erreur du type :
voila mon fichier Pièce jointe 3475
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 [INFO] [war:war] [INFO] Exploding webapp... [INFO] Copy webapp webResources to D:\eclipse-maestro\workspace\dra.proto.web\target\dra.proto.web-0.0.1 [INFO] Copy webapp webResources to D:\eclipse-maestro\workspace\dra.proto.web\target\dra.proto.web-0.0.1 [INFO] Assembling webapp dra.proto.web in D:\eclipse-maestro\workspace\dra.proto.web\target\dra.proto.web-0.0.1 [DEBUG] Processing: j2ee-1.0.jar [INFO] Generating war D:\eclipse-maestro\workspace\dra.proto.web\target\dra.proto.web-0.0.1.war [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error assembling WAR: Deployment descriptor: D:\eclipse-maestro\workspace\dra.proto.web\target\dra.proto.web-0.0.1\WEB-INF\web.xml does not exist. [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling WAR: Deployment descriptor: D:\eclipse-maestro\workspace\dra.proto.web\target\dra.proto.web-0.0.1\WEB-INF\web.xml does not exis t. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling WAR: Deployment descriptor: D:\eclipse-maestro\workspace\dra.proto.web\target\dra.proto.web-0.0.1\WEB-INF\web.xml does not e xist. at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:149) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) ... 16 more Caused by: org.codehaus.plexus.archiver.ArchiverException: Deployment descriptor: D:\eclipse-maestro\workspace\dra.proto.web\target\dra.proto.web-0.0.1\WEB-INF\web.xml does not exist. at org.codehaus.plexus.archiver.war.WarArchiver.setWebxml(WarArchiver.java:82) at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:180) at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:133) ... 18 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 seconds [INFO] Finished at: Tue Aug 01 13:45:35 CEST 2006 [INFO] Final Memory: 4M/8M [INFO] ------------------------------------------------------------------------
et enfin voici la structure de mon projet :
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 <project-root> | +- pom.xml | +- /src | | | +- /java | | | | | +-/('mes sources' .java) | | | | | +- /jsp | | | | | +-/('mes fichiers *.jsp) | | | | | +- /images | | | | | +-/('mes ressources') | | | | | +- /WEB-INF | | | | | +-/(mon fichier web.xml) | | | |
Si qqun a une idée
Partager