Re: deploy:deploy-file plugin

2010-10-26 Thread Gerard Weatherby
Yes, absolutely works like a charm. ..and it was in the documentation. 
Just couldn't find it (tree, forest).

Thanks.

On 10/25/10 3:28 PM, Anders Hammar wrote:

Make sure to have the repositoryId param specified:
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html#repositoryId
Define the credentials matching this id in your settings.xml.

/Anders

On Mon, Oct 25, 2010 at 15:04, Gerard Weatherbywrote:


I'm trying to use the Maven deploy plugin to upload an additional file to
our online public repository.

When I specify
sftp://gerardw,conn...@frs.sourceforge.net:
/home/groups/c/co/connjur/htdocs/m2_repo

in the distributionManagement section of my pm, maven reads the necessary
authentication info from settings.xml and everything works great.

When I attempt the same specification in the maven-deploy-plugin
configuration, it appears to ignore the user name and tries to login into
frs.sourceforge.net using my local username.

Is their a way to specify a user name to the maven deploy plugin?


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: deploy:deploy-file plugin

2010-10-25 Thread Anders Hammar
Make sure to have the repositoryId param specified:
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html#repositoryId
Define the credentials matching this id in your settings.xml.

/Anders

On Mon, Oct 25, 2010 at 15:04, Gerard Weatherby wrote:

> I'm trying to use the Maven deploy plugin to upload an additional file to
> our online public repository.
>
> When I specify
> sftp://gerardw,conn...@frs.sourceforge.net:
> /home/groups/c/co/connjur/htdocs/m2_repo
>
> in the distributionManagement section of my pm, maven reads the necessary
> authentication info from settings.xml and everything works great.
>
> When I attempt the same specification in the maven-deploy-plugin
> configuration, it appears to ignore the user name and tries to login into
> frs.sourceforge.net using my local username.
>
> Is their a way to specify a user name to the maven deploy plugin?
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: deploy:deploy-file does not update local repository fully

2010-08-27 Thread Isaac
Thank you very much!

I choose to use mvn install:install-file and it works!

I tried build with -U, It didn't work,because the metadata file in local
repo was updated. the maven client compared the md5sum in it with the remote
server, and found them matched. then didn't download the correct file.

I will try turn off uniqueVersion later :)

On Fri, Aug 27, 2010 at 4:59 PM, Stephen Connolly <
stephen.alan.conno...@gmail.com> wrote:

> deploy:deploy-file is deploying a timestamped snapshot, to update the
> non-timestamped -SNAPSHOT you have three choices:
>
> 1. turn off uniqueVersion
> 2. run install:install-file at the same time, e.g. mvn install:install-file
> deploy:deploy-file -D.
> 3. run the next build with -U
>
> Not really a bug (though I am suprised that deploy:deploy-file touches the
> local repo, it makes sense to save your bandwidth, as what you upload
> should
> be the same as what you might download)
>
> -Stephen
>
> On 27 August 2010 09:11, Isaac  wrote:
>
> > deploy:deploy-file does not update local repository fully.
> > Let me show it to us, and ask for help too :)
> >
> > step 1. delete isaac_test** file in local repository
> > step 2. use mvn compile command to update artifact(i get a project
> dependen
> > on isaac_test), list local repository directory below:
> > 2010-08-27  15:56   221,105
> isaac_test-1.0.0-20100827.073702-45.jar
> > 2010-08-27  15:5640
> > isaac_test-1.0.0-20100827.073702-45.jar.sha1
> >
> > 2010-08-27  15:56   400
> isaac_test-1.0.0-20100827.073702-45.pom
> > 2010-08-27  15:5640
> > isaac_test-1.0.0-20100827.073702-45.pom.sha1
> >
> > 2010-08-27  15:56   221,105 isaac_test-1.0.0-SNAPSHOT.jar
> > 2010-08-27  15:56   400 isaac_test-1.0.0-SNAPSHOT.pom
> > 2010-08-27  15:56   355 maven-metadata-mqq.xml
> > 2010-08-27  15:5640 maven-metadata-mqq.xml.sha1
> >
> > step 3. upate the jar,then use command(i deloy it *twice *with different
> > file ):
> > mvn org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file
> > -Dfile=isaac_test-1.0.0-SNAPSHOT.jar  -Durl=dav:http://xxx/repository/xx
> > -DrepositoryId=xx  >-DpomFile=isaac_test-1.0.0-SNAPSHOT.pom.xml
> > to deploy it to the server.
> >
> > step 4.list local repositoy:
> > 2010-08-27  15:56   221,105
> isaac_test-1.0.0-20100827.073702-45.jar
> > 2010-08-27  15:5640
> > isaac_test-1.0.0-20100827.073702-45.jar.sha1
> >
> > 2010-08-27  15:56   400
> isaac_test-1.0.0-20100827.073702-45.pom
> > 2010-08-27  15:5640
> > isaac_test-1.0.0-20100827.073702-45.pom.sha1
> >
> > 2010-08-27  16:01   221,105
> isaac_test-1.0.0-20100827.080157-46.jar
> > 2010-08-27  16:01   400
> isaac_test-1.0.0-20100827.080157-46.pom
> > 2010-08-27  16:03   137,286
> isaac_test-1.0.0-20100827.080352-47.jar
> > 2010-08-27  16:03   400
> isaac_test-1.0.0-20100827.080352-47.pom
> > 2010-08-27  15:56   221,105 isaac_test-1.0.0-SNAPSHOT.jar
> > 2010-08-27  15:56   400 isaac_test-1.0.0-SNAPSHOT.pom
> > 2010-08-27  16:03   355 maven-metadata-mqq.xml
> > 2010-08-27  16:0340 maven-metadata-mqq.xml.sha1
> >
> > finally,compile two list of the local repository. I found the
> > isaac_test-1.0.0-SNAPSHOT.jar
> > DOES NOTE UPDATED! And then use mvn dependency:copy-dependency to copy
> the
> > newest jar, I get an old one.
> >
> > This problem played me both on windows xp and SUSE linux.
> >
>


