I think so too. Please file a jira issue for this.
Thanks
-allan
Brian E. Fox wrote:
That seems like a bug.
-----Original Message-----
From: Romain Rouvoy [mailto:[EMAIL PROTECTED]
Sent: Friday, January 20, 2006 11:31 AM
To: Maven Users List
Subject: Re: [m2] deploy:deploy-file deletes my local pom file before uploading
it ...
Ok, I found the solution
In fact I can not use the default pom file generated by install-file to deploy.
I need to rename it before deploying ... otherwise the rewriting of the pom
file will failed :-(
Sorry for the noise :-/
Romain
Le 20 janv. 06 à 17:22, Romain Rouvoy a écrit :
Hello,
I'm trying to deploy a 3rd party jar using the deploy:deploy-file mvn
command:
mvn deploy:deploy-file -Dfile=fractal-2.0.1.jar -
DpomFile=fractal-2.0.1.pom -Durl=... -DrepositoryId=objectweb-release
These files have been previously successfully copied to my local
repository using a mvn install:install-file command. I execute the
deploy command from the local repository.
But I obdtain the following error:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO]
----------------------------------------------------------------------
------
[INFO] Building Maven Default Project
[INFO] task-segment: [deploy:deploy-file] (aggregator-style)
[INFO]
----------------------------------------------------------------------
------
[INFO] [deploy:deploy-file]
Uploading: scp://forge.objectweb.org/var/lib/gforge/chroot/home/
groups/maven/htdocs/maven2/org/objectweb/fractal/fractal/2.0.1/
fractal-2.0.1.jar
11K uploaded
[INFO] Retrieving previous metadata from objectweb-release [INFO]
----------------------------------------------------------------------
------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------
------
[INFO] Error installing artifact's metadata: Error installing
metadata: Error rewriting POM
/Users/rouvoy/.m2/repository/org/objectweb/fractal/fractal/2.0.1/
fractal-2.0.1.pom (No such file or directory) [INFO]
----------------------------------------------------------------------
------
[INFO] For more information, run Maven with the -e switch [INFO]
----------------------------------------------------------------------
------
[INFO] Total time: 7 seconds
[INFO] Finished at: Fri Jan 20 17:09:51 CET 2006 [INFO] Final Memory:
3M/5M [INFO]
----------------------------------------------------------------------
------
And my local pom file has been deleted by the mvn command :'-(
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]