m2e-wtp doesn't support jetty:run (this is out of scope of the project), but deployment through Eclipse WTP server adapters (Tomcat, Glassfish, JBoss and probably Jetty too) With m2e-wtp, you just deploy your ProjectA to a WTP server and ProjectB should -hopefully- be overlaid automatically during deployment on the server.
Your problem *may* be caused by the jetty plugin not supporting the workspace projects exposed by m2e. Finding out would require debugging jetty:run. have you asked the jetty plugin maintainers? On Tue, Jan 15, 2013 at 12:41 PM, Miguel Almeida <[email protected]>wrote: > Consider the following projects: > > ProjectA (war) - has dependency to ProjectB > ProjectB (war) - the overlay > > I'm trying to make the overlay work when both projects are opened in > Eclipse. > However, when I run jetty:run inside the IDE (through maven-jetty-plugin) > the jsps are not available. > > Quoting from http://www.eclipse.org/m2e-wtp/ : > > > war overlays of workspace dependencies and .war archives, with > incremental deployment on server > > However, I can't find any documentation on how to use overlays when > running the jetty server from maven plugin.* Is this possible?* > > I attach a test case to illustrate the problem: > - warTest is a struts 2 application that depends on test > - HelloWorld.jsp has 2 jsp includes from the other app (/WEB-INF/test3.jsp > and /example/test2.jsp ) > - test is another simple struts2 WAR application > * > * > *Test case:* > 1) run jetty:run inside eclipse on the warTest project and go to > localhost:8080 on a browser. > *Expected result:* > - You should see the test3.jsp and test2.jsp contents between the strings > "test1" and "test2" (because they are being included in HelloWorld.jsp) > *Actual result:* > - No string is shown > - Exception on the console (java.io.FileNotFoundException: > /example/test2.jsp, java.io.FileNotFoundException: /WEB-INF/test3.jsp). > > If war overay of workspace dependencies is supported, could you tell me > what is being done incorrectly and how to have this working? > > *Note:* See previous thread on Webby regarding why webby is not the best > approach for this. > > Cheers, > > Miguel Almeida > > _______________________________________________ > m2e-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/m2e-users > > -- "Have you tried turning it off and on again" - The IT Crowd
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
