Saturday, May 30, 2009

New Bike -- Sort of ...

Took Bryan's old Trek 5200 out for its inaugural ride under my tuchus today. Pretty good ride with a few friends. Rode from Gunbarrel out to Hwy36 and North to Lyons where we hit the fruit loops, then back to Lefthand and over Lee Hill. The Trek is an old soldier of a bike, but with some new-old wheels and new-old tires from Glen along with my old 8 speed Shimano XT cassette, it worked pretty nicely.

52 miles and 3100 feet of climbing.

Thursday, May 14, 2009

maven profiles.xml

Just solved a problem with maven and profiles.xml. The documentation says that the profiles.xml file uses the exact format as the <profiles> element in pom.xml, but this isn't quite true. The <profiles> element is needed, but the documentation neglects to point out that you need to wrap the <profiles> element with a <profilesXml> root element.



<?xml version="1.0" encoding="UTF-8"?>
<profilesXml>
<profiles>
<profile>
<!-- This profile is used by default -->
<id>default-profile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<webapp.port>9090</webapp.port>
<webapp.admin.port>9999</webapp.admin.port>
</properties>
</profile>
</profiles>
</profilesXml>