Thank you,Nick.
So,is this the only way? >Because the dependencies of your dependencies (so called transitive >dependencies) will not be taken into account for your build path >during compile. If you (this means, the java files in your module) >have a compile time dependency on some other classes you have to >declare them as a dependency. > >Hth, > > >Nick Stolwijk >~Java Developer~ > >Iprofs BV. >Claus Sluterweg 125 >2012 WS Haarlem >www.iprofs.nl > > > >On Thu, Nov 13, 2008 at 4:14 PM, 梦秋雨 <[EMAIL PROTECTED]> wrote: >> Hello everyone, >> >> I get a problem when I try to use maven to compile my application. I can not >> find a solution by google,so ,I'm here :) >> >> First,I create an web application depends on hibernate, and install it into >> my local repository,so there is a war package in my repository. >> Then I create the second application. In pom.xml,I add a dependency to the >> first application. after that,I create a class in this application. >> In this class,I use some hibernate api. >> >> Then I use "mvn compile" command to compile the application. Here I get my >> problem:compile fail, error message is "can not find symbol". It >> seems that maven do not know the first application depends on hibernate! >> >> So,why? >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >>
