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 :

plugin war pour maven 2


Sujet :

Maven Java

  1. #1
    Membre habitué Avatar de DanielW33
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    327
    Détails du profil
    Informations personnelles :
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Mai 2006
    Messages : 327
    Points : 164
    Points
    164
    Par défaut plugin war pour maven 2
    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 :
    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] ------------------------------------------------------------------------
    voila mon fichier Pièce jointe 3475

    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

  2. #2
    Expert éminent

    Avatar de denisC
    Profil pro
    Développeur Java
    Inscrit en
    Février 2005
    Messages
    4 050
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : Canada

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Service public

    Informations forums :
    Inscription : Février 2005
    Messages : 4 050
    Points : 7 641
    Points
    7 641
    Par défaut
    Citation Envoyé par DanielW33
    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
    Déplace tes repertoires images, WEB-INF et jsp dans un repertoire src/main/webapp. Sinon, arrange toi pour ajouter ces trois repertoires dans le plugin war, mais par défaut, il cherche dans src/main/webapp (et c'est pas comme ça chez toi).

  3. #3
    Membre habitué Avatar de DanielW33
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    327
    Détails du profil
    Informations personnelles :
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Mai 2006
    Messages : 327
    Points : 164
    Points
    164
    Par défaut
    Merci mais je viens juste de reussir a construire mon war avec mon arbo:
    j'ai juste renseigne correctement les parametres requis et optionnels
    Merci tout de meme

  4. #4
    Membre du Club Avatar de Lynk HIROSUE
    Homme Profil pro
    Analyste-programmeur
    Inscrit en
    Mai 2006
    Messages
    87
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Analyste-programmeur
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2006
    Messages : 87
    Points : 47
    Points
    47
    Par défaut
    Citation Envoyé par DanielW33
    Merci mais je viens juste de reussir a construire mon war avec mon arbo:
    j'ai juste renseigne correctement les parametres requis et optionnels
    Merci tout de meme
    C'est un winner !!

  5. #5
    Membre habitué Avatar de marcxa44
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    202
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations forums :
    Inscription : Mai 2007
    Messages : 202
    Points : 142
    Points
    142
    Par défaut
    peux tu me passer ton pom.xml pour voir a quoi il ressemble je n'arrive pas à le faire et j'ai à peu près la meme arbo que toi.
    Merci d'avance.
    Xav

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 1
    Dernier message: 26/04/2007, 14h10
  2. Plugin eclipse pour Maven 2.0
    Par DanielW33 dans le forum Maven
    Réponses: 6
    Dernier message: 12/01/2007, 16h17
  3. plugin shell pour maven 2
    Par DanielW33 dans le forum Maven
    Réponses: 2
    Dernier message: 10/08/2006, 21h12
  4. configuration des plugins Ant pour MAVEN 2
    Par DanielW33 dans le forum Maven
    Réponses: 2
    Dernier message: 31/07/2006, 16h05
  5. dev de plugin Ant pour Maven 2
    Par DanielW33 dans le forum Maven
    Réponses: 7
    Dernier message: 28/07/2006, 16h24

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