Re: Heap overflow in deploy:deploy

2011-05-10 Thread Tamás Cservenák
No, Nexus is not WebDAV compliant (you cannot mount repository as a drive for example). But YES, you can use DAV wagon to deploy to it. You need build extension with DAV wagon _and_ modify your deploy URL. Thanks, ~t~ On Tue, May 10, 2011 at 6:29 AM, Anders Hammar and...@hammar.net wrote: No,

Re: Heap overflow in deploy:deploy

2011-05-09 Thread Phillip Hellewell
Thanks. I didn't even know I could select a different wagon. Does Nexus supports WebDAV? I skimmed a few places but I couldn't tell exactly which of these I am supposed to do: 1. Just prepend dav: to the front of my repository url in my distributionManagement? 2. Specify a wagonProvider of

Re: Heap overflow in deploy:deploy

2011-05-09 Thread Anders Hammar
No, Nexus does not support webdav. You should use http. /Anders On Tue, May 10, 2011 at 04:34, Phillip Hellewell ssh...@gmail.com wrote: Thanks. I didn't even know I could select a different wagon. Does Nexus supports WebDAV? I skimmed a few places but I couldn't tell exactly which of

Re: Heap overflow in deploy:deploy

2011-05-07 Thread Stephen Connolly
select a different wagon. it's documented on one of the mini howtos in the wagon sub-site (I'm on a phone so have a look yourself) - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the

Re: Heap overflow in deploy:deploy

2011-05-07 Thread Arnaud Héritier
I'm using the webdav wagon to bypass this problem. But yes we should try to propose something better. Patches are welcome ;) Le 7 mai 2011 à 10:32, Stephen Connolly stephen.alan.conno...@gmail.com a écrit : select a different wagon. it's documented on one of the mini howtos in the wagon

Re: Heap overflow in deploy:deploy

2011-05-06 Thread Phillip Hellewell
With Maven 3.0.1 I am still running into this bug. It's been 1/2 year; any ETA on when it will be fixed? Could Maven use an alternative to httpclient? I have a component with five zip classifiers ranging in size from 80MB to 800MB. I had to adjust my max heap size to 2.5GB before it would

Re: Heap overflow in deploy:deploy

2010-10-14 Thread Phillip Hellewell
On Wed, Oct 13, 2010 at 8:31 PM, Wayne Fay wayne...@gmail.com wrote: You probably want to look at the following lines in particular: 457         transfer( resource, input, output, requestType, Integer.MAX_VALUE ); 480         int remaining = maxSize; //maxSize is Integer.MAX_VALUE 483    

Re: Heap overflow in deploy:deploy

2010-10-14 Thread Phillip Hellewell
On Wed, Oct 13, 2010 at 11:45 PM, Dan Tran dant...@gmail.com wrote: It is a known problem where maven (wagon) uses jvm's httpclient to do the upload. Good to know, thanks. So it is actually a bug in sun.net.www.http.PosterOutputStream you say? So what is the game plan? Just wait for Sun

Re: Heap overflow in deploy:deploy

2010-10-14 Thread Wayne Fay
I don't know.  To me it looks like the code limits it to sending DEFAULT_BUFFER_SIZE (4K) at a time. Heh, you're right... doh. In my defense, I was looking for a place where maybe the code had a bug and was reading entirely too much into memory. Oh well, guess its just jvm's httpclient bug then

Heap overflow in deploy:deploy

2010-10-13 Thread Phillip Hellewell
I'm using Maven 2.2.1 and getting a heap overflow when trying to deploy an artifact about 50MB in size. I'm deploying to an Nexus server (HTTP). I added @set MAVEN_OPTS=-Xms128m -Xmx512m to my mvn.bat and now it is working. But my question is, why should uploading a file require so much memory?

Re: Heap overflow in deploy:deploy

2010-10-13 Thread Wayne Fay
But my question is, why should uploading a file require so much memory?  It's not like it tries to read the whole file into memory, or does it?  If so, that seems kinda dumb. Maybe taking a look at the source code would help you figure out why its giving you problems?

Re: Heap overflow in deploy:deploy

2010-10-13 Thread Wayne Fay
Maybe taking a look at the source code would help you figure out why its giving you problems? You probably want to look at the following lines in particular: 457 transfer( resource, input, output, requestType, Integer.MAX_VALUE ); 480 int remaining = maxSize; //maxSize is

Re: Heap overflow in deploy:deploy

2010-10-13 Thread Ron Wheeler
On 13/10/2010 7:29 PM, Phillip Hellewell wrote: I'm using Maven 2.2.1 and getting a heap overflow when trying to deploy an artifact about 50MB in size. I'm deploying to an Nexus server (HTTP). I added @set MAVEN_OPTS=-Xms128m -Xmx512m to my mvn.bat and now it is working. But my question is,

Re: Heap overflow in deploy:deploy

2010-10-13 Thread Dan Tran
It is a known problem where maven (wagon) uses jvm's httpclient to do the upload. -D On Wed, Oct 13, 2010 at 8:52 PM, Ron Wheeler rwhee...@artifact-software.com wrote:  On 13/10/2010 7:29 PM, Phillip Hellewell wrote: I'm using Maven 2.2.1 and getting a heap overflow when trying to deploy an

Re: Heap overflow in deploy:deploy-file

2007-09-07 Thread Larry Suto
Thanks it works On 9/7/07, ossi petz [EMAIL PROTECTED] wrote: hallo outofmemory yes, but with reports. set an env varaiable: MAVEN_OPTS=-Xms128m -Xmx512m to allow maven to use more memory. that should do the trick regards ossi Larry Suto schrieb: Hi I am trying to upload an

Re: Heap overflow in deploy:deploy-file

2007-09-07 Thread Jo Vandermeeren
Have you tried increasing the max heap size for maven by setting MAVEN_OPTS? On Fri, 2007-09-07 at 02:08 -0700, Larry Suto wrote: Hi I am trying to upload an artifact to Maven repository with deploy:deploy-file. I am getting a java.lang.OutOfMemoryError . The file is about 42mb in size. I am

Re: Heap overflow in deploy:deploy-file

2007-09-07 Thread ossi petz
hallo outofmemory yes, but with reports. set an env varaiable: MAVEN_OPTS=-Xms128m -Xmx512m to allow maven to use more memory. that should do the trick regards ossi Larry Suto schrieb: Hi I am trying to upload an artifact to Maven repository with deploy:deploy-file. I am getting a

Heap overflow in deploy:deploy-file

2007-09-07 Thread Larry Suto
Hi I am trying to upload an artifact to Maven repository with deploy:deploy-file. I am getting a java.lang.OutOfMemoryError . The file is about 42mb in size. I am using Maven 2.07. Has anyone else come across this problem. Thanks, Larry

Re: Heap overflow in deploy:deploy-file

2007-09-07 Thread Joshua ChaitinPollak
At least on *nix, you can set MAVEN_OPTS in ~/.mavenrc On Fri, 2007-09-07 at 11:16 +0200, Jo Vandermeeren wrote: Have you tried increasing the max heap size for maven by setting MAVEN_OPTS? On Fri, 2007-09-07 at 02:08 -0700, Larry Suto wrote: Hi I am trying to upload an artifact to Maven