users@jersey.java.net

[Jersey] Re: Running jersey-test under Maven

From: Ryan Stewart <rds6235_at_gmail.com>
Date: Tue, 22 Mar 2011 11:04:53 -0500

What do you mean by "jersey-test". If you mean using the Jersey test
framework, then there's nothing that makes it run or not run in or out of
Maven. The default surefire execution is in the test phase, which is before
the war is packaged, true, but it's after source and resource files are
processed, so it's not before anything is "copied into the target
directory". We'll need more detail about what you're trying to do, because
there's no reason that using Maven should interfere with testing a Jersey
app.

On Sun, Mar 20, 2011 at 10:51 PM, Gili <cowwoc_at_bbs.darktech.org> wrote:

> Has anyone managed to get jersey-test to run under Maven?
>
> By default, the Maven test plugin runs before the WAR file (and jersey
> dependencies) are copied into the target directory. As such, when the tests
> run, Jersey is unable to find any provider classes. What do you recommend?
>
> Thanks,
> Gili
>
> --
> View this message in context:
> http://jersey.576304.n2.nabble.com/Running-jersey-test-under-Maven-tp6191134p6191134.html
> Sent from the Jersey mailing list archive at Nabble.com.
>