[Cronometer-development] Re: Notes on Maven conversion
Brought to you by:
artichikin
|
From: Chris R. <of...@gm...> - 2005-05-29 20:30:33
|
One more thing: For a list of jars that we can get at without having to do anything special at all, use http://www.ibiblio.org/maven/ The directory goes:=20 /maven/${groupId}/${type}s/${artifactId}-${version}.${type} for the tags in the <dependency> element in the project.xml, so this tag: <dependency> =09<groupId>httpunit</groupId> =09<artifactId>httpunit</artifactId> =09<version>1.6</version> =09<type>jar</type> =09<url>http://httpunit.sourceforge.net/</url> </dependency> would translate into /maven/httpunit/jars/httpunit-1.6.jar We have a private repository, too, and I'll eventually set one up on sourceforge so I don't have to host it. On 5/29/05, Chris Rose <of...@gm...> wrote: > A few things are required to make Maven work the way you want it to: >=20 > 1) install Maven 1.0.2 from http://maven.apache.org/start/download.html= =20 > 2) Configure maven as described here: http://maven.apache.org/start/insta= ll.html=20 > 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. >=20 > 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. >=20 > Chris R. > =3D=3D=3D=3D=3D=3D > Not to be taken literally, internally, or seriously. >=20 --=20 Chris R. =3D=3D=3D=3D=3D=3D Not to be taken literally, internally, or seriously. |