maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Lundberg <denn...@apache.org>
Subject Re: Help on using -DpomFile option in "mvn deploy:deploy-file" command
Date Thu, 16 Apr 2009 22:44:50 GMT
You can find the documentation for the parameters of this plugin goal at
this URL:

http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

You need to supply both the "url" and "file" parameters.

Surendra.Naidu@VerizonWireless.com wrote:
> Hi,
> 
> While using the upload to nexus repository, used the following command
> and it worked fine:
> 	mvn -e deploy:deploy-file -DfilePath=testDir -DartifactId=test
> -Dpackaging.type=ear
> In this case the pom.xml containg the repository details is in the same
> directory.
> 
> To make it more generic I tried to run this from another directory and
> specified the pom.xml using the -DpomFile option
> The command I used was:
> 	mvn -e deploy:deploy-file -DpomFile=maven/pom.xml
> -DfilePath=testDir -DartifactId=test -Dpackaging.type=ear
> 
> Basically I moved the pom.xml to another location. However this fails
> with the following message:
> 
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] One or more required plugin parameters are invalid/missing for
> 'deploy:deploy-file'
> 
> [0] Inside the definition for plugin 'maven-deploy-plugin' specify the
> following:
> 
> <configuration>
>   ...
>   <file>VALUE</file>
> </configuration>
> 
> -OR-
> 
> on the command line, specify: '-Dfile=VALUE'
> 
> [1] Inside the definition for plugin 'maven-deploy-plugin' specify the
> following:
> 
> <configuration>
>   ...
>   <url>VALUE</url>
> </configuration>
> 
> -OR-
> 
> on the command line, specify: '-Durl=VALUE'
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error
> configuring: org.apache.maven.plugins:maven-deploy-plugin. Reason:
> Invalid or missing parameters: [Mojo parameter [name: 'file'; alias:
> 'null'], Mojo parameter [name: 'url'; alias: 'null']] for mojo:
> org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy-file
> 
> 
> Greatly appreciate any help in resolving this issue
> 
> Thanks
> 
> Surendra
> 
> 
> The information contained in this message and any attachment may be
> proprietary, confidential, and privileged or subject to the work
> product doctrine and thus protected from disclosure.  If the reader
> of this message is not the intended recipient, or an employee or
> agent responsible for delivering this message to the intended
> recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited.
> If you have received this communication in error, please notify me
> immediately by replying to this message and deleting it and all
> copies and backups thereof.  Thank you.
> 
> 


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message