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 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 artifact about 50MB in s

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: maven is a swamp

2010-10-13 Thread Ron Wheeler
On 13/10/2010 7:24 PM, Barrie Treloar wrote: On Thu, Oct 14, 2010 at 9:34 AM, Graham Leggett wrote: [del] As soon as you need to start documenting things, you're starting to go wrong. Practically, you may have to document some things, such as where to get certificates for access, but you shoul

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 Inte

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? http://maven.apache.or

Re: maven is a swamp

2010-10-13 Thread Barrie Treloar
On Thu, Oct 14, 2010 at 9:59 AM, Benson Margulies wrote: > I'm concerned that the circle of congratulations here is somewhat > oversimplifying this. > > I've brought Maven into my day job. > > I've arranged all the code involved to follow the maven way of doing things. > > And yet, I have some POM

Re: maven is a swamp

2010-10-13 Thread Benson Margulies
I'm concerned that the circle of congratulations here is somewhat oversimplifying this. I've brought Maven into my day job. I've arranged all the code involved to follow the maven way of doing things. And yet, I have some POM files that are veritable thickets of XML, and attract a fair amount of

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: maven is a swamp

2010-10-13 Thread Barrie Treloar
On Thu, Oct 14, 2010 at 9:34 AM, Graham Leggett wrote: [del] > As soon as you need to start documenting things, you're starting to go > wrong. Practically, you may have to document some things, such as where to > get certificates for access, but you should strive to keep this > documentation to ze

Re: maven is a swamp

2010-10-13 Thread Graham Leggett
On 13 Oct 2010, at 10:52 PM, Wendy Smoak wrote: Help with the website is always welcome. The source code for the website is here: http://svn.apache.org/repos/asf/maven/site/trunk/ The home page is down at http://svn.apache.org/repos/asf/maven/site/trunk/src/site/xdoc/index.xml.vm (Most other pa

Re: maven is a swamp

2010-10-13 Thread Wendy Smoak
On Wed, Oct 13, 2010 at 4:35 PM, Ron Wheeler wrote: >  Excellent!!! I wish I could express myself as clearly and elegantly. > This should be on the front page of the Maven website (or right next to it). Help with the website is always welcome. The source code for the website is here: http://svn.

Re: maven is a swamp

2010-10-13 Thread Ron Wheeler
Excellent!!! I wish I could express myself as clearly and elegantly. This should be on the front page of the Maven website (or right next to it). On 13/10/2010 3:53 PM, Graham Leggett wrote: On 13 Oct 2010, at 8:52 PM, Leon Rosenberg wrote: Many traditional programming languages are declarati

Re: maven is a swamp

2010-10-13 Thread Graham Leggett
On 13 Oct 2010, at 8:52 PM, Leon Rosenberg wrote: Many traditional programming languages are declarative and not procedural or are based on declarative concepts, most of the time the declarative nature of such languages proved itself problematic. But seriously is there a comparison matrix somewh

Re: maven is a swamp

2010-10-13 Thread Benson Margulies
This thread has jumped the shark. I recommend letting it drown. On Wed, Oct 13, 2010 at 3:44 PM, Jason Chaffee wrote: > I agree with how things seem to run differently on cmd-line, vs. eclipse, vs. > Hudson.  I can be extremely frustrating. > > However, maven does take a "convention over configu

RE: maven is a swamp

2010-10-13 Thread Jason Chaffee
I agree with how things seem to run differently on cmd-line, vs. eclipse, vs. Hudson. I can be extremely frustrating. However, maven does take a "convention over configuration" approach to things for the most part. Many times the problems people encounter are not following the convention and

Re: maven is a swamp

2010-10-13 Thread Ron Wheeler
On 13/10/2010 2:52 PM, Leon Rosenberg wrote: On Wed, Oct 13, 2010 at 5:31 AM, Brian Topping wrote: On Oct 12, 2010, at 10:01 PM, Martin Gainty wrote: Suprisingly maven is not the first programming language to use XML This is worth clarifying. What makes Maven unique, and I believe groundb

Re: maven is a swamp

2010-10-13 Thread Leon Rosenberg
On Wed, Oct 13, 2010 at 5:31 AM, Brian Topping wrote: > > On Oct 12, 2010, at 10:01 PM, Martin Gainty wrote: > >> Suprisingly maven is not the first programming language to use XML > > This is worth clarifying.  What makes Maven unique, and I believe > groundbreaking, is that the POM is declarati

Re: multimodul and parent pom question

2010-10-13 Thread Justin Edelson
Separating aggregation from inheritance is definitely a good idea if your modules are versioned and/or released independently from one another which sounds like is the case here. Justin On 10/13/10 10:40 AM, mremerson...@aim.com wrote: > Hi, > > we have a multimodul project with a lot of modules