Re: deploy:deploy-file does not update local repository fully

2010-08-27 Thread Stephen Connolly
deploy:deploy-file is deploying a timestamped snapshot, to update the
non-timestamped -SNAPSHOT you have three choices:

1. turn off uniqueVersion
2. run install:install-file at the same time, e.g. mvn install:install-file
deploy:deploy-file -D.
3. run the next build with -U

Not really a bug (though I am suprised that deploy:deploy-file touches the
local repo, it makes sense to save your bandwidth, as what you upload should
be the same as what you might download)

-Stephen

On 27 August 2010 09:11, Isaac  wrote:

> deploy:deploy-file does not update local repository fully.
> Let me show it to us, and ask for help too :)
>
> step 1. delete isaac_test** file in local repository
> step 2. use mvn compile command to update artifact(i get a project dependen
> on isaac_test), list local repository directory below:
> 2010-08-27  15:56   221,105 isaac_test-1.0.0-20100827.073702-45.jar
> 2010-08-27  15:5640
> isaac_test-1.0.0-20100827.073702-45.jar.sha1
>
> 2010-08-27  15:56   400 isaac_test-1.0.0-20100827.073702-45.pom
> 2010-08-27  15:5640
> isaac_test-1.0.0-20100827.073702-45.pom.sha1
>
> 2010-08-27  15:56   221,105 isaac_test-1.0.0-SNAPSHOT.jar
> 2010-08-27  15:56   400 isaac_test-1.0.0-SNAPSHOT.pom
> 2010-08-27  15:56   355 maven-metadata-mqq.xml
> 2010-08-27  15:5640 maven-metadata-mqq.xml.sha1
>
> step 3. upate the jar,then use command(i deloy it *twice *with different
> file ):
> mvn org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file
> -Dfile=isaac_test-1.0.0-SNAPSHOT.jar  -Durl=dav:http://xxx/repository/xx
> -DrepositoryId=xx 
> -DpomFile=isaac_test-1.0.0-SNAPSHOT.pom.xml
> to deploy it to the server.
>
> step 4.list local repositoy:
> 2010-08-27  15:56   221,105 isaac_test-1.0.0-20100827.073702-45.jar
> 2010-08-27  15:5640
> isaac_test-1.0.0-20100827.073702-45.jar.sha1
>
> 2010-08-27  15:56   400 isaac_test-1.0.0-20100827.073702-45.pom
> 2010-08-27  15:5640
> isaac_test-1.0.0-20100827.073702-45.pom.sha1
>
> 2010-08-27  16:01   221,105 isaac_test-1.0.0-20100827.080157-46.jar
> 2010-08-27  16:01   400 isaac_test-1.0.0-20100827.080157-46.pom
> 2010-08-27  16:03   137,286 isaac_test-1.0.0-20100827.080352-47.jar
> 2010-08-27  16:03   400 isaac_test-1.0.0-20100827.080352-47.pom
> 2010-08-27  15:56   221,105 isaac_test-1.0.0-SNAPSHOT.jar
> 2010-08-27  15:56   400 isaac_test-1.0.0-SNAPSHOT.pom
> 2010-08-27  16:03   355 maven-metadata-mqq.xml
> 2010-08-27  16:0340 maven-metadata-mqq.xml.sha1
>
> finally,compile two list of the local repository. I found the
> isaac_test-1.0.0-SNAPSHOT.jar
> DOES NOTE UPDATED! And then use mvn dependency:copy-dependency to copy the
> newest jar, I get an old one.
>
> This problem played me both on windows xp and SUSE linux.
>


