How do we upgrade lift version in Maven?

I would like to upgrade lift version to bypass a lift bug. However, I cannot find the place to change the version number in Maven. Is it here?

<properties>
        <scala.version>2.7.7</scala.version>
        <!-- Common plugin settings -->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>${project.build.sourceEncoding}</project.reporting.outputEncoding>
        <!-- vscaladoc settings -->
        <maven.scaladoc.vscaladocVersion>1.2-m1</maven.scaladoc.vscaladocVersion>
        <vscaladoc.links.liftweb.pathsufix>scaladocs/</vscaladoc.links.liftweb.pathsufix>
        <vscaladoc.links.liftweb.baseurl>http://scala-tools.org/mvnsites/liftweb</vscaladoc.links.liftweb.baseurl>
</properties>

If so, what parameter do I adjust to do it? If not, how can I upgrade lift in Maven?

Answers


You should have a <dependencies> element as a sister to <properties> with children like this:

<dependency>
  <groupId>net.liftweb</groupId>
  <artifactId>lift-mapper_${scala.version}</artifactId>
  <version>2.1</version>
</dependency>

Just change the version as desired (noting that 2.2 is the latest version with Scala 2.7 support), or add a line like <liftweb.version>2.2</liftweb.version> to your properties and refer to it here:

<dependency>
  <groupId>net.liftweb</groupId>
  <artifactId>lift-mapper_${scala.version}</artifactId>
  <version>${liftweb.version}</version>
</dependency>

Note that there may be several net.liftweb dependencies, and that they'll all need to be changed. Using the property approach makes this process a little easier and less error-prone.


Need Your Help

"anonymous type" parameter in T4MVC Actionresult

asp.net-mvc-3 t4mvc

I am trying to figure out if I can do this, and how..

Popup on website load once per session

javascript jquery html session popup

I found some ways to make javascript/jquery popup windows. But, there were some problems, first of all, I am not very good with these two languages, just beginner.