That's not it, the quoting was fine. Even with a single argument with no
spaces to -Darguments it still does not work.
Did some more digging and it seems the issue is in the apache-10 parent pom.
If you alter it like so, the arguments are passed as expected:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.1</version>
<configuration>
<useReleaseProfile>false</useReleaseProfile>
<goals>deploy</goals>
<!--<arguments>-Papache-release</arguments>-->
<arguments>-Papache-release ${arguments}</arguments>
</configuration>
</plugin>
Seems this is just a mistake as the full config as reported via -X contains
quite a bit of <foo>${foo}</foo> style declarations. We likely just missed it
here.
Going to use a hacked parent pom for the moment but it would be great if we
could get an apache-11 pom out soonish.
-David
On Sep 27, 2011, at 10:54 AM, Stephen Connolly wrote:
> you can if you understand shell escaping.
>
> - Stephen
>
> ---
> Sent from my Android phone, so random spelling mistakes, random nonsense
> words and other nonsense are a direct result of using swype to type on the
> screen
> On 27 Sep 2011 17:58, "David Jencks" <[email protected]> wrote:
>> IIRC you have to include your forked maven arguments in the release plugin
> configuration under
>> <arguments>-DskipTests=true -DfailIfNoTests=false</arguments>
>>
>> Perhaps someone else can say _why_ the m-r-p is set up so you can't set
> this on the command line?
>>
>> thanks
>> david jencks
>>
>> On Sep 27, 2011, at 5:40 AM, David Blevins wrote:
>>
>>> Is it a known issue that the release plugin does not honor the
> -Darguments?
>>>
>>> Specifically, I'm attempting to:
>>>
>>> mvn release:prepare -DdryRun=true -Darguments="-DskipTests=true
> -DfailIfNoTests=false"
>>>
>>> It takes 40 minutes to get through a dryRun with tests on. We still have
> several kinks in the build to work out before the release plugin will work,
> so obviously running with tests on every dryRun is just making a hard task
> impossible.
>>>
>>> maven 3.0.3, apache-10 parent pom, maven-release-plugin 2.1
>>>
>>>
>>> -David
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]