Great! That's just what I need. Now I ditch the profile from my
settings.xml.  

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
ben short
Sent: 05 June 2006 23:10
To: Maven Users List
Subject: Re: [m2] mvn deploy:deploy-file

Adam,

You can use the deploy:deploy-file to deploy via scp. use url
scp://url.to.repo

Then in your settings.xml you specify a server element that has the
usrname and password to use. eg:

<server>
        <id>internal</id>
        <username>mvn</username>
        <password>mvn</password>
    </server>

Ben


On 6/5/06, Adam Hardy <[EMAIL PROTECTED]> wrote:
> It's not on an ftp server because I'm serving it using maven-proxy.
People have to scp to the linux box and add it all manually.
>
>
>
> Kathryn Huxtable on 05/06/06 18:47, wrote:
> > So can't you add the internal repository anyway for deployment
purposes? -K
> >
> >
> > On 6/5/06 12:38 PM, "Adam Hardy" <[EMAIL PROTECTED]> wrote:
> >
> >> I have a question about mvn deploy:deploy-file. I would like to be
able
> >> to specify the repository URL on its own, because I am using
maven-proxy
> >> as a method of serving our company repository to the team.
Therefore I
> >> don't need an entry in the settings.xml.
> >>
> >> If I don't specify the repository in my settings.xml though, maven
> >> complains and demands that I give the id from the settings.xml.
> >>
> >>
> >>  mvn deploy:deploy-file -DgroupId=com.mycompany.cortex
> >>   -DartifactId=soa-services
> >>   -Dfile=target/soa_services.jar
> >>   -DgeneratePom=true
> >>   -Dpackaging=jar
> >>   -Durl=file:///ctxtools/jar-repository/company-repo/
> >>   -DrepositoryId=company
> >>   -Dversion=1.0
>
>
> ---------------------------------------------------------------------
> 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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to