Re: [m2] Wagon fails with HTTP destination

2006-02-13 Thread Thomas_Perry






> One assumes your Location is , right?

yes,  here's what I added to httpd.conf

Alias /m2-repo /absolute/path/to/.m2/repository
DavLockDB /absolute/path/to/var/DavLock

DAV On



> Can you navigate to .../m2-repo and have it return content to your web
> browser? How about if you try and connect with cadaver or (egad)
> Microsoft Web Folders?

yes on both counts. I can bring up the repo with
http://server:port/m2-repo in a browser
and on xp I set up a webfolder and I can browse the contents in an explorer
window.

Having said all this, I'm giving up on webdav as a deploy protocol.  I'm
now trying to
get ftp to work.  That will be another thread since I'm having no luck
there as well.

I've googled and gone back over the user list and I'm not sure exactly what
deploy method
is working on a consistent basis.

Thanks again for your help.
Tom



Matthew L Daniel <[EMAIL PROTECTED]> wrote on 02/13/2006 04:36:53 PM:

> > was also defined as an alias  in httpd.conf  like
> >   alias  /m2-repo  /absolute/path/to/our/repository
> > and I defined a  element without any auth elements, just DAV
On
> >
> > Depending on the url in the pom, I'm getting an authorization error
(url of
> > http://server:port/m2-repo)
>
> This is a question for the httpd list, but I'll do what I can here.
>
> One assumes your Location is , right?
>
> Can you navigate to .../m2-repo and have it return content to your web
> browser? How about if you try and connect with cadaver or (egad)
> Microsoft Web Folders?
>
> Based on your other post, it sounds like your URL is mangled.
> Authentication information, if such is required, should be provided in
> ${user.home}/.m2/settings.xml. Now whether wagon honors that or not is
> an entirely separate question.
>
>   -- /v\atthew
>
> -
> 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]



Re: [m2] Wagon fails with HTTP destination

2006-02-13 Thread Matthew L Daniel
> was also defined as an alias  in httpd.conf  like
>   alias  /m2-repo  /absolute/path/to/our/repository
> and I defined a  element without any auth elements, just DAV On
> 
> Depending on the url in the pom, I'm getting an authorization error (url of
> http://server:port/m2-repo)

This is a question for the httpd list, but I'll do what I can here.

One assumes your Location is , right?

Can you navigate to .../m2-repo and have it return content to your web
browser? How about if you try and connect with cadaver or (egad)
Microsoft Web Folders?

Based on your other post, it sounds like your URL is mangled.
Authentication information, if such is required, should be provided in
${user.home}/.m2/settings.xml. Now whether wagon honors that or not is
an entirely separate question.

  -- /v\atthew

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



Re: [m2] Wagon fails with HTTP destination

2006-02-12 Thread Thomas_Perry






Mathew, thanks for the steps.  I followed them in our site but  still
couldn't use webdav to deploy
a project jar to our internal  repository.

I followed your notes about handling the jars in M2_HOME\lib

On our repo server, I did MKDIR for all the parent folders
(groupId/artifactId/version)

in my pom, I have the extension for wagon-http, and the http url I used
was also defined as an alias  in httpd.conf  like
  alias  /m2-repo  /absolute/path/to/our/repository
and I defined a  element without any auth elements, just DAV On

Depending on the url in the pom, I'm getting an authorization error (url of
http://server:port/m2-repo)

