You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ben Gidley <bg...@gmail.com> on 2005/12/13 09:34:37 UTC

[m2] site and site:deploy running tests twice.

I am trying to set up site/site deploy so that they automatically run during
the deploy phase. However when I do this and have the surefire reports
plugin it runs the tests twice - is there a way to stop it running the tests
twice?

I have got in plugins

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <executions>
                    <execution>
                        <id>deploy</id>
                        <phase>deploy</phase>
                        <goals>
                            <goal>site</goal>
                            <goal>deploy</goal>
                        </goals>
                    </execution>
                </executions>
</plugin>


Thanks

Ben

Re: [m2] site and site:deploy running tests twice.

Posted by Ben Gidley <bg...@gmail.com>.
Nik,
  I have sent the the whole POM off list. The whole project is in CVS at
scm:cvs:pserver:anonymous@cvs.zebra.berlios.de:/cvsroot/zebra:zebra/src/java/zebra-hivemind


It is quite odd - it may be some interaction with the other plugins. It does
the initial source deploy. Then it runs site and that is when Surefire is
kicked off again.

Ben


On 14/12/05, Nik Gonzalez <ng...@exist.com> wrote:
>
> Ben,
>
> I can't replicate this.  Please send your entire pom.xml.
>
> Thanks!
> Nik
>
> Ben Gidley wrote:
>
> >I am trying to set up site/site deploy so that they automatically run
> during
> >the deploy phase. However when I do this and have the surefire reports
> >plugin it runs the tests twice - is there a way to stop it running the
> tests
> >twice?
> >
> >I have got in plugins
> >
> ><plugin>
> >                <groupId>org.apache.maven.plugins</groupId>
> >                <artifactId>maven-site-plugin</artifactId>
> >                <executions>
> >                    <execution>
> >                        <id>deploy</id>
> >                        <phase>deploy</phase>
> >                        <goals>
> >                            <goal>site</goal>
> >                            <goal>deploy</goal>
> >                        </goals>
> >                    </execution>
> >                </executions>
> ></plugin>
> >
> >
> >Thanks
> >
> >Ben
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: [m2] site and site:deploy running tests twice.

Posted by Nik Gonzalez <ng...@exist.com>.
Ben,

I can't replicate this.  Please send your entire pom.xml.

Thanks!
Nik

Ben Gidley wrote:

>I am trying to set up site/site deploy so that they automatically run during
>the deploy phase. However when I do this and have the surefire reports
>plugin it runs the tests twice - is there a way to stop it running the tests
>twice?
>
>I have got in plugins
>
><plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-site-plugin</artifactId>
>                <executions>
>                    <execution>
>                        <id>deploy</id>
>                        <phase>deploy</phase>
>                        <goals>
>                            <goal>site</goal>
>                            <goal>deploy</goal>
>                        </goals>
>                    </execution>
>                </executions>
></plugin>
>
>
>Thanks
>
>Ben
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org