Scala, Maven and Jersey
As a small side note, I’ve got
import javax.ws.rs.{Path, GET, ProduceMime}
@Path("/hello")
class HelloResource {
@GET
@ProduceMime(Array("text/html"))
def hello() = "Hello World"
}
working with Maven2, Jetty and Jersey. Took some time but was interesting. Any ideas for Array("text/html") (Scala does’t support varags the same as Java does) Perhaps a clever implicit? Need to think more.
You can leave a Reply here. Of course, you should follow me on twitter here.
It should work as expected under 2.7.2, but until then you’re unfortunately stuck with Array(…).