or an error code of 405  (url of
http://server:port/absolute/path/to/repository)

can you shed any light what you may have used to configure  httpd.conf or
any other
webdav-related configuration issues?

Thanks in advance for any help.
Tom





   
 Matthew L Daniel  
 <[EMAIL PROTECTED] 
 >  To 
   Maven Users List
 02/09/2006 01:14  
 AM cc 
   
   Subject 
 Please respond to Re: [m2] Wagon fails with HTTP  
   "Maven Usersdestination 
   List"   
 <[EMAIL PROTECTED] 
  he.org>  
   
   
   




> > I found the instructions here to be useful:
> > http://jira.codehaus.org/browse/MNG-1580

> Webdav is supported now? since when? I was really waiting for that!
thank!

Like I said, Maven hates us who don't want to futz with scp or ftp, but
we are smarter than it is!

The following was tested mere moments ago against a freshly downloaded
copy of maven-2.0.2 and some liberal use of the "-U" and "-X" switches.
Full disclosure: I'm not using authentication for WebDAV here, because I
trust the other 22 people I work with. YMMV.

The largest thing is to inject the necessary dependencies into
$M2_HOME/lib, while stripping out wagon-http-lightweight-1.0-alpha-6.jar

I kept chasing ClassNotFounds until it worked with the following:
commons-codec-1.3.jar
commons-httpclient-3.0.jar
commons-logging-1.0.3.jar
wagon-http-1.0-alpha-6.jar

(which I downloaded via wget from ibiblio, just so we're clear)

The 2nd largest "gotcha" is that wagon-http doesn't see it necessary to
MKCOL on all the parent directories before it tries to upload an
artifact. You can use cadaver (or your favorite WebDAV client) to help
it along there.

Now for the mundane parts.

You must declare an "http"  in your  and
include:

...


org.apache.maven.wagon
wagon-http
1.0-alpha-6




Also, be careful of http://jira.codehaus.org/browse/MNG-734 as that bit
me for the LONGEST time. I had a  without having
"-SNAPSHOT" in my . Totally my fault, but the error message was
HORRIBLE. I appended "-SNAPSHOT" and all was well with the world.

  HTH all three of the WebDAV users on this list,
  -- /v\atthew

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



Re: [m2] Wagon fails with HTTP destination

2006-02-09 Thread Matthew L Daniel
If anyone else is interested in this drama, please vote for:

http://jira.codehaus.org/browse/WAGONHTTP-7
> wagon-http dos not handle HTTP 204 No Content code as success

http://jira.codehaus.org/browse/WAGONHTTP-8
> wagon-http does not MKCOL for missing parent resources during deploy

  -- /v\atthew

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



Re: [m2] Wagon fails with HTTP destination

2006-02-08 Thread Matthew L Daniel
> > I found the instructions here to be useful:
> > http://jira.codehaus.org/browse/MNG-1580

> Webdav is supported now? since when? I was really waiting for that! thank!

Like I said, Maven hates us who don't want to futz with scp or ftp, but
we are smarter than it is!

The following was tested mere moments ago against a freshly downloaded
copy of maven-2.0.2 and some liberal use of the "-U" and "-X" switches.
Full disclosure: I'm not using authentication for WebDAV here, because I
trust the other 22 people I work with. YMMV.

The largest thing is to inject the necessary dependencies into
$M2_HOME/lib, while stripping out wagon-http-lightweight-1.0-alpha-6.jar

I kept chasing ClassNotFounds until it worked with the following:
commons-codec-1.3.jar
commons-httpclient-3.0.jar
commons-logging-1.0.3.jar
wagon-http-1.0-alpha-6.jar

(which I downloaded via wget from ibiblio, just so we're clear)

The 2nd largest "gotcha" is that wagon-http doesn't see it necessary to
MKCOL on all the parent directories before it tries to upload an
artifact. You can use cadaver (or your favorite WebDAV client) to help
it along there.

Now for the mundane parts.

You must declare an "http"  in your  and
include:

...


org.apache.maven.wagon
wagon-http
1.0-alpha-6




Also, be careful of http://jira.codehaus.org/browse/MNG-734 as that bit
me for the LONGEST time. I had a  without having
"-SNAPSHOT" in my . Totally my fault, but the error message was
HORRIBLE. I appended "-SNAPSHOT" and all was well with the world.

  HTH all three of the WebDAV users on this list,
  -- /v\atthew

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



Re: [m2] Wagon fails with HTTP destination

2006-02-08 Thread Alexandre Poitras
Webdav is supported now? since when? I was really waiting for that! thank!


On 1/25/06, Matthew L Daniel <[EMAIL PROTECTED]> wrote:
> > It seems nobody has ever tried http.
>
> That's certainly not true, but you are right that WebDAV support has
> been very quiet on these lists.
>
> I found the instructions here to be useful:
> http://jira.codehaus.org/browse/MNG-1580
>
>   -- /v\atthew
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



Re: [m2] Wagon fails with HTTP destination

2006-01-25 Thread Matthew L Daniel
> It seems nobody has ever tried http.

That's certainly not true, but you are right that WebDAV support has
been very quiet on these lists.

I found the instructions here to be useful:
http://jira.codehaus.org/browse/MNG-1580

  -- /v\atthew

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



RE: [m2] Wagon fails with HTTP destination

2006-01-24 Thread Stefan Fritz
Yes I'm following this guide but instead of using scp I tried http.

It seems nobody has ever tried http.
I think I'll try FTP as I was not able to get it working with HTTP. :-(


-Original Message-
From: Treloar, Barrie (SAPOL) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 25, 2006 6:51 AM
To: 'Maven Users List'
Subject: RE: [m2] Wagon fails with HTTP destination

> 
>   
>   inhouse
>   Inhouse Internal Release Repository
>   http://myserver/maven/inhouse
>   
>   
>   inhouse_snapshot
>   Inhouse Internal Snapshot
> Repository
> http://myserver/maven/inhouse_snapshot
>   true
>   
>   
> 
> 
> But when I run 'mvn deploy' I get the following error:

I know it works via scp.

I doubt http worked unless wagon was doing WebDAV stuff, in which case
you
would have had to setup that in apache.

Err, are you following the guide I am writing at 

nment ?? Let me know if I need to make changes.



-
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: [m2] Wagon fails with HTTP destination

2006-01-24 Thread Treloar, Barrie (SAPOL)
> 
>   
>   inhouse
>   Inhouse Internal Release Repository
>   http://myserver/maven/inhouse
>   
>   
>   inhouse_snapshot
>   Inhouse Internal Snapshot
> Repository
> http://myserver/maven/inhouse_snapshot
>   true
>   
>   
> 
> 
> But when I run 'mvn deploy' I get the following error:

I know it works via scp.

I doubt http worked unless wagon was doing WebDAV stuff, in which case you
would have had to setup that in apache.

Err, are you following the guide I am writing at 
http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a+corporate+enviro
nment ?? Let me know if I need to make changes.



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



[m2] Wagon fails with HTTP destination

2006-01-24 Thread Stefan Fritz

Hi all,

I try to setup maven 2.0.2 for my team.
I have a webserver (apache) which I want to use as our internal
repository release/snapshot.

In my parent pom.xml I added the following entries:



inhouse
Inhouse Internal Release Repository
http://myserver/maven/inhouse


inhouse_snapshot
Inhouse Internal Snapshot
Repository
http://myserver/maven/inhouse_snapshot
true




But when I run 'mvn deploy' I get the following error:


C:\dev>mvn deploy
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Unnamed - com.progress.chat:dev:pom:1.0
[INFO]   Unnamed - com.progress.chat.dev:esb:pom:1.0
[INFO]   Unnamed - com.progress.chat.dev.esb:services:pom:1.0
[INFO]


[INFO] Building Unnamed - com.progress.chat:dev:pom:1.0
[INFO]task-segment: [deploy]
[INFO]


[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[INFO] [install:install]
[INFO] Installing C:\dev\pom.xml to
C:\dev\var\local-repository\com\progress\chat\dev\1.0\dev-1.0.po
m
[INFO] [deploy:deploy]
Uploading:
http://myserver/maven/inhouse/com/progress/chat/dev/1.0/dev-1.0.pom
1K uploaded
[INFO]


[ERROR] BUILD ERROR
[INFO]


[INFO] Error deploying artifact: Unable to transfer file.
HttpURLConnection returned the response co
de: 405

[INFO]


[INFO] For more information, run Maven with the -e switch
[INFO]


[INFO] Total time: 1 second
[INFO] Finished at: Tue Jan 24 14:58:48 CET 2006
[INFO] Final Memory: 3M/6M
[INFO]



C:\dev>

Do I need any special apache settings to be able to upload files with
maven/wagon?

Regards
Stefan


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