You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicolas De Loof <ni...@capgemini.com> on 2006/03/30 13:02:25 UTC
[m2] How to use deploy:deploy-file to manage my private repo ?
Hello,
I've got to add some private / restricted artifacts in my corporate
repo, but I'd like to avoid creating all the required directories.
install:intall-file can be used to put an artifact in local repo. Can I
use deploy:deploy-file to do the same in my corporate repo ?
How to set the remote repository path (I cannot find an entry for this
in setting.xml) ?
Nico.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] How to use deploy:deploy-file to manage my private repo ?
Posted by Martin Cooper <ma...@apache.org>.
On 3/30/06, Nicolas De Loof <ni...@capgemini.com> wrote:
>
>
> Hello,
>
> I've got to add some private / restricted artifacts in my corporate
> repo, but I'd like to avoid creating all the required directories.
>
> install:intall-file can be used to put an artifact in local repo. Can I
> use deploy:deploy-file to do the same in my corporate repo ?
Yep. See:
http://maven.apache.org/guides/mini/guide-deploying-3rd-party-jars.html
You'll also need to add a <server> entry to your settings.xml. See:
http://maven.apache.org/maven-settings/settings.html#class_server
How to set the remote repository path (I cannot find an entry for this
> in setting.xml) ?
That's specified in the 'url' value to deploy:deploy-file.
--
Martin Cooper
Nico.
>
>
>
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute,
> or use this message or any part thereof. If you receive this message in
> error, please notify the sender immediately and delete all copies of this
> message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: [m2] How to use deploy:deploy-file to manage my private repo
?
Posted by Thorsten Heit <th...@xtramind.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Nico,
> install:intall-file can be used to put an artifact in local repo. Can I
> use deploy:deploy-file to do the same in my corporate repo ?
Yes.
> How to set the remote repository path (I cannot find an entry for this
> in setting.xml) ?
It depends on how you access your remote repository :-)
In our company I've set up a local maven proxy which is used to
distribute jars from ibiblio.org as well as our internal ones and to
which I have direct file access. To deploy a new jar to the proxy I'm
using the following command line:
$ mvn deploy:deploy-file
-DrepositoryId=bender
-Durl=file://H:/maven-proxy/target/repo-local
-Dpackaging=jar
-DgroupId=<groupId>
-DartifactId=<artifactId>
-Dversion=<version>
-Dfile=<path_to_jar>
My settings.xml:
<settings>
...
<servers>
<server>
<id>bender</id>
</server>
</servers>
</settings>
HTH
Thorsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
iD8DBQFEK/kVQvObkgCcDe0RAqGPAKCyav64wUa9pbFyg+b2ES9iOLVM0wCgvt+8
EQqvCqZkxANK9BwCw9Yj+qs=
=QO/i
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org