I don't think you understand Maven's concept of lifecycle. Please read the
following chapter to get basic understanding:
http://www.sonatype.com/books/maven-book/reference/simple-project-sect-lifecycle.html

/Anders

On Wed, Nov 11, 2009 at 09:59, boraldo <bora...@hotbox.ru> wrote:

>
> >>   you need to put the executions in different phases if they need a
> defined order
> I don't want that phases to execute. For example clean will clean, compile
> wil compile. If there any phases besides initialize that do nothing ?
>
> Stephen Connolly-2 wrote:
> >
> > not the bug you think it is
> >
> >   you need to put the executions in different phases if they need a
> > defined order
> >
> > the bug is allowing you to list the same plugin twice in the one
> > plugins section
> >
> > Sent from my [rhymes with tryPod] ;-)
> >
> > On 10 Nov 2009, at 17:51, Paul Benedict <pbened...@apache.org> wrote:
> >
> >> This is probably a bug since the order of plugins should be respected.
> >>
> >> Have you checked the ticket list of 2.2.2 or 3.0-alpha-3 to see if it
> >> is already fixed?
> >>
> >> And are you running 2.2.1?
> >>
> >> Paul
> >>
> >> On Tue, Nov 10, 2009 at 11:48 AM, boraldo <bora...@hotbox.ru> wrote:
> >>>
> >>> Suppose I have to execute some actions after some phase.
> >>> These actions are made plugins X and Y.
> >>> 1st action - executed by plugin X
> >>> 2nd action - executed by plugin Y
> >>> 3rd action - executed by plugin X
> >>>
> >>> I wrote the following pom:
> >>>
> >>>            <build>
> >>>                <plugins>
> >>>                    <plugin>
> >>>                        <artifactId>plugin-x</artifactId>
> >>>                        <executions>
> >>>                            <execution>
> >>>                                <id>step-1-x</id>
> >>>                                <phase>initialize</phase>
> >>>                                <goals>
> >>>                                    <goal>goal-x-1</goal>
> >>>                                </goals>
> >>>                            </execution>
> >>>                        </executions>
> >>>                    </plugin>
> >>>                    <plugin>
> >>>                        <artifactId>plugin-y</artifactId>
> >>>                        <executions>
> >>>                            <execution>
> >>>                                <id>step-2-y</id>
> >>>                                <phase>initialize</phase>
> >>>                                <goals>
> >>>                                    <goal>goal-y-1</goal>
> >>>                                </goals>
> >>>                            </execution>
> >>>                        </executions>
> >>>                    </plugin>
> >>>                    <plugin>
> >>>                        <artifactId>plugin-x</artifactId>
> >>>                        <executions>
> >>>                            <execution>
> >>>                                <id>step-3-x</id>
> >>>                                <phase>initialize</phase>
> >>>                                <goals>
> >>>                                    <goal>goal-x-2</goal>
> >>>                                </goals>
> >>>                            </execution>
> >>>                        </executions>
> >>>                    </plugin>
> >>>                </plugins>
> >>>            </build>
> >>>
> >>> I executed:
> >>> mvn initialize
> >>>
> >>> But the sequence of executions was wrong:
> >>> 1. step-1-x
> >>> 2. step-3-x
> >>> 3. step-2-y
> >>>
> >>> This means that each plugin executes all its executions, then the
> >>> next
> >>> plugin starts to work.
> >>> Can I corrupt such scenario ?
> >>> --
> >>> View this message in context:
> >>>
> http://old.nabble.com/How-can-I-execute-plugin-X%2C-then-plugin-Y%2C-then-plugin-X-again---tp26287350p26287350.html
> >>> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> For additional commands, e-mail: users-h...@maven.apache.org
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/How-can-I-execute-plugin-X%2C-then-plugin-Y%2C-then-plugin-X-again---tp26287350p26298018.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to