users@jersey.java.net

mvn install on a fresh checkout fails

From: Naresh <bsnaresh_at_sun.com>
Date: Thu, 11 Jun 2009 11:11:47 +0530

Hi,

   when I try "mvn install" from a freshly checked-out workspace on a
machine with clean local maven repo, the build fails with some errors
related to jersey-scala-lift.

The following is seen in the console:
------------------------------------------------------------------------------------------------
 Checking for multiple versions of scala
[INFO] Compiling 4 source files to
/home/naresh/workspace/jersey_svn/jersey/jersey/contribs/scala/jersey-lift/target/classes
[WARNING]
/home/naresh/workspace/jersey_svn/jersey/jersey/contribs/scala/jersey-lift/src/main/scala/com/sun/jersey/lift/NodeWriter.scala:20:
error: NodeSeq is not a member of xml
[WARNING] import xml.NodeSeq
[WARNING] ^
[WARNING]
/home/naresh/workspace/jersey_svn/jersey/jersey/contribs/scala/jersey-lift/src/main/scala/com/sun/jersey/lift/NodeWriter.scala:29:
error: not found: type NodeSeq
[WARNING] class NodeWriter extends MessageBodyWriter[NodeSeq] {
[WARNING] ^
[WARNING]
/home/naresh/workspace/jersey_svn/jersey/jersey/contribs/scala/jersey-lift/src/main/scala/com/sun/jersey/lift/NodeWriter.scala:36:
error: not found: type NodeSeq
[WARNING] classOf[NodeSeq].isAssignableFrom(aClass)
[WARNING] ^
[WARNING]
/home/naresh/workspace/jersey_svn/jersey/jersey/contribs/scala/jersey-lift/src/main/scala/com/sun/jersey/lift/NodeWriter.scala:39:
error: not found: type NodeSeq
[WARNING] def getSize(nodes: NodeSeq, aClass: Class[_], aType: Type,
annotations: Array[Annotation], mediaType: MediaType) = -1L
[WARNING] ^
[WARNING]
/home/naresh/workspace/jersey_svn/jersey/jersey/contribs/scala/jersey-lift/src/main/scala/com/sun/jersey/lift/NodeWriter.scala:41:
error: not found: type NodeSeq
[WARNING] def writeTo(template: NodeSeq, aClass: Class[_], aType:
Type, annotations: Array[Annotation], mediaType: MediaType, multiMap:
MultivaluedMap[String, Object], out: OutputStream): Unit = {
[WARNING] ^
[WARNING]
/home/naresh/workspace/jersey_svn/jersey/jersey/contribs/scala/jersey-lift/src/main/scala/com/sun/jersey/lift/LiftTemplateProcessor.scala:12:
error: NodeSeq is not a member of xml
[WARNING] import xml.NodeSeq
[WARNING] ^
[WARNING]
/home/naresh/workspace/jersey_svn/jersey/jersey/contribs/scala/jersey-lift/src/main/scala/com/sun/jersey/lift/LiftTemplateProcessor.scala:73:
error: not found: type NodeSeq
[WARNING] val template: Box[NodeSeq] =
TemplateFinder.findAnyTemplate(List.fromArray(resolvedPath.split("/")))
[WARNING] ^
[WARNING]
/home/naresh/workspace/jersey_svn/jersey/jersey/contribs/scala/jersey-lift/src/main/scala/com/sun/jersey/lift/LiftTemplateProcessor.scala:77:
error: type mismatch;
[WARNING] found : Any
[WARNING] required: scala.xml.NodeSeq
[WARNING] val transformedNodes = S.render(nodes, request)
[WARNING] ^
[WARNING] 8 errors found
------------------------------------------------------------------------------------------------

     Does anyone know why this is happening?

Thanks,
Naresh