I have jdom dependency in one/more of my multimodule project. I dont have repositroy conection as of now. Recently jdom upgraded to jdom2. Hence need to download that jar to compile and ve a successful build. As a first initiative i tried to download the jdom2 jar and saved to my local machine. THen in my dependency element , tried to use scope=system and systemPath="local path to the jar". BUt my pom error on eclipse/as well "mvn clean install" was saying file to tat location doesnt exist. SO tried google search and found three suggested solutions :
http://charlie.cu.cc/2012/06/how-add-external-libraries-maven/
http://randomizedsort.blogspot.com/2011/10/configuring-maven-to-use-local-library.html
http://stackoverflow.com/questions/364114/can-i-add-jars-to-maven-2-build-classpath-without-installing-them
Im confused about those steps. but somehow tried with failure result. Please let me know probable solution for my issue........
------............ "I do not have repository connection"=> ur access to company central repository has been restricted for time being. Hence at present the connection fails and as well downloading the file fails. As mentioned mine is multi-module project say 3 modules are "x-common","x-gui", "x-ejb". All three has dependency for jdom. Earlier it was using jdom version, those jar are in local repo so it was running. NOw its been update to jdom2. Coz of network failure connection , module build fails to download jdom2 afresh. So tried to add scope=system and systmePath=my_local_path in those pom. pom in common module was throwing xml compile error canot find the jar at that specified location. hence looked over for other waysto resolve it. Going by link #2 i created a folder by name 'repo' at the root of 'x-common' project and tried to execute the mvn install command pointing the jar in my local path. It was saying 'pom.xml not found in the jar' hence that ste fails. This is my entire scneario....