You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Janne Kario <ka...@mermit.fi> on 2003/10/25 23:44:03 UTC
Deploying artifacts to remote repository
Hi,
How do I deploy (not install) artifacts to remote repository that
resides on the local filesystem.
Doing jar:deploy gives me an error message like below.
maven.repo.central property expects the hostname of the remote
repository. maven.repo.list property of the artifact plugin accepts
file:// urls but apparently the artifact plugin is not a plugin but a
helper tag for jar/war/ear plugins and thus cannot be used directly.
We have a setup where we have multiple developers on a group of
machines. Each of the developers have their own local repository under
$HOME and I'm trying to setup a remote repository onto a NFS filesystem
to which developers deploy their artifacts.
Is this approach sound? Should I instead setup one local repository
shared by all developers? How do I handle the absence of remote
repository (SNAPSHOT dependencies are always downloaded from the remote
rep.).
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT
BUILD FAILED
File...... file:/home/kario/.maven/plugins/maven-jar-plugin-1.3/
Element... maven:user-check
Line...... 166
Column.... 49
+------------------------------------------------------------------
| ERROR!
|
| You must specify a maven username in order to deploy the site!
| You can either set this property in your ~/build.properties
| or specify one on the command line:
|
| maven -Dmaven.username=${user.name}
[goal]+------------------------------------------------------------------
Total time: 8 seconds
Finished at: Sun Oct 26 00:23:25 EEST 2003
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Deploying artifacts to remote repository
Posted by Vincent Tence <Vi...@gemplus.com>.
Hi Janne,
We recently setup a corporate environment doing this:
- Maven proxy provides the corporate remote repository (it will download
external jars on demand from ibiblio)
- Developers use maven proxy as their remote repo
- We have a ftp server on the maven proxy machine to upload jars to maven
proxy repository cache
- We use the artifact plugin ability to deploy jars by ftp to deploy our
jars to the proxy repository
If that's what you're looking for, I can give more details. There might be
other approaches to solving the problem though.
- Vincent
> -----Original Message-----
> From: Janne Kario [mailto:kario@mermit.fi]
> Sent: Saturday, October 25, 2003 5:44 PM
> To: users@maven.apache.org
> Subject: Deploying artifacts to remote repository
>
>
> Hi,
>
> How do I deploy (not install) artifacts to remote repository that
> resides on the local filesystem.
>
> Doing jar:deploy gives me an error message like below.
>
> maven.repo.central property expects the hostname of the remote
> repository. maven.repo.list property of the artifact plugin accepts
> file:// urls but apparently the artifact plugin is not a plugin but a
> helper tag for jar/war/ear plugins and thus cannot be used directly.
>
> We have a setup where we have multiple developers on a group of
> machines. Each of the developers have their own local repository under
> $HOME and I'm trying to setup a remote repository onto a NFS
> filesystem
> to which developers deploy their artifacts.
>
> Is this approach sound? Should I instead setup one local repository
> shared by all developers? How do I handle the absence of remote
> repository (SNAPSHOT dependencies are always downloaded from
> the remote
> rep.).
>
>
>
> __ __
> | \/ |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
> |_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT
>
>
> BUILD FAILED
> File...... file:/home/kario/.maven/plugins/maven-jar-plugin-1.3/
> Element... maven:user-check
> Line...... 166
> Column.... 49
> +------------------------------------------------------------------
> | ERROR!
> |
> | You must specify a maven username in order to deploy the site!
> | You can either set this property in your ~/build.properties
> | or specify one on the command line:
> |
> | maven -Dmaven.username=${user.name}
> [goal]+-------------------------------------------------------
> -----------
> Total time: 8 seconds
> Finished at: Sun Oct 26 00:23:25 EEST 2003
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org