Re: deploy:deploy-file using Snapshots - timestamp/version issue

2010-04-09 Thread James Clinton
Solved my issue, if your interested see StackOverFlow:
http://stackoverflow.com/questions/2606106/maven-deploydeploy-file-not-found-due-to-version-timestamp-appended-to-jar

Regards.

On 9 April 2010 09:36, James Clinton  wrote:

> I'm have a problem using deploy:deploy-file with snapshots I'd like some
> advice on please.
>
> I have 2 projects; 1) Ant based and 2) Maven based that consumes the jars
> of the other project via Archiva.
>
> I've added a target to the Ant project to deploy snapshots on every
> successful build during our iteration.
>
> The problem is the Maven project cannot find them because the name of the
> dependency has a timestamp appended like so:
>
> someJar-1.0-20100407.171211-1.jar
>
> Here is the Ant target:
>
> 
>   
>   
>   
>   
>value="-Dfile=../lib/${ant.project.name}-${manifest.implementation.version}-SNAPSHOT.jar"
> />
>   http://archiva.patsystems.com/archiva/repository/snapshots"; />
>   
> 
>
> Does anyone know what this happens or where I am going wrong?
>
> Other pure Maven projects which deploy snapshosts via mvn deploy work
> fine.
>
> Thanks
>
> James
>



-- 
James Clinton
Software Consultant
Avexa Consulting Ltd
james.clin...@avexa.co.uk
07941 561599


RE: Deploy:deploy-file with sources

2006-09-22 Thread Martin Gilday
Thanks


- Original message -
From: "Jörg Schaible" <[EMAIL PROTECTED]>
To: "Maven Users List" 
Date: Fri, 22 Sep 2006 16:02:13 +0200
Subject: RE: Deploy:deploy-file with sources

Martin Gilday wrote on Friday, September 22, 2006 11:43 AM:

> I am trying to deploy spring rc4 to our organisation repo.
> Using deploy:deploy-file is fine, but how do also deploy the
> api and source? I have them jarred up but there does not seem
> to be any properties listed in the docs to specify these
> along with the artifact. Is this possible? Thanks, Martin.

add -Dclassifier=sources and set -DgeneratePom=false

- Jörg

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



RE: Deploy:deploy-file with sources

2006-09-22 Thread Jörg Schaible
Martin Gilday wrote on Friday, September 22, 2006 11:43 AM:

> I am trying to deploy spring rc4 to our organisation repo.
> Using deploy:deploy-file is fine, but how do also deploy the
> api and source? I have them jarred up but there does not seem
> to be any properties listed in the docs to specify these
> along with the artifact. Is this possible? Thanks, Martin.

add -Dclassifier=sources and set -DgeneratePom=false

- Jörg

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



RE: deploy:deploy-file

2006-02-13 Thread Luca Gmail
No comment :-)

Tnx,
Luca

-Original Message-
From: Jochen Wiedmann [mailto:[EMAIL PROTECTED] 
Sent: lunedì 13 febbraio 2006 12.57
To: Maven Users List
Subject: Re: deploy:deploy-file

On 2/13/06, Rasconi Luca (u.e.) <[EMAIL PROTECTED]> wrote:

> mvn deploy:deploy-file -Dfile=classes12.jar -DgroupID=ojdbc
> -DartifactID=classes12  -Dpackaging=jar -Durl=scp://host/path/to/repo

ID => Id

--
If you obey all the rules you miss all the fun. (Katharine Hepburn)

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



Re: deploy:deploy-file

2006-02-13 Thread Jochen Wiedmann
On 2/13/06, Rasconi Luca (u.e.) <[EMAIL PROTECTED]> wrote:

> mvn deploy:deploy-file -Dfile=classes12.jar -DgroupID=ojdbc
> -DartifactID=classes12  -Dpackaging=jar -Durl=scp://host/path/to/repo

ID => Id

--
If you obey all the rules you miss all the fun. (Katharine Hepburn)

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