You're not crazy. The verifier always inserts clean. It seems like that should 
be configurable for cases like yours....or perhaps testing something that 
breaks in a non-clean build. See the code:

    public void executeGoals( List goals, Map envVars )
        throws VerificationException
    {
        if ( goals.size() == 0 )
        {
            throw new VerificationException( "No goals specified" );
        }

        List allGoals = new ArrayList();

        allGoals.add( "clean:clean" );

        allGoals.addAll( goals );

For now, you could submit a patch for the verifier and/or use the invoker 
directly.

-----Original Message-----
From: Jason van Zyl [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 03, 2007 7:59 AM
To: Maven Developers List
Subject: Re: Using maven-verifier 

Brian is in the process of writing up how to create ITs from the new  
sample project we have that is turned into an archetype with the new  
archetype code. We'll be there shortly, but these are made for use  
internally but there are ITs for projects that projects that don't  
have POMs.

On 3 Aug 07, at 6:07 AM 3 Aug 07, Arnaud Bailly wrote:

> Hello,
> I am trying to write some integration tests along the line of what is
> done in core-it. I am using the maven-verifier module and I want to
> check the behavior of creating a custom archetype with
> archetype:create. I ran into 1 problem: Verifier always add
> clean:clean goal in front of all goals I had, but when I run
> archetype:create, I do not have a POM so I got errors.
>
> Is there any other way to do what I want ? Am I using the verifier the
> wrong way ?
>
> Thanks for answers,
> -- 
> OQube < software engineering \ génie logiciel >
> Arnaud Bailly, Dr.
> \web> http://www.oqube.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder and PMC Chair, Apache Maven
jason at sonatype dot com
----------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to