I have it as scope provided , but this is just an example ,but what about other dependencies ?
is there a global way to configure all my dependencies version ? Stephen Connolly-2 wrote: > > eh... why are you including servlet-api inside your war. > > servlet-api is provided by the container (if your container is > compliant with the java ee specification) so you should just have it > with scope provided in the webapp > > -Stephen > > 2010/1/14 fachhoch <fachh...@gmail.com>: >> >> My project is a n ear project which has dependency to war and jar >> projects. >> suppose I specify dependency in war pom file for a servlet-api 2.4, it >> works there, that is any other dependecy whihc has transitive dependency >> with a lower version ot servlet-api is ignored , but suppose my jar >> project has transitive dependency for the same with a lower version , it >> will not know about the version decalred in war project and it puts the >> lower in ear file , so I end up with two differnt versions of the same >> jar >> in my ear , please tell me hot to avoid this? >> -- >> View this message in context: >> http://old.nabble.com/several-poms-and---dependency-tp27159704p27159704.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://old.nabble.com/several-poms-and---dependency-tp27159704p27165000.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org