[ 
http://jira.codehaus.org/browse/MECLIPSE-333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_111545
 ] 

Martin Zeltner commented on MECLIPSE-333:
-----------------------------------------

I've patched the plugin but in Eclipse I still not have the expected result.

I have a jar artifact A and two war artifacts B & C. C depends on B depends on 
A. In A I've defined some general usable classes. In B I've added some web 
resources like the index.html (in web root), my.css and so on. In C I've added 
another index.html (also in web root).

What I would expect when A, B and C are as projects (Maven reactor projects) 
imported in Eclipse workspace:
When I deploy C on server (Tomcat, within Eclipse of course) I would expect the 
index.html of C, the my.css of B (and all other web resources of B) in web's 
root dir and the classes of A in WEB-INF/classes.

What I get:
As web resources I just get the index.html of C and NO web resources of B. 
Instead I get a JAR in WEB-INF/lib/B.jar with the complete artifact tree!! The 
classes of A are not directly placed in WEB-INF/classes but packed as jar in 
WEB-INF/lib. I can live with that but copy the classes in WEB-INF/classes would 
be even faster (shorter round trips).

Could anyone correct this web resource bug? I can (if Eclipse "allows" it) do 
it but I need the "complete" "specification" (xsd?, would be great!) how does 
the generated files (.classpath, .project and the files in folder .settings) 
has to look like for WTP 2(.0.1).

Thanks for any comment!

Have a nice weekend!
Cheers,
Martin

> WTP-2.0 support with howto apt, refactoring and  contextroot handling
> ---------------------------------------------------------------------
>
>                 Key: MECLIPSE-333
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-333
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Improvement
>          Components: multiproject, WTP support
>    Affects Versions: 2.5
>            Reporter: Richard van Nieuwenhoven
>            Assignee: Brian Fox
>         Attachments: maven-eclipse-plugin_only_new.tar.gz, 
> wtp-2.0-and-more-2.5-SNAPSHOT.patch
>
>
> This patch contains:
> - WTP.2.0 support for ear and war's (includes MECLIPSE-264)
> - context root handling very much improved
>       (war takes configuration from the ear, if available)
> - refactoring (constant usage, foreign plug-in access centralized)
> - a detailed description how we use maven-2 with WTP in multi module projects
> - testing code included
> the patch is attached, together with a tar with all the new files.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to