- This topic has 1 reply, 1 voice, and was last updated 15 years, 5 months ago by fermataintl.
-
AuthorPosts
-
fermataintlMemberI am using MyEclipse Version: 7.5 Build id: 7.5-20090609 and attempting to create a simple web project with some servlets in it. Using the Maven4MyEclipse wizard I set the goals to be install and war (fully expanded). The war file gets created, but there are no classes in the target (my servlets). On a related note, I have used maven before and the directory hierarchy was src/main/java, but when I did the “create project” only the src directory was created. Does this matter? If so, how do I create the main/java directories in the interface. I am not sure what the difference is between a “folder” and a “source folder”.
Thanks.
Dean
fermataintlMemberI am investigating this in more depth. I created 2 projects: hello and hello2. These projects are identical except that for hello I added maven support. In reading the educational material on maven4myeclipse it states that projects with maven support are still set up the way we’ve always done them and should function the same way. In both projects I created a servlet called Hello and let myeclipse create a default body. I am using tomcat 6.x on windows xp for my testing and debugging.
I deployed hello2 (no maven) to tomcat 6.x in both exploded and packaged forms. In both cases, I can hit the servlet and it works as expected.
I did the same thing (not running any maven commands at this point) on hello2 and in neither case did it work. When I inspected the webapps/hello/WEB-INF directory there is an empty classes directory. In webapps/hello2/WEB-INF there is a classes directory that is populated as expected.
I may have missed some key instructional information along the way. If so, would someone point me at it? Otherwise, is this a bug?
Thanks.
Dean -
AuthorPosts