Using Nexus or Artifactory is making it as easy as possible. They come
bundled with a web container, so you only have to unpack and run.

/Anders

On Mon, Sep 21, 2009 at 20:39, Thomas P <bol...@gmx.net> wrote:

>
> Hello NG,
>
> I plan to create a simple private maven repository from some of my libs. I
> googled for instructions of how to create an repository but only found
> guidance using repository manager like nexus or similar.
>
> But I want to make it as easy as possible.
>
> I have access to an webserver via sftp.
>
> So I create a <distributionManagement><repositor>... in my pom.xml and call
> maven with
> mvn deploy -Duser.name=<sftp-user>
>
> After building the project maven asks me for the password and uploads the
> Jar to the server.
> Then it asks me again for the password to handle the metadata end ends with
> an exception
>
> ...
> [INFO] [deploy:deploy {execution: default-deploy}]
> Password for ...
> Uploading: ...1.0.0.jar
> 63K uploaded  (...-1.0.0.jar)
> [INFO] Uploading project information for ... 1.0.0
> Password for ...
> [INFO] Retrieving previous metadata from private-repo
> Password for ...
> INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error installing artifact's metadata: repository metadata for: '...'
> could not be retrieved from repository: ... due to an error: Error occurred
> while downloading '.../maven-metadata.xml' from the remote
> repository:Repository[...]: syserr: No such file or directory, file:
> ../maven-metadata.xml
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 24 seconds
> [INFO] Finished at: Mon Sep 14 19:49:11 GMT 2009
> [INFO] Final Memory: 21M/38M
> [INFO]
> ------------------------------------------------------------------------
>
> So what went wrong?
> How do I create this maven-metadata.xml and how do I include this file into
> my deploy?
> And can I run my repository in this way (uploading via sftp, downloading
> using the webserver)?
>
> After creating an initial version of the maven-metadata.xml manually the
> deploy worked. But IMO this is no solution to edit this file manually every
> time a new artifact is deployed into the repository.
>
>
> Thanks for your help,
>
> Cheers,
> Thomas
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Error-during-deploy-in-private-repository-tp25530426p25530426.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to