Fix lift-archetype-jpa-basic
Ref: http://groups.google.com/group/liftweb/browse_thread/thread/c932dd45c70094ca
Issues:
1. Velocity is unhappy and spewing warnings
2. mvn install fails after archetype being created
Diagnosis:
1. \#1 Happens because vm variables don't resolve appropriately during archetype:generate
2. \#2 Happens likely because scala.version is set to 2.7.4 in pom.xml (unlikely to be main reason).
3. LiftRules.localeCalculator is now of type Box[HTTPRequest] => Locale in snapshot instead of Box[HttpServletRequest] => Locale in 1.1-M4
Solutions:
Fix archetype-resources to look like those in lift-archetype-basic.
Specifically:
1. In ext.vm set(...) should be prepended with '#' to look like #set(...)
2. Update pom.xml with the lines (somewhere at the top, before vm encounters ${} resolution)
\#set($sv = '${scala.version}')
\#parse('ext.vm')
3. While at this, would be good to have the jetty version range fixed to [6.1.6,7.0)
4. Either fix Boot.localeCalculator to honor the new signature in the SNAPSHOT or set lift-core dependency to 1.1-M4 in the lift-archetype-jpa-basic resource web/pom.xml in the interim till Boot.localeCalculator is fixed.
Issues:
1. Velocity is unhappy and spewing warnings
2. mvn install fails after archetype being created
Diagnosis:
1. \#1 Happens because vm variables don't resolve appropriately during archetype:generate
2. \#2 Happens likely because scala.version is set to 2.7.4 in pom.xml (unlikely to be main reason).
3. LiftRules.localeCalculator is now of type Box[HTTPRequest] => Locale in snapshot instead of Box[HttpServletRequest] => Locale in 1.1-M4
Solutions:
Fix archetype-resources to look like those in lift-archetype-basic.
Specifically:
1. In ext.vm set(...) should be prepended with '#' to look like #set(...)
2. Update pom.xml with the lines (somewhere at the top, before vm encounters ${} resolution)
\#set($sv = '${scala.version}')
\#parse('ext.vm')
3. While at this, would be good to have the jetty version range fixed to [6.1.6,7.0)
4. Either fix Boot.localeCalculator to honor the new signature in the SNAPSHOT or set lift-core dependency to 1.1-M4 in the lift-archetype-jpa-basic resource web/pom.xml in the interim till Boot.localeCalculator is fixed.
Leave a comment
on 2010-02-06 11:48 *
By github.importer
Imported from GitHub: http://github.com/dpp/liftweb/issues/52/find