Hey all,
Not sure if I'm way behind the times on this one, but if you're working with
multiple geoserver or geotools branches in eclipse at the same time, mvn
eclipse:eclipse can be less than useful, because each branch generates
projects with names which are identical to all other branches.
I whipped up some sed and awk scripts, but they were a pain to maintain, and
I was never that confident in them.
Instead, with a small modification to the root pom.xml in geoserver (and
which is already committed to the geotools root pom.xml) you can add
arbitrary prefixes to your project names when you use mvn eclipse:eclipse.
By adding the <version>2.4</version> tag to the <plugin> section for the
"maven-eclipse-plugin", you can now run the following maven command:
$ mvn -Dmaven.test.skip -Declipse.projectNameTemplate="1.6.x-[artifactId]"
eclipse:clean eclipse:eclipse
This will create "1.6.x-main" and "1.6.x-wms" projects, which are all
properly linked. You can do the same trick for 1.5.x, or for the geoserver
2.3.x and 2.4.x (and 2.5.x) branches.
I hadn't heard anyone else say anything about this, so I thought i'd get it
into the google-able record.
If this is a good dev tip, I can put it into the wiki. Any suggestions on a
good place?
--saul
--
View this message in context: http://www.nabble.com/Dev-tip-tf4268497.html#a12148408
Sent from the GeoServer - Dev mailing list archive at Nabble.com.