You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephane Nicoll (JIRA)" <ji...@codehaus.org> on 2007/03/24 11:57:34 UTC

[jira] Created: (MVERIFIER-5) mvn not found when invoking the verifier from IDEA

mvn not found when invoking the verifier from IDEA
--------------------------------------------------

                 Key: MVERIFIER-5
                 URL: http://jira.codehaus.org/browse/MVERIFIER-5
             Project: Maven 2.x Verifier Plugin
          Issue Type: Bug
         Environment: MacOsX
            Reporter: Stephane Nicoll


When i use the verifier in Intellij IDEA, the verifier is unable to find mvn in the path. I don't have the problem on Linux/Windows XP. 

The path is set properly

{noformat}
org.apache.maven.it.VerificationException: org.apache.maven.it.util.cli.CommandLineException: Error while executing process.
	at org.apache.maven.it.Verifier.executeGoals(Verifier.java:907)
	at org.apache.maven.it.Verifier.executeGoal(Verifier.java:780)
	at org.apache.maven.it.Verifier.executeGoal(Verifier.java:774)
	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.executeMojo(AbstractEarPluginTestCase.java:84)
	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.executeMojo(AbstractEarPluginTestCase.java:114)
	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.doTestProject(AbstractEarPluginTestCase.java:132)
	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.doTestProject(AbstractEarPluginTestCase.java:161)
	at org.apache.maven.plugin.ear.EarMojoTest.testProject038(EarMojoTest.java:411)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
Caused by: org.apache.maven.it.util.cli.CommandLineException: Error while executing process.
	at org.apache.maven.it.util.cli.Commandline.execute(Commandline.java:737)
	at org.apache.maven.it.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:101)
	at org.apache.maven.it.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:87)
	at org.apache.maven.it.Verifier.executeGoals(Verifier.java:901)
	... 23 more
Caused by: java.io.IOException: mvn: not found
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
	at java.lang.ProcessImpl.start(ProcessImpl.java:91)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
	at java.lang.Runtime.exec(Runtime.java:591)
	at org.apache.maven.it.util.cli.Commandline.execute(Commandline.java:732)
	... 26 more
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MVERIFIER-5) mvn not found when invoking the verifier from IDEA

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MVERIFIER-5?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_90952 ] 

Stephane Nicoll commented on MVERIFIER-5:
-----------------------------------------

The environment passe to Runtime.getRuntime does not contain the actual PATH variable.

{noformat}
PATH=/usr/bin:/bin:/usr/sbin:/sbin
{noformat}

My bash shell gives the following:

{noformat}
cobra:~/projects/maven-shared/maven-verifier snicoll$ echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/opt/local/bin:/opt/tools/maven/bin:/opt/tools/ant/bin
{noformat}

> mvn not found when invoking the verifier from IDEA
> --------------------------------------------------
>
>                 Key: MVERIFIER-5
>                 URL: http://jira.codehaus.org/browse/MVERIFIER-5
>             Project: Maven 2.x Verifier Plugin
>          Issue Type: Bug
>         Environment: MacOsX
>            Reporter: Stephane Nicoll
>
> When i use the verifier in Intellij IDEA, the verifier is unable to find mvn in the path. I don't have the problem on Linux/Windows XP. 
> The path is set properly
> {noformat}
> org.apache.maven.it.VerificationException: org.apache.maven.it.util.cli.CommandLineException: Error while executing process.
> 	at org.apache.maven.it.Verifier.executeGoals(Verifier.java:907)
> 	at org.apache.maven.it.Verifier.executeGoal(Verifier.java:780)
> 	at org.apache.maven.it.Verifier.executeGoal(Verifier.java:774)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.executeMojo(AbstractEarPluginTestCase.java:84)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.executeMojo(AbstractEarPluginTestCase.java:114)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.doTestProject(AbstractEarPluginTestCase.java:132)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.doTestProject(AbstractEarPluginTestCase.java:161)
> 	at org.apache.maven.plugin.ear.EarMojoTest.testProject038(EarMojoTest.java:411)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
> Caused by: org.apache.maven.it.util.cli.CommandLineException: Error while executing process.
> 	at org.apache.maven.it.util.cli.Commandline.execute(Commandline.java:737)
> 	at org.apache.maven.it.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:101)
> 	at org.apache.maven.it.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:87)
> 	at org.apache.maven.it.Verifier.executeGoals(Verifier.java:901)
> 	... 23 more
> Caused by: java.io.IOException: mvn: not found
> 	at java.lang.UNIXProcess.forkAndExec(Native Method)
> 	at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
> 	at java.lang.ProcessImpl.start(ProcessImpl.java:91)
> 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
> 	at java.lang.Runtime.exec(Runtime.java:591)
> 	at org.apache.maven.it.util.cli.Commandline.execute(Commandline.java:732)
> 	... 26 more
> {noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MVERIFIER-5) mvn not found when invoking the verifier from IDEA

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MVERIFIER-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephane Nicoll updated MVERIFIER-5:
------------------------------------

    Priority: Minor  (was: Major)

