It's very simply :-)
This the url of my repository:
http://192.168.25.217:8089/pub/local
this is the url I use to make scp (not scpexe):
scp://192.168.25.217/sw/alive/instance/jetty/docroot/repository

and this is the ant task (im using antlib) I use to deploy:
<target name="deploy" depends="initTaskDefs, create-jar" >
  <artifact:install-provider artifactId="wagon-ssh" version="1.0-alpha-5"/> 
  <artifact:deploy file="jar/${jar.name}">
    <remoteRepository id="internal.repository" url="
scp://192.168.25.217/sw/alive/instance/jetty/docroot/repository" >
      <authentication username="${repo.deploy.user}"
password="${repo.deploy.password}" />
    </remoteRepository>         
    <pom refid="maven.project"/>
   </artifact:deploy>
</target>

In this way I see (and eventually download) my artifact from
http://192.168.25.217:8089/pub/local. 

In the next I think to migrate to pure m2 (I don't like antlib) and I'll
configure pom.xml in a such way like above.
I'use settings.xml for user and password (til now).

I hope I help (a bit) you

Luca

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: martedì 14 febbraio 2006 22.31
To: Maven Users List
Subject: RE: How can I store artifacts in our remote repository?







hi Luca, I'm very interested in your use of a docroot.

we also have a webroot defined under tomcat with an absolute path to the M2
repository.
like   /m2-repo  with a path of  /absolute/path/to/m2/repository

I've gotten ftp and scpexe to work for deploys, but I haven't been able to
deploy using the webroot.
The docroot url I tried was  <url>xxx://server:port/m2-repo</url>

I've gotten deploy to work with ftp and scpexe using
<url>xxx://server/absolute/path/to/repository</url>

Can you share a bit more about how you used the docroot?

We're using apache-tomcat-5.5.12

when you mentioned 'scp' did you mean scp or scpexe?

which wagon and version did you use in the extension?

did you define the docroot anywhere else in maven?

was there anything in settings.xml or the pom that was needed to make the
docroot url work?

Thank you for any help you can provide.
Tom



"Luca Gmail" <[EMAIL PROTECTED]> wrote on 02/14/2006 06:23:09 AM:

>
> This is the solution im using:
> I ve a web server I use as reomote (internal) repository. Asscociated
with
> the url referencing the remote repo there is a docroot.
> I use the deploy goal to copy (via scp) my artifact to the docroot.
>
>
> -----Original Message-----
> From: ravi kumar [mailto:[EMAIL PROTECTED]
> Sent: martedì 14 febbraio 2006 10.03
> To: commits; dev; dev; dev; dion; ggolden; Maven Help; Maven Help; users
> Subject: How can I store artifacts in our remote repository?
>
>
>   Hi,
>            I am Ravikumar. I came to get help form you. That is :
>
>   How can I store artifacts in our remote repository?
>
>   Could you please give the solution for this? I am waiting for you
> solution?.
>
>   Thanks and Regards,
>   Ravikumar.M
>
>
>
> ---------------------------------
>  Yahoo! Mail
>  Use Photomail to share photos without annoying attachments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>





This message is intended for the recipient only and is not meant to be
forwarded or distributed in any other format. This communication is for
informational purposes only.  It is not intended as an offer or solicitation
for the purchase or sale of any financial instrument, or security, or as an
official confirmation of any transaction.  Putnam does not accept purchase
or redemptions of securities, instructions, or authorizations that are sent
via e-mail.   All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change without
notice.  Any comments or statements made herein do not necessarily reflect
those of Putnam, LLC (DBA Putnam Investments) and its subsidiaries and
affiliates.  If you are not the intended recipient of this e-mail, please
delete the e-mail.

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

Reply via email to