Re: maven is a swamp

2010-10-13 Thread chemit
Le Wed, 13 Oct 2010 11:52:04 -0400, Ron Wheeler a écrit : > I was just replying to the list using the last post in the > conversation. > > Not to anyone in particular. > My bad in that case :) > > > On 13/10/2010 9:57 AM, chemit wrote: > > Le Wed, 13 Oct 2010 08:58:27 -0400, > > Ron Wheele

Re: naming now that Maven 3 is out..

2010-10-13 Thread Paul Benedict
I brought the issue up back then and it got at least pushed to 3.1 On Wed, Oct 13, 2010 at 9:48 AM, Wendy Smoak wrote: > On Wed, Oct 13, 2010 at 10:13 AM, Nayan Hajratwala wrote: >> Kind of a random thought -- now that Maven 3 is out, are all those "M2" >> based names going to be changed to "M3

Re: maven is a swamp

2010-10-13 Thread Ron Wheeler
I was just replying to the list using the last post in the conversation. Not to anyone in particular. On 13/10/2010 9:57 AM, chemit wrote: Le Wed, 13 Oct 2010 08:58:27 -0400, Ron Wheeler a écrit : Doing the wrong thing and not using an IDE with a POM editor is not a good recipe for a s

Re: naming now that Maven 3 is out..

2010-10-13 Thread Xavier Carpentier
Hi, and other : *.m2*/settings.xml ? Bye -- Carpentier Xavier Ingénieur Développement - x.carpent...@greenivory.com - http://www.greenivory.com *GreenIvory Europe* 10 rue Saint Wendelin 67500 Haguenau France *GreenIvory Americ

Re: Need to specify versions of standard plugins in 3.0?

2010-10-13 Thread Patrick Aikens
As the father of an 11 month old daughter, I understand. :) On Oct 13, 2010, at 4:58 AM, Stephen Connolly wrote: > http://jira.codehaus.org/browse/MVERSIONS-6 and > http://jira.codehaus.org/browse/MVERSIONS-7 should give what you want > when I get around to writing them... > > the blocker for

Re: maven is a swamp

2010-10-13 Thread Kathryn Huxtable
It does. The rest of the language is rather ugly, though. -K On Oct 13, 2010, at 9:07 AM, Rick Mangi wrote: > I just enjoyed the bit about perl having elegant and concise data structures > :-) > > > On 10/13/10 9:57 AM, "chemit" wrote: > >> Le Wed, 13 Oct 2010 08:58:27 -0400, >> Ron Wheeler

Re: naming now that Maven 3 is out..

2010-10-13 Thread Wendy Smoak
On Wed, Oct 13, 2010 at 10:13 AM, Nayan Hajratwala wrote: > Kind of a random thought -- now that Maven 3 is out, are all those "M2" based > names going to be changed to "M3", or more preferably a non-version specific > name? > > i.e. M2_HOME, m2eclipse, etc.? This was discussed on the dev list

multimodul and parent pom question

2010-10-13 Thread mremersoncod
Hi, we have a multimodul project with a lot of modules. Currently the root-pom of the multimodul project is also the parent pom of each submodul project. This stroke us quite some time when we made changes in the parent pom regarding dependency versions in dependencyManagement or other configur

naming now that Maven 3 is out..

2010-10-13 Thread Nayan Hajratwala
Kind of a random thought -- now that Maven 3 is out, are all those "M2" based names going to be changed to "M3", or more preferably a non-version specific name? i.e. M2_HOME, m2eclipse, etc.? --- Nayan Hajratwala http://agileshrugged.com http://twitter.com/nhajratw 734.658.6032 -

Re: maven is a swamp

2010-10-13 Thread Rick Mangi
I just enjoyed the bit about perl having elegant and concise data structures :-) On 10/13/10 9:57 AM, "chemit" wrote: > Le Wed, 13 Oct 2010 08:58:27 -0400, > Ron Wheeler a écrit : > >> Doing the wrong thing and not using an IDE with a POM editor is not >> a good recipe for a smooth developm

Re: maven is a swamp

2010-10-13 Thread chemit
Le Wed, 13 Oct 2010 08:58:27 -0400, Ron Wheeler a écrit : > Doing the wrong thing and not using an IDE with a POM editor is not > a good recipe for a smooth development cycle. > I will admit to occasionally editing XML but that is for extreme > cases while you are getting set up.. > euh wrong

Re: Using profiles to change clean behavior of a build

