Hi all,

my problem is the following:  I want to execute a plugin (the 
exec-maven-plugin )  in the deploy phase. But this should be done before 
the maven-deploy-plugin execution. I also know that, as from maven 2.0.5, 
the order of the plugin-definition in the pom determine the order in which 
they will be executed. But somehow it seems that this does not work for 
the 'default'-phase-plugins. Or is it just some kind of incomplete 
configuration?  See below for my test-pom and test result.

Any help is welcome.

Thanks
Klaus


Test:
I tested it, not with the deploy phase but with the compile. So the 
build-plugins-section of my pom was change like the following..
...
<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <executions>
                <execution>
                        <id>RunFileThatStartsProductBuilding</id>
                        <phase>compile</phase>
                        <goals>
                                <goal>exec</goal>
                        </goals>
                </execution>
        </executions>
        <configuration>
                <executable>cmd</executable>ยด
                <workingDirectory>${basedir}</workingDirectory>
                <arguments>
                        <argument>/c</argument>
                        <argument>dir</argument>
                </arguments>
        </configuration>
</plugin>
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
</plugin>
...

But the result was the following..

[INFO] [clean:clean]
[INFO] Deleting directory c:\heuk\workspaces\mavenProjectBuilding\target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to 
c:\heuk\workspaces\mavenProjectBuilding\target\classes
[INFO] [exec:exec {execution: RunAntFileThatStartsProductBuildingZip}]
[INFO]  Volume in Laufwerk C: hat keine Bezeichnung.
[INFO]  Volumeseriennummer: 382D-8F67
[INFO]
[INFO]  Verzeichnis von c:\heuk\workspaces\mavenProjectBuilding
[INFO]
[INFO] 25.08.2008  15:45    <DIR>          .
[INFO] 25.08.2008  15:45    <DIR>          ..
[INFO] 25.08.2008  15:45             4.071 pom.xml
[INFO] 25.08.2008  08:35    <DIR>          src
[INFO] 25.08.2008  15:45    <DIR>          target
[INFO]                1 Datei(en)          4.071 Bytes
[INFO]                4 Verzeichnis(se),  3.988.070.400 Bytes frei
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Aug 25 15:45:53 CEST 2008
[INFO] Final Memory: 7M/14M
[INFO] 
------------------------------------------------------------------------



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

Reply via email to