Return-Path: X-Original-To: apmail-maven-dev-archive@www.apache.org Delivered-To: apmail-maven-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D75CD10F29 for ; Fri, 20 Feb 2015 13:26:51 +0000 (UTC) Received: (qmail 34227 invoked by uid 500); 20 Feb 2015 13:26:51 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 34122 invoked by uid 500); 20 Feb 2015 13:26:51 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 34110 invoked by uid 99); 20 Feb 2015 13:26:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Feb 2015 13:26:51 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mcculls@gmail.com designates 74.125.82.171 as permitted sender) Received: from [74.125.82.171] (HELO mail-we0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Feb 2015 13:26:24 +0000 Received: by wevk48 with SMTP id k48so5628550wev.3 for ; Fri, 20 Feb 2015 05:25:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type; bh=nOC486SL+xiPAsGsfKAaygr+CMjMpYG3I8vrietD/eM=; b=07hBPpwiW6gWDDyKnFdKpc1mS1CYKuDCMv+RGjUoYSqxJSDDfNme+VhxpODn6KMPfw 5KrsvfxZWtpGk1jCAtxGXAJDMRiWdLJ2cfWIkL1I0YcFIdo2WSfR1QrKq0vwrHbfjKik mKryDBRr+QAWsabz1w9ZJtxo8DrrhpG/9iqZS+mjE58zFDNJaSFmPaoURxnU9hBFByOU AExDzOF87E7+PkRYv7sPDV394jmhRepU3d57MpbxTix9emFcBiDX9rBRat82mky5vY2/ 7lvQiABX0Ls4e1W0tq+baUclOwDE3F92xdCy9VhndQT4IUoA3qCVuxHWnXgi+6KIsvqu 2vZA== X-Received: by 10.180.75.4 with SMTP id y4mr10918943wiv.35.1424438738102; Fri, 20 Feb 2015 05:25:38 -0800 (PST) Received: from [192.168.1.81] (host86-135-17-12.range86-135.btcentralplus.com. [86.135.17.12]) by mx.google.com with ESMTPSA id u16sm2898737wjr.5.2015.02.20.05.25.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 20 Feb 2015 05:25:37 -0800 (PST) Date: Fri, 20 Feb 2015 13:25:36 +0000 From: Stuart McCulloch To: Maven Developers List Message-ID: In-Reply-To: References: <1A006E9EB2FA457491CF39248E958046@gmail.com> Subject: Re: Archetype looping sort of with Maven 3.2.5 X-Mailer: sparrow 1.6.3 (build 1173) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="54e735d0_555c55b5_4bc" X-Virus-Checked: Checked by ClamAV on apache.org --54e735d0_555c55b5_4bc Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I would, but I=E2=80=99m not a committer here ;) On =46riday, 20 =46ebruary 2015 at 13:15, Benson Margulies wrote: > I like your fix better than my fix, please feel free to commit the swit= ch. > =20 > On =46ri, =46eb 20, 2015 at 8:14 AM, Stuart McCulloch wrote: > > =46YI, here=E2=80=99s the two competing classworld dependencies... on= e is the old classworlds:classworlds and the other org.codehaus.plexus:pl= exus-classworlds: > > =20 > > =5BIN=46O=5D =7C +- org.codehaus.plexus:plexus-interactivity-api:jar:= 1.0-alpha-6:compile > > =5BIN=46O=5D =7C =7C =5C- org.codehaus.plexus:plexus-component-api:ja= r:1.0-alpha-16:compile > > =5BIN=46O=5D =7C =7C =5C- org.codehaus.plexus:plexus-classworlds:jar:= 1.2-alpha-7:compile <=E2=80=94 plexus-classworlds > > =5BIN=46O=5D =7C +- org.apache.maven:maven-artifact-manager:jar:2.2.1= :compile > > =5BIN=46O=5D =7C =7C =5C- backport-util-concurrent:backport-util-conc= urrent:jar:3.1:compile > > =5BIN=46O=5D =7C +- org.apache.maven:maven-monitor:jar:2.2.1:compile > > =5BIN=46O=5D =7C +- org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-6:c= ompile > > =5BIN=46O=5D =7C =7C =5C- com.jcraft:jsch:jar:0.1.38:compile > > =5BIN=46O=5D =7C +- classworlds:classworlds:jar:1.1:compile <=E2=80=94= classworlds > > =5BIN=46O=5D =7C =5C- org.sonatype.plexus:plexus-sec-dispatcher:jar:1= .3:compile > > =5BIN=46O=5D =7C =5C- org.sonatype.plexus:plexus-cipher:jar:1.4:compi= le > > =20 > > =20 > > Both are brought in as transitive dependencies of maven-core (2.2.1) > > =20 > > If I add a test dependency to classworlds:classworlds:jar:1.1 at the = top of the dependencies in maven-archetype-plugin/pom.xml, or add a test = dependency to plexus-container-default (which has a transitive dependency= to the old classworlds artifact) then the hang doesn=E2=80=99t occur=E2=80= =A6 note that this is testing with 3.2.5 without making surefire fork and= without adding more memory: > > =20 > > diff --git a/maven-archetype-plugin/pom.xml b/maven-archetype-plugin/= pom.xml > > index 921fdbb..3b9e0e5 100644 > > --- a/maven-archetype-plugin/pom.xml > > +++ b/maven-archetype-plugin/pom.xml > > =40=40 -51,6 +51,11 =40=40 > > =20 > > > > > > + org.codehaus.plexus > > + plexus-container-default > > + test > > + > > + > > org.apache.maven.archetype > > archetype-catalog > > > > =20 > > =20 > > =20 > > On =46riday, 20 =46ebruary 2015 at 12:48, Benson Margulies wrote: > > =20 > > > Making surefire fork and giving it more memory did the job. Once we= make > > > the 2.2.1 release we can presumably make archetype use non-antique = plexus. > > > On =46eb 20, 2015 7:46 AM, =22Stuart McCulloch=22 wrote: > > > =20 > > > > If I get time I can try to debug it this weekend - looking at the= line > > > > numbers in the stack trace, the hang is happening inside the old = container: > > > > =20 > > > > at > > > > org.codehaus.plexus.component.discovery.AbstractComponentDiscover= er.findComponents(AbstractComponentDiscoverer.java:78) > > > > =20 > > > > https://github.com/sonatype/plexus-containers/blob/plexus-contain= er-default-1.0-alpha-9-stable-1/src/main/java/org/codehaus/plexus/compone= nt/discovery/AbstractComponentDiscoverer.java=23L78 > > > > at > > > > org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(Def= aultPlexusContainer.java:717) > > > > =20 > > > > https://github.com/sonatype/plexus-containers/blob/plexus-contain= er-default-1.0-alpha-9-stable-1/src/main/java/org/codehaus/plexus/Default= PlexusContainer.java=23L717 > > > > at > > > > org.codehaus.plexus.DefaultPlexusContainer.start(DefaultPlexusCon= tainer.java:779) > > > > =20 > > > > https://github.com/sonatype/plexus-containers/blob/plexus-contain= er-default-1.0-alpha-9-stable-1/src/main/java/org/codehaus/plexus/Default= PlexusContainer.java=23L779 > > > > =20 > > > > at org.codehaus.plexus.PlexusTestCase.setUp(PlexusTestCase.java:1= 21) > > > > =20 > > > > https://github.com/sonatype/plexus-containers/blob/plexus-contain= er-default-1.0-alpha-9-stable-1/src/main/java/org/codehaus/plexus/PlexusT= estCase.java=23L121 > > > > at > > > > org.apache.maven.archetype.ui.generation.DefaultArchetypeSelectio= nQueryerTest.setUp(DefaultArchetypeSelectionQueryerTest.java:44) > > > > =20 > > > > =20 > > > > Not sure why the old container gets into this state, maybe it=E2=80= =99s the newer > > > > version of classworlds=3F Or maybe the test classpath needs some = additional > > > > isolation/tweaking=3F > > > > =20 > > > > Also note that if I run the test on its own > > > > (-Dtest=3DDefaultArchetypeSelectionQueryerTest) then it only take= s a second > > > > or so with 3.2.5. > > > > =20 > > > > -- > > > > Cheers, Stuart > > > > =20 > > > > =20 > > > > On =46riday, 20 =46ebruary 2015 at 12:22, Benson Margulies wrote:= > > > > =20 > > > > org.codehaus.plexus.component.discovery.PlexusXmlComponentDiscove= rer=23discoverConfiguration > > > > > =20 > > > > > Is 'discovering' 57 copies of > > > > jar:file:/Users/benson/.m2/repository/org/apache/maven/maven-core= /2.2.1/maven-core-2.2.1.jar=21/META-IN=46/plexus/plexus.xml. > > > > > =20 > > > > > Reading it over and over is taking a long time. As previously > > > > > documented, using a newer copy of plexus leads to problems. > > > > > =20 > > > > > =20 > > > > > =20 > > > > > On =46ri, =46eb 20, 2015 at 6:51 AM, Benson Margulies > > > (mailto:bimargulies=40gmail.com)> wrote: > > > > > > What I see is: > > > > > > =20 > > > > > > Tests run: 3, =46ailures: 0, Errors: 0, Skipped: 0, Time elap= sed: 1.071 > > > > > > sec - in > > > > > > =20 > > > > > =20 > > > > =20 > > > > =20 > > > > org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerati= onConfiguratorTest > > > > > > Running > > > > > =20 > > > > =20 > > > > =20 > > > > org.apache.maven.archetype.ui.generation.DefaultArchetypeSelectio= nQueryerTest > > > > > > Tests run: 5, =46ailures: 0, Errors: 0, Skipped: 0, Time elap= sed: 55.357 > > > > > > sec - in > > > > > > =20 > > > > > =20 > > > > =20 > > > > =20 > > > > org.apache.maven.archetype.ui.generation.DefaultArchetypeSelectio= nQueryerTest > > > > > > Running > > > > > =20 > > > > =20 > > > > =20 > > > > org.apache.maven.archetype.ui.generation.DefaultArchetypeSelector= Test > > > > > > ... > > > > > > =20 > > > > > > So it appears that DefaultArchetypeSelectorTest gets lost in = a loop. > > > > > > Herv=C3=A9, have you poked further=3F > > > > > > =20 > > > > > =20 > > > > > =20 > > > > > =20 > > > > > =20 > > > > > ---------------------------------------------------------------= ------ > > > > > To unsubscribe, e-mail: dev-unsubscribe=40maven.apache.org (mai= lto:dev-unsubscribe=40maven.apache.org) (mailto: > > > > > =20 > > > > =20 > > > > =20 > > > > dev-unsubscribe=40maven.apache.org (mailto:dev-unsubscribe=40mave= n.apache.org)) > > > > > =46or additional commands, e-mail: dev-help=40maven.apache.org = (mailto:dev-help=40maven.apache.org) (mailto: > > > > =20 > > > > =20 > > > > dev-help=40maven.apache.org (mailto:dev-help=40maven.apache.org))= > > > > > =20 > > > > =20 > > > > =20 > > > =20 > > > =20 > > =20 > > =20 > =20 > =20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe=40maven.apache.org (mailto:dev-= unsubscribe=40maven.apache.org) > =46or additional commands, e-mail: dev-help=40maven.apache.org (mailto:= dev-help=40maven.apache.org) > =20 > =20 --54e735d0_555c55b5_4bc--