Hi, Thanks for your reply. I'm already using M2Eclipse plugin and that's the plugin I created my project with. But the problem is that the jar my web app is dependent on doesn't show up in wep app project properties, only that project is visible but with the error I mentioned in my previous post. Did I do something wrong when project was set up?
Best regards, Janne 2009/1/22 Borut Bolčina <[email protected]> > Hi, > > install http://m2eclipse.codehaus.org/ > and read http://docs.codehaus.org/display/M2ECLIPSE/Home and a chapter in > http://books.sonatype.com/maven-book/index.html about this plugin. > > This project layout you are describing is very common (multimodule project) > and is handled with ease with m2eclipse plugin. All you have too do is to > import the project into eclipse. There are two possible views, as Eclipse > does not suport hierarchical projects: one is separate projects and the > other is one project which includes all your modules. > > I hope this will get you started. > > Cheers, > Borut > > 2009/1/22 Janne Rantala <[email protected]> > > > Hi all, > > > > I've just recently started using Maven2 and I there are still lots of > > things > > that I'm puzzled about. The scenario is that I have M2 project which has > 2 > > modules (A & B) which both build jar. Then there's a web application (C) > > which depends on other of those jars (A). > > > > So my directory structure looks like this; > > > > Parent > > - module A > > - module B > > - module C (web app) > > > > What I'm trying to do is to run and test web application with WTP. I've > ran > > eclipse:eclipse with -Dwtpversion=2.0 on my project, but the problem is, > > that module A jar is not included in Tomcat in web app's WEB-INF/lib > > directory and that causes ClassNotFoundException when application runs. > All > > third party jars that web app depends on are located where they should. > > > > In web app's properties module A is listed in Projects -tab in Required > > projects on the build path, but it has this yellow sign saying "Build > path > > entry is missing: module A". How can I fix this? > > > > Hope you get the idea what I'm trying to say, like I said, I'm not that > > experienced with Maven yet. > > > > Best regards, > > > > Janne > > >
