You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ian Boston <ia...@gmail.com> on 2013/08/03 09:23:28 UTC

Problem with maven shared invoker.

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 <debug>true</debug> 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


RE: Problem with maven shared invoker.

Posted by Martin Gainty <mg...@hotmail.com>.
getLog().debug( "Not re-installing " + artifact + ", " + file );

maven-invoker-plugin>mvn dependency:tree  
 
[INFO] +- org.apache.maven.reporting:maven-reporting-impl:jar:2.1:compile
[INFO] |  +- org.apache.maven.doxia:doxia-core:jar:1.1.2:compile
[INFO] |  |  +- xerces:xercesImpl:jar:2.8.1:compile
[INFO] |  |  +- commons-lang:commons-lang:jar:2.4:compile
[INFO] |  |  \- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] |  |     \- commons-codec:commons-codec:jar:1.2:compile
[INFO] |  \- commons-validator:commons-validator:jar:1.2.0:compile
[INFO] |     +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] |     +- commons-digester:commons-digester:jar:1.6:compile
[INFO] |     +- commons-logging:commons-logging:jar:1.0.4:compile
[INFO] |     +- oro:oro:jar:2.0.8:compile
[INFO] |     \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] +- org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.1:provided
[INFO] +- org.apache.maven.shared:maven-script-interpreter:jar:1.1:compile
[INFO] |  \- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
[INFO] +- org.apache.maven.doxia:doxia-sink-api:jar:1.1.4:compile
[INFO] |  \- org.apache.maven.doxia:doxia-logging-api:jar:1.1.4:compile

Martin Gainty 
______________________________________________ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

 
> Date: Sun, 4 Aug 2013 08:42:52 +0100
> Subject: Re: Problem with maven shared invoker.
> From: ieb@tfd.co.uk
> To: users@maven.apache.org
> 
> Hi,
> 
> On 3 August 2013 10:22, Robert Scholte <rf...@apache.org> wrote:
> > 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
> 
> 
> Adding debug does enable debug configuration to the archetype plugin
> does generate debug output for the integration tests. Unfortunately
> the invoker fails to run the mvn command so we never get that far, and
> the debug setting does not cause the integration test mojo to tell the
> shared invoker to emit the command its trying (and failing) to run.
> 
> Is there a setting somewhere that get the debug statements that are in
> the invoker to log at debug level ?
> 
> Best Regards
> Ian
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
 		 	   		  

Re: Problem with maven shared invoker.

Posted by Ian Boston <ie...@tfd.co.uk>.
Hi,

On 3 August 2013 10:22, Robert Scholte <rf...@apache.org> wrote:
> 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


Adding debug does enable debug configuration to the archetype plugin
does generate debug output for the integration tests. Unfortunately
the invoker fails to run the mvn command so we never get that far, and
the debug setting does not cause the integration test mojo to tell the
shared invoker to emit the command its trying (and failing) to run.

Is there a setting somewhere that get the debug statements that are in
the invoker to log at debug level ?

Best Regards
Ian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problem with maven shared invoker.

Posted by Robert Scholte <rf...@apache.org>.
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  
<ia...@gmail.com>:

> 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 <debug>true</debug> 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