Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 37F3E10857 for ; Sat, 3 Aug 2013 09:23:20 +0000 (UTC) Received: (qmail 38247 invoked by uid 500); 3 Aug 2013 09:23:13 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 37900 invoked by uid 500); 3 Aug 2013 09:23:07 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 37884 invoked by uid 99); 3 Aug 2013 09:23:04 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Aug 2013 09:23:04 +0000 Received: from localhost (HELO columbia) (127.0.0.1) (smtp-auth username rfscholte, mechanism login) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Aug 2013 09:23:03 +0000 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Maven Users List" Subject: Re: Problem with maven shared invoker. References: Date: Sat, 03 Aug 2013 11:22:57 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Robert Scholte" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (Win32) Hi, --- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:integration-test (default-integration-test) on project sling-servlet-archetype: [ERROR] Archetype IT 'normal' failed: Cannot run additions goals. --- according to these lines it is not the maven-invoker-plugin which is used, but the maven-archetype-plugin. For that reason the -D arguments won't have any effect, since they are used for a different plugin. This is the page you are looking for: http://maven.apache.org/archetype/maven-archetype-plugin/integration-test-mojo.html Robert Op Sat, 03 Aug 2013 09:23:28 +0200 schreef Ian Boston : > Hi, > > Question: > How do I make the DefaultInvoker.executeCommandLine in [2] log the > command line > > in version 2.0.11 of executeCommandLine there is > > if ( getLogger().isDebugEnabled() ) > { > getLogger().debug( "Executing: " + cli ); > } > > > I have tried > > -X > > -Dinvoker.debug=true > > -Dmaven.invoker.debug=true > > > and configuring maven-invoker-plugin with true in the > > > I have also tried to break the invoker, but nothing I do makes any > difference > > > Detail: > > Over in Apache Sling my GSoC Student is struggling to build Sling, It > builds for everyone else but him. The log is at [1]. He is running as > root, (bad), in a users home folder, and I have asked him to try > again. He is trying to build tooling/maven/archetypes/servlet from > sling trunk. > > eg > > svn co https://svn.apache.org/repos/asf/sling/trunk > cd tooling/maven/archetypes/servlet > mvn clean install > > Looking at the output and the source code it looks like the maven > shared invoker is failing to launch a new copy of maven from the > command line. I believe the code being used is [2]. > > Based on looking at the difference between a successful build and a > failing build the invoker never manages to invoke the maven command. I > would like to be able to give him a simple patch, he can apply so we > can see what is going on on his box. > > He has been blocked for 2 weeks by this issue. > > Best Regards > Ian > > > 1 http://pastebin.com/9gsHxfFZ > 2 > http://jarvana.com/jarvana/view/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11-sources.jar!/org/apache/maven/shared/invoker/DefaultInvoker.java?format=ok > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org