You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Daniel Wong (JIRA)" <ji...@codehaus.org> on 2009/02/22 08:02:19 UTC

[jira] Closed: (MDEPLOY-96) Invalid Task when calling deploy:deploy-file

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

Daniel Wong closed MDEPLOY-96.
------------------------------

    Resolution: Not A Bug

Sorry.. this was found to be an issue with my environment - my setenv script was stripping the '=' from the commandline

> Invalid Task when calling deploy:deploy-file
> --------------------------------------------
>
>                 Key: MDEPLOY-96
>                 URL: http://jira.codehaus.org/browse/MDEPLOY-96
>             Project: Maven 2.x Deploy Plugin
>          Issue Type: Bug
>    Affects Versions: 2.4
>         Environment: Windows, JDK 1.6.0_05, M2 2.0.10
>            Reporter: Daniel Wong
>         Attachments: deploy.txt
>
>
> When calling deploy:deploy-file, it does not recognise my -D parameters and indicates my specified value as an invalid task.
> mvn deploy:deploy-file -DrepositoryId=dd-repo -Durl=http://localhost:8080/artifactory/libs-release-local -Dfile=target\TestApp3-1.0.jar
> Invalid task 'dd-repo': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
> The artifact is successfully uploaded when specified in <distributionManagement> 
> ...
>   <distributionManagement>
>     <repository>
>       <id>dd-repo</id>
>       <name>Dimension Data Repo</name>
>       <url>http://localhost:8080/artifactory/libs-releases-local</url>
>     </repository>
>   </distributionManagement>  
> ...
> The settings.xml is also set correctly
>     <server>
>       <id>dd-repo</id>
>       <username>admin</username>
>       <password>******</password>
>     </server>
> Attached is output.

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