You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephane Nicoll (JIRA)" <ji...@codehaus.org> on 2007/05/31 04:53:59 UTC

[jira] Closed: (MEAR-37) Parameters ignored when set on the command line

     [ http://jira.codehaus.org/browse/MEAR-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephane Nicoll closed MEAR-37.
-------------------------------

    Resolution: Fixed

There is no easy solution for what you're trying to achieve. This parameter already uses an expression (it reads the value from the pom) and nothing exists to update this on the command line.

If you have other parameters that you'd like exposed in the command line, please list them and reopen the issue.

> Parameters ignored when set on the command line
> -----------------------------------------------
>
>                 Key: MEAR-37
>                 URL: http://jira.codehaus.org/browse/MEAR-37
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>         Environment: Win XP
>            Reporter: Shelley B
>
> Several maven2 ear plugin configuration options seem to be ignored when set through the command line.  The parameters outputDirectory, earName, workDirectory, and applicationXml are honored when set in the POM, but ignored when set on the command line.
> For example:
>   After setting the workDirectory in the POM, and executing "mvn ear:ear," the outputDirectory is "test" as expected.
>          <configuration>
>                   <outputDirectory>test</outputDirectory>
>          </configuration>
>   Other configuration options are honored as expected as well.
>   However, when executing the ear goal from the command line, passing the configuration options using their expressions, the parameters are ignored.  After executing the following:
>          mvn clean ear:ear -Dproject.build.directory=test
>   The outputDirectory remains the default "target," or whatever has been defined in the POM.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira