afaik surefire plugin runs in test phase, so it's not guaranteed

On 1/31/07, Matt Raible <[EMAIL PROTECTED]> wrote:
If I choose "test" as the phase, does it execute before tests are run or after?

Thanks,

Matt

On 1/31/07, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> there are no guarantees of what plugin executes first in the same
> phase. You should use different ones
>
> On 1/31/07, mraible <[EMAIL PROTECTED]> wrote:
> >
> > Our users are experiencing an interesting issue on the AppFuse
> > project.  For some reason, sometimes the dbunit plugin fires before
> > the hibernate3 plugin.  Here's the bug:
> >
> > http://issues.appfuse.org/browse/APF-606
> >
> > Apparently, changing the phase of hbm2ddl to "process-classes" solves
> > the problem.  Is this recommended by these plugins' developers?
> >
> > Thanks,
> >
> > Matt
> >
> >        <plugins>
> >            <plugin>
> >                <groupId>org.codehaus.mojo</groupId>
> >                <artifactId>hibernate3-maven-plugin</artifactId>
> >                <version>2.0-SNAPSHOT</version>
> >                <configuration>
> >                    <components>
> >                        <component>
> >                            <name>hbm2ddl</name>
> >                            <implementation>jpaconfiguration</implementation>
> >                        </component>
> >                    </components>
> >                    <componentProperties>
> >                        <jdk5>true</jdk5>
> >
> > <propertyfile>target/test-classes/jdbc.properties</propertyfile>
> >                    </componentProperties>
> >                </configuration>
> >                <executions>
> >                    <execution>
> >                        <phase>test-compile</phase>
> >                        <goals>
> >                            <goal>hbm2ddl</goal>
> >                        </goals>
> >                    </execution>
> >                </executions>
> >                <dependencies>
> >                    <dependency>
> >                        <groupId>${jdbc.groupId}</groupId>
> >                        <artifactId>${jdbc.artifactId}</artifactId>
> >                        <version>${jdbc.version}</version>
> >                    </dependency>
> >                </dependencies>
> >            </plugin>
> >            <plugin>
> >                <groupId>org.codehaus.mojo</groupId>
> >                <artifactId>dbunit-maven-plugin</artifactId>
> >                <version>1.0-beta-1</version>
> >                <configuration>
> >                    <driver>${jdbc.driverClassName}</driver>
> >                    <username>${jdbc.username}</username>
> >                    <password>${jdbc.password}</password>
> >                    <url>${jdbc.url}</url>
> >                    <src>src/test/resources/sample-data.xml</src>
> >                    <type>CLEAN_INSERT</type>
> >                    <skip>${maven.test.skip}</skip>
> >                </configuration>
> >                <executions>
> >                    <execution>
> >                        <phase>test-compile</phase>
> >                        <goals>
> >                            <goal>operation</goal>
> >                        </goals>
> >                    </execution>
> >                </executions>
> >                <dependencies>
> >                    <dependency>
> >                        <groupId>${jdbc.groupId}</groupId>
> >                        <artifactId>${jdbc.artifactId}</artifactId>
> >                        <version>${jdbc.version}</version>
> >                    </dependency>
> >                </dependencies>
> >            </plugin>
> >        </plugins>
> >
> >
> > --
> > View this message in context: 
http://www.nabble.com/DbUnit-and-Hibernate3-Plugins-running-out-of-order-tf3150268.html#a8734280
> > Sent from the mojo - user mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
>
> --
> I could give you my word as a Spaniard.
> No good. I've known too many Spaniards.
>                              -- The Princess Bride
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                            -- The Princess Bride

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to