[prev in list] [next in list] [prev in thread] [next in thread] 

List:       maven-user
Subject:    Re: How does the jar plugin produce a "*-tests.jar" when I don't specify that?
From:       Adrien Rivard <adrien.rivard () gmail ! com>
Date:       2016-12-01 15:29:46
Message-ID: CAPCUOdHBg96yzmOdCuZ4YX2e-6-6E5u58UDyRPHe3ZfuMO_2+w () mail ! gmail ! com
[Download RAW message or body]


Is he using "-Dmaven.test.skip=true" when building? This property skips the
build of the tests jar , contrary do -DskipTests=true that skip the
execution of the tests.

On Thu, Dec 1, 2016 at 12:41 AM, KARR, DAVID <dk068x@att.com> wrote:

> > -----Original Message-----
> > From: Laird Nelson [mailto:ljnelson@gmail.com]
> > Sent: Wednesday, November 30, 2016 3:36 PM
> > To: Maven Users List <users@maven.apache.org>
> > Subject: Re: How does the jar plugin produce a "*-tests.jar" when I
> > don't specify that?
> >
> > On Wed, Nov 30, 2016 at 3:19 PM KARR, DAVID <dk068x@att.com> wrote:
> >
> > > The POM for "artifact1" has two dependencies on "artifact2".  One is
> > > the "default" artifact, and another is a jar artifact that is only
> > > used for unit tests.
> > >
> >
> > …and that's the issue.  See
> > https://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html;
> > note in particular the "classifier" property (
> > https://maven.apache.org/plugins/maven-jar-plugin/test-jar-
> > mojo.html#classifier
> > ).
> >
> > Some other information is here:
> > https://maven.apache.org/guides/mini/guide-attached-tests.html
>
> Ok, thanks.  That explains why I get "*-tests.jar".  I still need to
> understand why that other developer is not getting that jar generated.
> More debugging to do.
>
>


-- 
Adrien Rivard


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic