You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Romain Rouvoy (JIRA)" <ji...@codehaus.org> on 2006/01/24 09:07:06 UTC

[jira] Created: (MDEPLOY-21) Deploying an artifact from the local directory failed if the associated pom file is not renamed

Deploying an artifact from the local directory failed if the associated pom file is not renamed
-----------------------------------------------------------------------------------------------

         Key: MDEPLOY-21
         URL: http://jira.codehaus.org/browse/MDEPLOY-21
     Project: Maven 2.x Deploy Plugin
        Type: Bug

    Versions: 2.0    
 Environment: PowerBook G4, Mac OS X 10.4.4, J2SDK1.5, Maven 2.0.2
    Reporter: Romain Rouvoy


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 :'-(
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 :-(

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


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


[jira] Closed: (MDEPLOY-21) Deploying an artifact from the local directory failed if the associated pom file is not renamed

Posted by "Allan Ramirez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-21?page=all ]
     
Allan Ramirez closed MDEPLOY-21:
--------------------------------

    Resolution: Fixed

Fixed in SVN. This time its for sure :)

> Deploying an artifact from the local directory failed if the associated pom file is not renamed
> -----------------------------------------------------------------------------------------------
>
>          Key: MDEPLOY-21
>          URL: http://jira.codehaus.org/browse/MDEPLOY-21
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: PowerBook G4, Mac OS X 10.4.4, J2SDK1.5, Maven 2.0.2
>     Reporter: Romain Rouvoy
>     Assignee: Allan Ramirez

