[ 
https://jira.codehaus.org/browse/MEXEC-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=280284#comment-280284
 ] 

Dan Rollo commented on MEXEC-102:
---------------------------------

Wow, that IT stub is a huge help. Thanks!

I changed the example IT a bit: I moved the exec-maven-plugin from the parent 
to the child pom.xml. (As I mentioned above, my workaround was to move it from 
the child to the parent -> The problem only occurred when an exec-maven-plugin 
declared in the child pom.xml called ant).

Of course, I can't seem to reproduce the problem in the IT. I tried it on both 
Windows and Ubuntu (using the profiles I added).
I also added the use of the maven-ant-tasks in the child ant script.
Also did a file copy (like my original project ant target does).
Still no wait problem shows.

I've attached an updated zip with my changes.

I'll bang around some more, but feel free to mark this issue unreproducible 
(and if I can make it happen in the IT, I'll report back). 

Thanks again.

> Exec task ant waiting for user input w/ multi-module build
> ----------------------------------------------------------
>
>                 Key: MEXEC-102
>                 URL: https://jira.codehaus.org/browse/MEXEC-102
>             Project: Maven 2.x Exec Plugin
>          Issue Type: Improvement
>          Components: exec
>    Affects Versions: 1.2.1
>         Environment: windows 7
> maven 3.0.3
>            Reporter: Dan Rollo
>            Priority: Minor
>         Attachments: mexec-102-2.zip, mexec-102.zip
>
>
> When building a sub-module that uses the exec plugin to run an Ant command, 
> the console waits for a user to press enter.
> This wait only occurs when I build from the parent module and only when I run 
> the 'site' command.
> I tried adding the "-noinput" argument to the ant command, but the wait still 
> occurs when building from the top level project.
> There is no wait when building the sub-module site by itself.
> A snippet from my sub-module pom is below:
>             <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>exec-maven-plugin</artifactId>
>                 <version>1.2.1</version>
>                 <executions>
>                     <execution>
>                         <id>get-server-jar</id>
>                         <phase>package</phase>
>                         <goals>
>                             <goal>exec</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>                 <configuration>
>                     <workingDirectory>../remoteinstall/</workingDirectory>
>                     <executable>cmd</executable>
>                     <arguments>
>                         <argument>/c</argument>
>                         <argument>ant</argument>
>                         <argument>deploy-fitnesse-server</argument>
>                         
> <argument>-Dfitnesse.dir=${project.build.outputDirectory}/../</argument>
>                         <argument>-noinput</argument>
>                     </arguments>
>                 </configuration>
>             </plugin>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to