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

Benjamin Bentmann closed MINSTALL-67.
-------------------------------------

      Assignee: Benjamin Bentmann
    Resolution: Not A Bug

It seems the equal sign (=) is a special/reserved character in Powershell so 
one has to handle it with care. Putting quotes around the arg, i.e.
{noformat}
mvn .... "-Dversion=4.0.0"
{noformat}
works here.

> Maven does not recognize the version number provided for install-file in 
> Windows CMD or PowerShell
> --------------------------------------------------------------------------------------------------
>
>                 Key: MINSTALL-67
>                 URL: http://jira.codehaus.org/browse/MINSTALL-67
>             Project: Maven 2.x Install Plugin
>          Issue Type: Bug
>          Components: install:install-file
>    Affects Versions: 2.2
>         Environment: Windows 7, Windows Powershell, Windows CMD
>            Reporter: Sascha Fröhlich
>            Assignee: Benjamin Bentmann
>
> When I want to install a 3rd-Party-Library with the following command:
> mvn install:install-file 
> -Dfile=C:/Users/sascha/Java/workspace/TEAMUPEngine/lib/iaik_cms.jar 
> -DgroupId=iaik -DartifactId=cms -Dversion=4.0.1 -Dpackaging=jar
> it fails with:
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'install'.
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Invalid task '.0.1': you must specify a valid lifecycle phase, or a 
> goal
> in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Fri Jul 17 12:42:07 CEST 2009
> [INFO] Final Memory: 3M/38M
> [INFO] 
> ------------------------------------------------------------------------
> I tried this on Windows CMD and Windows PowerShell using the mvn and mvn.bat 
> command, but it does only work with -Dversion=4, without the dot as a 
> delimiter.
> Hope this can be fixed.

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


Reply via email to