facebook

maven web project and classes

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #299578 Reply

    fermataintl
    Member

    I 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

    #299662 Reply

    fermataintl
    Member

    I 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

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: maven web project and classes

You must be logged in to post in the forum log in