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

Robert Scholte closed MSQL-65.
------------------------------

    Resolution: Not A Bug

Like Dan says, this is the way every Maven plugin works. It's *not* possible to 
run a specific execution-block by id from commandline.
If you don't want to bind the sql-maven-plugin to a phase and need to specify a 
username/password, put it in the global configuration of the plugin or use the 
expressions as 
[documented|http://mojo.codehaus.org/sql-maven-plugin/execute-mojo.html#password].
{{mvn sql:execute -Dusername=johndoe -Dpassword=s3cr3t}}

> username and password configuration is ignored if configured in execution and 
> triggered by sql:execute
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MSQL-65
>                 URL: http://jira.codehaus.org/browse/MSQL-65
>             Project: Maven 2.x SQL Plugin
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: SUN JDK 1.6 u20 on Windows 7 (64bit) and Linux (Ubuntu 
> 10.10, 32bit)
> Maven 2.1.1
>            Reporter: H.-C. Gürsoy
>
> Description:
> - the plugin has multiple executions
> - the username and password is configured for each execution individual in 
> it's configuration
> - they are not bound to a phase
> - the execution is triggered by mvn sql:execute
> In this case, the username / password configurations in the executions are 
> ignored!
> This is not that I would expect.
> If I configure the username / password in the global configuration of the 
> plugin, these are used.
> If I bound the executions to a phase (the same or different), the username / 
> password configurations in the executions are not ignored, then I trigger the 
> plugin through the lifecycle (e.g. bound all executions to install, executing 
> "mvn clean install").
> I've not tested all, but for example the url configuration behaves as I would 
> expect (configurations in the executions are used).

-- 
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



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to