Hi Fred, On Tue, Jan 15, 2013 at 11:53 AM, Fred Bricon <[email protected]> wrote:
> 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. > Webby would probably be in the same scope as the WTP server adapters (in fact, you can run jetty or tomcat with it). It's an option. It takes you one step further from "zero configuration developer setup" (e.g. you'll have to manually add db driver dependencies to the container, which is automatically performed when you define them in the jetty-maven-plugin) which I find a best practise, that's why I'm trying to find a cleaner approach. > > 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? > Trying on IRC (I'm asking Jesse), I might also try the mailing list. But I take it it's a long shot. How or in what path are the workspace projects exposed by m2e in? I take it that the plugin doesn't like workspace projects very much, as when I run jetty:run-war it'll be expecting a jar/war dependency and complain about the workspace project dependency [1] [1] Error unpacking file [/home/malmeida/workspaces/kepler/test/target/classes]to [/home/malmeida/workspaces/kepler/wartest/target/war/work/test/test]: The source must not be a directory Any idea will be welcomed. I don't have any idea how to solve this. Cheers, Miguel > > 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 > >
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
