mojohaus / mojohaus/exec-maven-plugin

Support interactive use

Open
#101 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
191
Forks
111
Avg merge
1d 21h
Merged PRs (30d)
4

Description

It seems that the plugin has some support for running interactive programs. I am trying to run activator from play framework when I enable a specific profile. This seems to work, except that the prompts and the text I enter do not appear until after I press return.

This may be because the input and output is being buffered and beyond the ability of the plugin to fix.

I was able to get a similar effect with this:

               <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>exec-maven-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>runActivator</id>
                            <phase>integration-test</phase>
                            <goals>
                                <goal>exec</goal>
                            </goals>
                            <configuration>
                                <executable>bash</executable>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>

bash is the standard Linux shell, although I was running it on a Mac.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported behavior by running Activator through the plugin with the shown profile configuration on macOS or Linux. Inspect how the plugin connects child-process input and output, and compare the behavior with the referenced exec-maven-plugin setup. Done means interactive prompts and typed text appear without waiting for Return.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, java
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.