Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No user interaction messages shown #10

Open
logoff opened this issue May 2, 2014 · 4 comments
Open

No user interaction messages shown #10

logoff opened this issue May 2, 2014 · 4 comments

Comments

@logoff
Copy link

logoff commented May 2, 2014

When I use a Maven plugin that asks for user-interaction, I don't see questions until I write the answer. For instance with Maven Release Plugin I see:

...
[INFO] Checking dependencies and plugins for snapshots ...

And Maven is frozen... When I press 3 or 4 times return key, Maven continues working:

What is the release version for "<project_name>"? (<project_artifact_id>) <current_version>: : What is SCM release tag or label for "<project_name>"? (<project_artifact_id>) <release_tag>: : What is the new development version for "<project_name>"? (<project_artifact_id>) <new_snapshot_version>: : [INFO] Transforming '<project_name>'...

I think this is caused because there is no end line character at the end. Is there any solution? I can't imagine one :-(

@rehevkor5
Copy link
Contributor

I'd love to see a solution for this, too. Someone also submitted a bug about it before they realized what was causing the issue: http://jira.codehaus.org/browse/MRELEASE-469

@rehevkor5
Copy link
Contributor

There's another, similar problem: quotation of parameters will not work as expected.

For example, the command mvn scm:checkin "-Dmessage=Testing spaces" will be interpreted as if "spaces" were a goal. I tried various combinations of double and single quotes and escapes before I tried it without this alias and found the problem.

@simpsonjulian
Copy link
Contributor

Hey, what if it just refused to do anything that it saw as related to the release plugin? The real solution is to implement ANSI colour in Maven itself, so I'm keen to keep some boundaries. :)

@rehevkor5
Copy link
Contributor

It might not be worth the effort to solve issues like these. I'm not a Bash expert though: maybe the mistake would be obvious to someone who is. Whatever the case, the important thing is that people who are having trouble with parsing of parameters with spaces might be able to search Google and find this page that helps them figure it out.

Edit: see my #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants