[Cronometer-development] Notes on Maven conversion
Brought to you by:
artichikin
|
From: Chris R. <of...@gm...> - 2005-05-29 19:31:18
|
A few things are required to make Maven work the way you want it to: 1) install Maven 1.0.2 from http://maven.apache.org/start/download.html 2) Configure maven as described here: http://maven.apache.org/start/install= .html 3) Ideally at this point you should have the latest project.xml and project.properties for CRONOMETER from CVS. This will allow you to get the latest and greatest jar files we work with. To do so, assuming the above is true, just run "maven java:compile" from the base of the project (${eclipse.workspace}/CRONOMETER) 4) To configure Eclipse properly, you'll need the mevenIDE plugin, from the update site at http://mevenide.codehaus.org/release/eclipse/update/site.xml (Use the usual Eclipse IDE update installation for that) 5) Once MevenIDE is installed, you'll want to set the Maven nature on the CRONOMETER project: right-click on the project, from that menu select "Maven -> Add Maven Nature" 6) Delete all of the libraries from the classpath of your project (and, in fact, delete the jars from the lib directory) 7) Your classpath will now need to be updated. A "Pom Synchronizer" view should have appeared. If it didn't, from the same Maven menu as #5, select "Synchronize". In the Pom Synchronizer, right click on all the libraries it's showing (which should be a lot) and select "add to .classpath". You will need to set a classpath variable MAVEN_REPO to $HOME/.maven/repository for this to work. To add new libraries, I will be setting up an ftp drop for them eventually, but right now just mail them to me, along with the snipped of the project.xml that refers to them, and I'll set them up. Once you do that, just drop them in your own repository (in $MAVEN_REPO) and you can use them easily. Chris R. =3D=3D=3D=3D=3D=3D Not to be taken literally, internally, or seriously. |