On Thursday 19 June 2008 Niranjan Deshpande wrote: > I am moving my applciaiton build process from ant to maven > earlier, some dependency jars were in my prj_hom/lib dir, these were for > the dependecny resoultion. > > now the jars are in the repository and declared in the POM. > so emptying (deleting) the prj_home/lib dir should not be a harm. > my understanding is: maven looks up the pom at runtime, gets the required > jars as per pom and dumps them in the prj_home/lib, so that the will go > in the ear. > > Correct?
For EARs that's basicaly correct. Just the path is slightly different, it's prj_home/target/<prj_name-prj_version>/lib by default. Within the resulting EAR the path is /lib. For JARs you should have a look at the maven-assembly-plugin an the jar-with-dependencies descriptor [0]. hth, - martin [0]http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html
signature.asc
Description: This is a digitally signed message part.
