Bug 173146 - devel/maven-wrapper doesn't pass quoted args properly
Summary: devel/maven-wrapper doesn't pass quoted args properly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Herve Quiroz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-28 03:30 UTC by Steve Wills
Modified: 2012-11-04 21:41 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Wills freebsd_committer freebsd_triage 2012-10-28 03:30:01 UTC
Using the examples in the ActiveMQ in Action book, I am running maven:

mvn exec:java -Dexec.mainClass=org.apache.activemq.book.ch3.portfolio.Publisher -Dexec.args="CSCO ORCL"

Maven returns an error:

[ERROR] Unknown lifecycle phase "ORCL"....

This is because the maven wrapper doesn't pass quoted args properly. If I call maven directly:

/usr/local/share/java/maven3/bin/mvn exec:java -Dexec.mainClass=org.apache.activemq.book.ch3.portfolio.Publisher -Dexec.args="CSCO ORCL"

things work OK.

Fix: 

No idea at the moment.
How-To-Repeat: Install ActiveMQ, maven-wrapper and try to use the examples from the book. Let me know if you need help with this.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-10-28 03:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->hq

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Herve Quiroz freebsd_committer freebsd_triage 2012-11-04 21:40:01 UTC
State Changed
From-To: open->closed

I updated the wrapper script and ran some tests. Works good for me now. 

Please let me know if it works for your specific issue.