Bug 173146

Summary: devel/maven-wrapper doesn't pass quoted args properly
Product: Ports & Packages Reporter: Steve Wills <swills>
Component: Individual Port(s)Assignee: Herve Quiroz <hq>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

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.