hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Washusen <...@reactive.org>
Subject Re: quick question on Maven
Date Thu, 25 Feb 2010 06:31:35 GMT
You can also run specific tests using the "-Dtest=<TestName>" property.

For example, to run the org.apache.hadoop.hbase.stargate.TestRowResource
test:

> mvn -Dtest=TestRowResource test



On 25 February 2010 16:59, Paul Smith <psmith@aconex.com> wrote:

>
> On 25/02/2010, at 4:28 PM, Andrew Purtell wrote:
>
> > Hi,
> >
> > I'm hoping someone familiar with Maven can help me out. Should be quick
> to answer --
> >
> > How do I run tests only for the Stargate contrib? If I recurse and do
> 'mvn test' in contrib/stargate, Maven tries to pull HBase dev/snapshot
> artifacts. If I run from the top level, I have to wait for core tests to
> complete and I don't see how to specify a subproject or module on the mvn
> command line.
> >
>
> I would do this:
>
> 1) from the top-level:
>
> mvn -DskipTests clean install
>
> this will package and install into your local repo the hbase-core bits you
> need (but skip the tests)
>
> 2)
> cd contrib/stargate
> mvn test
>
> that really should work..  Because it'll find the latest hbase-core, and
> hbase-core-test artifacts now in your local maven report (~/.m2/repository).
>
>
>
> > Thanks,
> >
> >   - Andy
> >
> >
> >
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message