Hi, I have the following situation in wich I had thought that everything
was going to work, but it did not.  Please help if you may.
I have a pom which defines 2 modules, and this pom is of a type pom.
The modules' deployment tasks perform a certain pre-deployment
operation, and the parent pom performs one final deployment operation.
I had thought that running mvn deploy on the parent pom would result in
Maven having each module execute its deployment goals, and finally the
parent pom would execute its final deployment goal.  However, this was
not the case.  What happened was that every time the modules executed
their deployment tasks, the parent pom's deployment tasks ran as well,
where I had though that the parent's tasks would be run at the end, once
all the modules' tasks were executed, and not every time each module's
task was executed.  Here is the configuration.

Parent's pom.xml:
        <modules>
                <module A>
                <module B>
        </modules>
        <build>
                <plugin>
                        <deploy>.....
                </plugin>
        </build>

A's pom.xml:

        <build>
                <plugin>
                        <deploy>
                </plugin>
        </build>

B's pom.xml:

        <build>
                <plugin>
                        <deploy>
                </plugin>
        </build>

Please let me know why this is happening and how I can achieve what I
need.  Thanks. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]

Reply via email to