2010-10-13 Thread Ron Wheeler
What is so unusual about your workflow that causes this issue in the first place. Can you not refactor your application so that the "permanent" stuff is in another project that creates a library that you reference as a dependency(provided if possible) so that it is not copied into your target

Re: maven is a swamp

2010-10-13 Thread Ron Wheeler
Doing the wrong thing and not using an IDE with a POM editor is not a good recipe for a smooth development cycle. I will admit to occasionally editing XML but that is for extreme cases while you are getting set up.. If you don't like XML: 1) Get your development workflow Mavenized 2) Get a Mav

Using profiles to change clean behavior of a build

2010-10-13 Thread Jolly, Carl
Hello! I'm trying to modify the behaviour of a build so that during development those parts of the target that do not change between builds do not get wiped out and re-extracted every time as these activities take up most of the build time. For instance, as part of the build we extract the java

Re: Maven generating invalid eclipse projects

2010-10-13 Thread Antonio Petrelli
2010/10/13 emerson : > Does the m2eclipse creates eclipse config from the pom, ina > multi-module configuration? it creates one Eclipse project per module, plus the project for the master pom. And, obviously, the config files. Antonio -

Re: Maven generating invalid eclipse projects

2010-10-13 Thread emerson
> The first step is to run eclipse:eclipse > > Then copy the generated files somewhere. > > The second step is to manually fix eclipse so that it is how you expect it. > > Then copy those files somewhere. > > Compare the two and file a bug report > http://maven.apache.org/plugins/maven-eclipse-plug

Re: How to use m-invoker-p with a IT project that SHOULD fail

2010-10-13 Thread Anders Hammar
Many thanks! The response time on this one was impressive! :-) /Anders On Wed, Oct 13, 2010 at 12:59, Olivier Lamy wrote: > Having a file in your it directory called : invoker.properties > with the content : invoker.buildResult = failure > > See > http://maven.apache.org/plugins/maven-invoker-p

Re: How to use m-invoker-p with a IT project that SHOULD fail

2010-10-13 Thread Olivier Lamy
Having a file in your it directory called : invoker.properties with the content : invoker.buildResult = failure See http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html#invokerPropertiesFile HTH, -- Olivier http://twitter.com/olamy http://www.linkedin.com/in/olamy 2010/10/13 An

Re: How to use m-invoker-p with a IT project that SHOULD fail

2010-10-13 Thread chemit
Le Wed, 13 Oct 2010 12:54:04 +0200, Anders Hammar a écrit : > For a plugin I have a build case that I want to test that it fails. > I'm using the m-invoker-p for my IT projects, but they normal case is > that they should pass. Has anyone done such a test project which is > verified that it fails?

How to use m-invoker-p with a IT project that SHOULD fail

2010-10-13 Thread Anders Hammar
For a plugin I have a build case that I want to test that it fails. I'm using the m-invoker-p for my IT projects, but they normal case is that they should pass. Has anyone done such a test project which is verified that it fails? /Anders

Re: Need to specify versions of standard plugins in 3.0?

2010-10-13 Thread Stephen Connolly
http://jira.codehaus.org/browse/MVERSIONS-6 and http://jira.codehaus.org/browse/MVERSIONS-7 should give what you want when I get around to writing them... the blocker for me is having stable integration tests, which depends on finishing mock-repository-maven-plugin... and swamped in work and I hav

Re: Java is a swamp

2010-10-13 Thread Jörg Schaible
Hi Kenneth, now, after your mail, I realize that Java is also a swamp, too: = %< = import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; public class HelloWorld { public void main(String[] args) { ScriptEngineManager manager

Maven 3.0 somertimes gives empty pom files in local repository

2010-10-13 Thread Andreas Gies
Hello Maveners I have recently used maven-3.0-beta-3 to get familar with Maven 3. Now, after the release of Maven 3 I have run a couple of builds that were working with 3.0-beta-3 and now randomly see a strange behavior on Windows 7 64bit, Java 1.6-20 (64bit): It seems that "something" in th

Invoking a plugin programmatically using maven 3 and scala

2010-10-13 Thread Andreas Gies
Hello Maveners , mainly for self learning purposes I am trying to build some plugins for Maven 3 using the Scala language. One of the things I had going before (Maven 2 & Java based) is to invoke another plugin programmatically. Now I am trying to invoke the dependency plugin, namely the u

Invoking a plugin programmatically with Maven 3.0-beta

2010-10-13 Thread Andreas Gies
Hello Maveners , mainly for self learning purposes I am trying to build some plugins for Maven 3 using the Scala language. One of the things I had going before (Maven 2 & Java based) is to invoke another plugin programmatically. Now I am trying to invoke the dependency plugin, namely the un