>
> Original Estimate: 5 hours
>         Remaining: 5 hours
>
> 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 :'-(
> 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 :-(

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


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


[jira] Commented: (MDEPLOY-21) Deploying an artifact from the local directory failed if the associated pom file is not renamed

Posted by "Allan Ramirez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-21?page=comments#action_57095 ] 

Allan Ramirez commented on MDEPLOY-21:
--------------------------------------

Did you execute your command with the url parameter as "..." or you just hide your real url? I can only replicate the issue when there is no protocol provided in the url parameter.

> Deploying an artifact from the local directory failed if the associated pom file is not renamed
> -----------------------------------------------------------------------------------------------
>
>          Key: MDEPLOY-21
>          URL: http://jira.codehaus.org/browse/MDEPLOY-21
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: PowerBook G4, Mac OS X 10.4.4, J2SDK1.5, Maven 2.0.2
>     Reporter: Romain Rouvoy

>
>
> 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 :'-(
> 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 :-(

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


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


[jira] Updated: (MDEPLOY-21) Deploying an artifact from the local directory failed if the associated pom file is not renamed

Posted by "Allan Ramirez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-21?page=all ]

Allan Ramirez updated MDEPLOY-21:
---------------------------------

    Remaining Estimate: 5 hours
     Original Estimate: 5 hours

> Deploying an artifact from the local directory failed if the associated pom file is not renamed
> -----------------------------------------------------------------------------------------------
>
>          Key: MDEPLOY-21
>          URL: http://jira.codehaus.org/browse/MDEPLOY-21
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: PowerBook G4, Mac OS X 10.4.4, J2SDK1.5, Maven 2.0.2
>     Reporter: Romain Rouvoy
>     Assignee: Allan Ramirez

>
> Original Estimate: 5 hours
>         Remaining: 5 hours
>
> 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 :'-(
> 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 :-(

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


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


[jira] Reopened: (MDEPLOY-21) Deploying an artifact from the local directory failed if the associated pom file is not renamed

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-21?page=all ]
     
John Casey reopened MDEPLOY-21:
-------------------------------


> Deploying an artifact from the local directory failed if the associated pom file is not renamed
> -----------------------------------------------------------------------------------------------
>
>          Key: MDEPLOY-21
>          URL: http://jira.codehaus.org/browse/MDEPLOY-21
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: PowerBook G4, Mac OS X 10.4.4, J2SDK1.5, Maven 2.0.2
>     Reporter: Romain Rouvoy
>     Assignee: Allan Ramirez
>      Fix For: 2.2

>
> Original Estimate: 5 hours
>         Remaining: 5 hours
>
> 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 :'-(
> 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 :-(

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


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


[jira] Commented: (MDEPLOY-21) Deploying an artifact from the local directory failed if the associated pom file is not renamed

Posted by "Jerome Lacoste (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-21?page=comments#action_57234 ] 

Jerome Lacoste commented on MDEPLOY-21:
---------------------------------------

Is deployment from the local repository something that the plugin want to support? That may be border line, because of the potential side effects involved.

I am not sure of why the file is deleted. To easily reproduce the issue:

cd ~/.m2/repository/junit/junit/3.8.1/
mvn -X deploy:deploy-file -DpomFile=junit-3.8.1.pom  -Dfile=junit-3.8.1.jar -Durl=file:///tmp/ -DrepositoryId=dummy


> Deploying an artifact from the local directory failed if the associated pom file is not renamed
> -----------------------------------------------------------------------------------------------
>
>          Key: MDEPLOY-21
>          URL: http://jira.codehaus.org/browse/MDEPLOY-21
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: PowerBook G4, Mac OS X 10.4.4, J2SDK1.5, Maven 2.0.2
>     Reporter: Romain Rouvoy
>     Assignee: Allan Ramirez

>
>
> 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 :'-(
> 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 :-(

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


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


[jira] Commented: (MDEPLOY-21) Deploying an artifact from the local directory failed if the associated pom file is not renamed

Posted by "Jerome Lacoste (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-21?page=comments#action_57235 ] 

Jerome Lacoste commented on MDEPLOY-21:
---------------------------------------

I've just noticed that if you use -DgeneratePom=false, it won't generate your pom on the server, but it won't delete it locally. That maybe a work-around for you if you insist deploying from your local repository :)


> Deploying an artifact from the local directory failed if the associated pom file is not renamed
> -----------------------------------------------------------------------------------------------
>
>          Key: MDEPLOY-21
>          URL: http://jira.codehaus.org/browse/MDEPLOY-21
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: PowerBook G4, Mac OS X 10.4.4, J2SDK1.5, Maven 2.0.2
>     Reporter: Romain Rouvoy
>     Assignee: Allan Ramirez

>
>
> 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 :'-(
> 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 :-(

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


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


[jira] Reopened: (MDEPLOY-21) Deploying an artifact from the local directory failed if the associated pom file is not renamed

Posted by "Romain Rouvoy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-21?page=all ]
     
Romain Rouvoy reopened MDEPLOY-21:
----------------------------------


The problem did not come from the url parameter because you can see in the trace "Uploading: scp://forge.objectweb.org/var/lib/gforge/chroot/home/groups/maven/htdocs/maven2/org/objectweb/fractal/fractal/2.0.1/" (the real value of url).

The problem is that the fractal-2.0.1.pom used to describe the artifact is first deleted from the local filesytem before being uploaded to the maven repository. Therefore the pom uploading fails given that the file is no more available.

> Deploying an artifact from the local directory failed if the associated pom file is not renamed
> -----------------------------------------------------------------------------------------------
>
>          Key: MDEPLOY-21
>          URL: http://jira.codehaus.org/browse/MDEPLOY-21
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: PowerBook G4, Mac OS X 10.4.4, J2SDK1.5, Maven 2.0.2
>     Reporter: Romain Rouvoy
>     Assignee: Allan Ramirez

>
>
> 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 :'-(
> 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 :-(

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


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


[jira] Closed: (MDEPLOY-21) Deploying an artifact from the local directory failed if the associated pom file is not renamed

Posted by "Allan Ramirez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-21?page=all ]
     
Allan Ramirez closed MDEPLOY-21:
--------------------------------

     Assign To: Allan Ramirez
    Resolution: Fixed

Fixed in SVN. I added the validation if there is no protocol provided for the url.

> Deploying an artifact from the local directory failed if the associated pom file is not renamed
> -----------------------------------------------------------------------------------------------
>
>          Key: MDEPLOY-21
>          URL: http://jira.codehaus.org/browse/MDEPLOY-21
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: PowerBook G4, Mac OS X 10.4.4, J2SDK1.5, Maven 2.0.2
>     Reporter: Romain Rouvoy
>     Assignee: Allan Ramirez

>
>
> 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 :'-(
> 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 :-(

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


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


[jira] Closed: (MDEPLOY-21) Deploying an artifact from the local directory failed if the associated pom file is not renamed

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-21?page=all ]
     
John Casey closed MDEPLOY-21:
-----------------------------

     Resolution: Fixed
    Fix Version: 2.2

> Deploying an artifact from the local directory failed if the associated pom file is not renamed
> -----------------------------------------------------------------------------------------------
>
>          Key: MDEPLOY-21
>          URL: http://jira.codehaus.org/browse/MDEPLOY-21
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: PowerBook G4, Mac OS X 10.4.4, J2SDK1.5, Maven 2.0.2
>     Reporter: Romain Rouvoy
>     Assignee: Allan Ramirez
>      Fix For: 2.2

>
> Original Estimate: 5 hours
>         Remaining: 5 hours
>
> 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 :'-(
> 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 :-(

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


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