Justin Deoliveira wrote: > Yikes!! Looks pretty complicated. Can i get a quick synopsis of how to > use it.
In short it's just deploying things from your local repository into a remote one. Alternatively, you could just type mvn deploy:deploy-file, but this figures out if there is a pom or not and fills in all the blanks for you. 1. in the script set the value for REPO_LOCAL for your system 2. in the script delete the second half of the file (and add your own deploy_file lines) The syntax is deploy_file GROUP_ID ARTIFACT_ID VERSION 3. put the jars you want to deploy into your local repository, either with mvn install:install-file, or by cheating and putting the jar directly in your repo in its proper place w/ proper naming. 4. ensure you have webdav support built into your maven install (this doesn't come by default). We won't have a pom to declare dependencies, so we need to put stuff into /lib. Way back when, I built maven from scratch to make this work, but this isn't necessary. See http://docs.codehaus.org/display/MAVENUSER/Deploying+3rd+Party+Jars+With+WebDAV for the hard way to do it, and better instructions in the comments below (you might want to update the versions though). Unfortunately the instructions in the official maven docs, http://maven.apache.org/guides/mini/guide-deploying-3rd-party-jars.html, only say "First, the wagon-provider(wagon-ftp, wagon-file, etc..) must be placed to your %M2_HOME%/lib" -- what this doesn't mention is that you'll have to read the pom file for that jar and figure out its dependencies and add those too. Note: this technique is ONLY for deploying DEPENDENCIES into one of our repositories (so we don't have to use ibiblio). Cory. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