Creating a simlink in /usr/bin fixes the issue.

> mvn not found when invoking the verifier from IDEA
> --------------------------------------------------
>
>                 Key: MVERIFIER-5
>                 URL: http://jira.codehaus.org/browse/MVERIFIER-5
>             Project: Maven 2.x Verifier Plugin
>          Issue Type: Bug
>         Environment: MacOsX
>            Reporter: Stephane Nicoll
>            Priority: Minor
>
> When i use the verifier in Intellij IDEA, the verifier is unable to find mvn in the path. I don't have the problem on Linux/Windows XP. 
> The path is set properly
> {noformat}
> org.apache.maven.it.VerificationException: org.apache.maven.it.util.cli.CommandLineException: Error while executing process.
> 	at org.apache.maven.it.Verifier.executeGoals(Verifier.java:907)
> 	at org.apache.maven.it.Verifier.executeGoal(Verifier.java:780)
> 	at org.apache.maven.it.Verifier.executeGoal(Verifier.java:774)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.executeMojo(AbstractEarPluginTestCase.java:84)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.executeMojo(AbstractEarPluginTestCase.java:114)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.doTestProject(AbstractEarPluginTestCase.java:132)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.doTestProject(AbstractEarPluginTestCase.java:161)
> 	at org.apache.maven.plugin.ear.EarMojoTest.testProject038(EarMojoTest.java:411)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
> Caused by: org.apache.maven.it.util.cli.CommandLineException: Error while executing process.
> 	at org.apache.maven.it.util.cli.Commandline.execute(Commandline.java:737)
> 	at org.apache.maven.it.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:101)
> 	at org.apache.maven.it.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:87)
> 	at org.apache.maven.it.Verifier.executeGoals(Verifier.java:901)
> 	... 23 more
> Caused by: java.io.IOException: mvn: not found
> 	at java.lang.UNIXProcess.forkAndExec(Native Method)
> 	at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
> 	at java.lang.ProcessImpl.start(ProcessImpl.java:91)
> 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
> 	at java.lang.Runtime.exec(Runtime.java:591)
> 	at org.apache.maven.it.util.cli.Commandline.execute(Commandline.java:732)
> 	... 26 more
> {noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Moved: (MSHARED-142) mvn not found when invoking the verifier from IDEA

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSHARED-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter moved MVERIFIER-5 to MSHARED-142:
----------------------------------------------

        Key: MSHARED-142  (was: MVERIFIER-5)
    Project: Maven Shared Components  (was: Maven 2.x Verifier Plugin)

> mvn not found when invoking the verifier from IDEA
> --------------------------------------------------
>
>                 Key: MSHARED-142
>                 URL: http://jira.codehaus.org/browse/MSHARED-142
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-verifier
>         Environment: MacOsX
>            Reporter: Stephane Nicoll
>            Priority: Minor
>
> When i use the verifier in Intellij IDEA, the verifier is unable to find mvn in the path. I don't have the problem on Linux/Windows XP. 
> The path is set properly
> {noformat}
> org.apache.maven.it.VerificationException: org.apache.maven.it.util.cli.CommandLineException: Error while executing process.
> 	at org.apache.maven.it.Verifier.executeGoals(Verifier.java:907)
> 	at org.apache.maven.it.Verifier.executeGoal(Verifier.java:780)
> 	at org.apache.maven.it.Verifier.executeGoal(Verifier.java:774)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.executeMojo(AbstractEarPluginTestCase.java:84)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.executeMojo(AbstractEarPluginTestCase.java:114)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.doTestProject(AbstractEarPluginTestCase.java:132)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.doTestProject(AbstractEarPluginTestCase.java:161)
> 	at org.apache.maven.plugin.ear.EarMojoTest.testProject038(EarMojoTest.java:411)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
> Caused by: org.apache.maven.it.util.cli.CommandLineException: Error while executing process.
> 	at org.apache.maven.it.util.cli.Commandline.execute(Commandline.java:737)
> 	at org.apache.maven.it.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:101)
> 	at org.apache.maven.it.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:87)
> 	at org.apache.maven.it.Verifier.executeGoals(Verifier.java:901)
> 	... 23 more
> Caused by: java.io.IOException: mvn: not found
> 	at java.lang.UNIXProcess.forkAndExec(Native Method)
> 	at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
> 	at java.lang.ProcessImpl.start(ProcessImpl.java:91)
> 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
> 	at java.lang.Runtime.exec(Runtime.java:591)
> 	at org.apache.maven.it.util.cli.Commandline.execute(Commandline.java:732)
> 	... 26 more
> {noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MSHARED-142) mvn not found when invoking the verifier from IDEA

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSHARED-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MSHARED-142:
---------------------------------

    Component/s: maven-verifier

