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

        

Reply via email to