If you are using the latest snaphost of release plugin, then it is a bug

On 4/10/06, Todd Nine <[EMAIL PROTECTED]> wrote:
>
> Sorry, I misspoke in my initial posting, I mean release:perform
>
> On 4/10/06, dan tran <[EMAIL PROTECTED]> wrote:
> >
> > not sure why release:prepare would trigger a build, according to the
> > source,
> >
> > the build only happen in release:perform which has special handling of -
> > Dmaven.test.skip.
> >
> > -D
> >
> >
> > On 4/10/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > >
> > > A quick-n-dirty approach... In your pom.xml, in <build>, add the
> > > element <testSourceDirectory>src/mytests</testSourceDirectory>.
> > >
> > > This will override the src/test folder, so no tests will be found, and
> > > thus no tests will be executed.
> > >
> > > You should see:
> > > [INFO] [surefire:test]
> > > [INFO] No tests to run.
> > >
> > > Make sure you use "mvn clean" first to delete the compiled test that
> > > have already been created in target.
> > >
> > > Wayne
> > >
> > > On 4/10/06, Krishnan A S <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Your solution will definitely do :) but u may need to define a
> > > > maven-surefire-plugin inside build/plugins and there you define
> > > > <testFailureIgnore>true</tFI>
> > > >
> > > > Thanks & Regards,
> > > > A.S.KRISHNAN,
> > > > AZTEC, BANGALORE.
> > > >
> > > > -----Original Message-----
> > > > From: Todd Nine [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, April 10, 2006 7:38 PM
> > > > To: [email protected]
> > > > Subject: Question about skipping tests
> > > >
> > > > Hi all,
> > > >  I need to perform a build without executing any of the unit tests.
> > > > While
> > > > I know this is a horrible practice, I am migrating our existing ant
> > > > builds
> > > > to maven2, most of them have old unit tests that were not updated,
> and
> > > > as a
> > > > result will fail.  I need to perform the 1.0.0 release now to
> migrate
> > to
> > > > maven 2 with the current production code, then in 1.0.1-SNAPSHOT fix
> > the
> > > > unit tests.  I have tried both -Dmaven.test.failure.ignore=true and
> -
> > > > Dmaven.test.skip=true, neither work and the tests are executed, so
> > > > release:prepare fails.  Short of excluding every unit test in the
> pom
> > is
> > > > there any other way to disables the tests?
> > > >
> > > > Todd
> > > >
> > > >
> > > >
> > > > **********************************************************
> > > >
> > > > The information contained in, or attached to, this e-mail, contains
> > > confidential information and is intended solely for the use of the
> > > individual or entity to whom they are addressed and is subject to
> legal
> > > privilege. If you have received this e-mail in error you should notify
> > the
> > > sender immediately by reply e-mail, delete the message from your
> system
> > and
> > > notify your system manager. Please do not copy it for any purpose, or
> > > disclose its contents to any other person. The views or opinions
> > presented
> > > in this e-mail are solely those of the author and do not necessarily
> > > represent those of the company. The recipient should check this e-mail
> > and
> > > any attachments for the presence of viruses. The company accepts no
> > > liability for any damage caused, directly or indirectly, by any virus
> > > transmitted in this email
> > > >
> > > > ************************************************************
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> >
> >
>
>

Reply via email to