Not a recommendation per se[*], but to get things started you can use dependecies with system scope in maven. This allows you to point to an explicit jar file (you'll may have to handcraft a pom sidecar, I forgot)
see: http://books.sonatype.com/mvnref-book/reference/pom-relationships-sect-project-dependencies.html#pom-relationships-sect-dependency-scope also since you're starting with maven the other Sonatype books can be of great help: http://www.sonatype.com/resources/books/maven-by-example It's generally better to deploye those 'other' jars to your local repository. Mark 2014-11-12 18:34 GMT+01:00 Leif Gruenwoldt <lei...@gmail.com>: > Netbeans is pretty smart when it comes to Maven projects. Just modifying the > source of the dependent library and then re-running the application that > uses that library is usually enough for it to just-work. For day to day dev > that's what I do because it's very fast. > > However if for some reason you *want* to ensure you're using the deployed > artifact for your library found in your artifact repository then what I do > is re-run my application with the "Update Snapshots" option in Netbeans and > in the console you'll see it go out and download the artifact overwriting > the local one. > > On Wed Nov 12 2014 at 12:20:58 PM Andy Turner <a.g.d.tur...@leeds.ac.uk> > wrote: >> >> Thanks Leif, >> >> >> >> Some of the other jars although open source are not in a repository as >> such. Some are stored in a local version control system. I am working on >> getting everything into repositories and versioned. I plan to pack all the >> .java source files into the jars in the hope that this will allow for >> debugging in my Maven project. >> >> >> >> When developing in my Maven project, I expect that often I will have a >> need to change something in one of the dependencies. To do this the workflow >> I am considering is: >> >> 1. Make that change in the dependency (modify the source code in >> another Netbeans project, recompile the dependent library, run the unit >> tests, commit this to the repository) >> >> 2. Delete the jar from my local maven repository >> >> 3. Try to run again (hopefully Maven will then download the new >> version of the dependency) >> >> >> >> I am not sure if that is a good workflow, but that is what I was thinking >> to try. >> >> >> >> Thanks again, >> >> >> >> Andy >> >> From: Leif Gruenwoldt [mailto:lei...@gmail.com] >> Sent: 12 November 2014 15:50 >> To: Andy Turner; geotools-gt2-users@lists.sourceforge.net >> Subject: Re: [Geotools-gt2-users] Netbeans, Maven and dependencies >> >> >> >> Hi Andy, >> >> Maybe you've done this already, but try looking for your "other jars" in >> Maven Central ( http://search.maven.org ), most FOSS projects deploy there. >> If you have other proprietary jars then yes you'll need to host them in a >> local repository so Maven can find them. >> >> On Wed Nov 12 2014 at 10:03:21 AM Andy Turner <a.g.d.tur...@leeds.ac.uk> >> wrote: >> >> Hi, >> >> I am using GeoTools to develop some geographical maps for a project. I >> have an existing code base, but I'm not sure how best to use this with >> GeoTools and do my development in Netbeans. I am a Maven novice and would >> appreciate some good advice. >> >> The existing code based has a number of dependencies (other jars). >> >> I am using Netbeans 8.0.1. (there does not seem to be a way to use maven >> projects in non-maven projects and vice versa). >> >> I am trying the following: >> Move existing code base into the maven project I got up and running >> following the tutorials >> (http://docs.geotools.org/latest/userguide/tutorial/). >> Move all the jars that are not in a repository into one. >> Add the repositories to the pom.xml. >> >> Is this a sensible way forward? Is there a better way? >> >> Thanks for your help. >> >> Andy >> http://www.geog.leeds.ac.uk/people/a.turner/index.html >> >> >> ------------------------------------------------------------------------------ >> Comprehensive Server Monitoring with Site24x7. >> Monitor 10 servers for $9/Month. >> Get alerted through email, SMS, voice calls or mobile push notifications. >> Take corrective actions from your mobile device. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk >> _______________________________________________ >> GeoTools-GT2-Users mailing list >> GeoTools-GT2-Users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk > _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Disclaimer; This message is just a reflection of what I thought at the time of sending. The message may contain information that is not intended for you or that you don't understand. ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk _______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users