> mvn not found when invoking the verifier from IDEA
> --------------------------------------------------
>
>                 Key: MSHARED-142
>                 URL: http://jira.codehaus.org/browse/MSHARED-142
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-verifier
>         Environment: MacOsX
>            Reporter: Stephane Nicoll
>            Priority: Minor
>
> When i use the verifier in Intellij IDEA, the verifier is unable to find mvn in the path. I don't have the problem on Linux/Windows XP. 
> The path is set properly
> {noformat}
> org.apache.maven.it.VerificationException: org.apache.maven.it.util.cli.CommandLineException: Error while executing process.
> 	at org.apache.maven.it.Verifier.executeGoals(Verifier.java:907)
> 	at org.apache.maven.it.Verifier.executeGoal(Verifier.java:780)
> 	at org.apache.maven.it.Verifier.executeGoal(Verifier.java:774)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.executeMojo(AbstractEarPluginTestCase.java:84)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.executeMojo(AbstractEarPluginTestCase.java:114)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.doTestProject(AbstractEarPluginTestCase.java:132)
> 	at org.apache.maven.plugin.ear.AbstractEarPluginTestCase.doTestProject(AbstractEarPluginTestCase.java:161)
> 	at org.apache.maven.plugin.ear.EarMojoTest.testProject038(EarMojoTest.java:411)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
> Caused by: org.apache.maven.it.util.cli.CommandLineException: Error while executing process.
> 	at org.apache.maven.it.util.cli.Commandline.execute(Commandline.java:737)
> 	at org.apache.maven.it.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:101)
> 	at org.apache.maven.it.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:87)
> 	at org.apache.maven.it.Verifier.executeGoals(Verifier.java:901)
> 	... 23 more
> Caused by: java.io.IOException: mvn: not found
> 	at java.lang.UNIXProcess.forkAndExec(Native Method)
> 	at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
> 	at java.lang.ProcessImpl.start(ProcessImpl.java:91)
> 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
> 	at java.lang.Runtime.exec(Runtime.java:591)
> 	at org.apache.maven.it.util.cli.Commandline.execute(Commandline.java:732)
> 	... 26 more
> {noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira