users@jersey.java.net

[Jersey] Re: Error running simple-service

From: Daniel Trebbien <dtrebbien_at_gmail.com>
Date: Mon, 17 Jun 2013 19:31:46 -0400

Right, the Getting Started guide does not say to do this step, but in my humble opinion it should. Instead of saying to run mvn clean exec:java, I think it should say mvn install exec:java.

I was also following the Getting Started guide precisely when I encountered the "java.lang.ClassNotFoundException: com.example.Main" error. I figured that it was because the simple-service's artifact had not been installed into the local Maven cache yet. mvn install is just something that you are familiar with if you have used Maven before.

Hope that helps,

Daniel


On Jun 16, 2013, at 10:08 PM, kingsley osime wrote:

> Hello Daniel,
>
> I am trying to follow the jersey user guide precisely and there is nowhere it specifies mvn install before the mvn clean exec:java command.
>
> can you please elaborate?
>
> Thanks