Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 我发现,WSO2 maven构建失败无法在项目上执行goal org.codehaus.mojo:exec maven plugin:1.2:exec(默认值),IOException_Java_Eclipse_Maven_Wso2esb - Fatal编程技术网

Java 我发现,WSO2 maven构建失败无法在项目上执行goal org.codehaus.mojo:exec maven plugin:1.2:exec(默认值),IOException

Java 我发现,WSO2 maven构建失败无法在项目上执行goal org.codehaus.mojo:exec maven plugin:1.2:exec(默认值),IOException,java,eclipse,maven,wso2esb,Java,Eclipse,Maven,Wso2esb,当我在调试模式下通过命令提示符手动运行maven脚本时,我得到以下错误 [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.586 s [INFO] Finished at: 2017-07-04T10:38:08+05:30 [INFO] Final Memory: 8M/113M [INFO] ----

当我在调试模式下通过命令提示符手动运行maven脚本时,我得到以下错误

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.586 s
[INFO] Finished at: 2017-07-04T10:38:08+05:30
[INFO] Final Memory: 8M/113M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (default) on project ProjectSynapseConfigs: Command execution failed. Cannot run program "mvn" (in directory "D:\location\project\ProjectSynapseConfigs\target\capp"): CreateProcess error=2, The system cannot find the file specified -> [Help 1]
详细错误:[错误]未能在项目名称SynapseConfigs上执行目标org.codehaus.mojo:exec maven插件:1.2:exec(默认值):命令执行失败:无法运行程序“mvn”(在目录“D:\codelocation\ProjectSynapseConfigs\target\capp”中):CreateProcess错误=2,系统找不到指定的文件->[帮助1]
org.apache.maven.lifecycle.LifecycleExecutionException:未能在项目上执行目标org.codehaus.mojo:exec maven插件:1.2:exec(默认值)SynapseConfigs:命令执行失败。
位于org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
位于org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
位于org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
位于org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
位于org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
位于org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
位于org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
位于org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
位于org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
位于org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
位于org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处
位于sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)中
位于java.lang.reflect.Method.invoke(Method.java:498)
位于org.codehaus.plexus.classworlds.launcher.launcher.launchEnhanced(launcher.java:289)
位于org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:229)
位于org.codehaus.plexus.classworlds.launcher.launcher.mainWithExitCode(launcher.java:415)
位于org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:356)
原因:org.apache.maven.plugin.MojoExecutionException:命令执行失败。
位于org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:350)
位于org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
位于org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20多
原因:java.io.IOException:无法运行程序“mvn”(在目录“D:\codelocation\ProjectSynapseConfigs\target\capp”中):CreateProcess error=2,系统找不到指定的文件
位于java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
位于java.lang.Runtime.exec(Runtime.java:620)
位于org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
位于org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:246)
位于org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:302)
位于org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
位于org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:589)
位于org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:335)
... 还有22个
原因:java.io.IOException:CreateProcess error=2,系统找不到指定的文件
在java.lang.ProcessImpl.create(本机方法)
位于java.lang.ProcessImpl。(ProcessImpl.java:386)
在java.lang.ProcessImpl.start(ProcessImpl.java:137)
位于java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 还有29个
因为它声明IOException,所以它是否希望对任何文件或条目进行更改。 Pom.xml

    Detailed error:[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (default) on project ProjectnameSynapseConfigs: Command execution failed.: Cannot run program "mvn" (in directory "D:\codelocation\ProjectSynapseConfigs\target\capp"): CreateProcess error=2, The system cannot find the file specified -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (default) on project ProjectSynapseConfigs: Command execution failed.
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
            at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
            at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
            at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
            at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
            at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
            at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
            at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution failed.
            at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:350)
            at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
            ... 20 more
    Caused by: java.io.IOException: Cannot run program "mvn" (in directory "D:\codelocation\ProjectSynapseConfigs\target\capp"): CreateProcess error=2, The system cannot find the file specified
            at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
            at java.lang.Runtime.exec(Runtime.java:620)
            at org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
            at org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:246)
            at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:302)
            at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
            at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:589)
            at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:335)
            ... 22 more
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
            at java.lang.ProcessImpl.create(Native Method)
            at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
            at java.lang.ProcessImpl.start(ProcessImpl.java:137)
            at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
            ... 29 more

4.0.0
com.wso2.esb.projectSynapseConfigs
projectSynapseConfigs
1.0.0
聚甲醛
projectSynapseConfigs
projectSynapseConfigs
目标/capp
org.codehaus.mojo
execmaven插件
1.2
真的
安装
执行官
mvn
${project.build.directory}
清洁的
安装
-Dmaven.test.skip=${maven.test.skip}
maven eclipse插件
2.9
org.wso2.developerstudio.eclipse.esb.project.nature
org.wso2.maven
wso2 esb代理插件
2.0.3
真的
代理
过程资源
聚甲醛发生器
.
${artifact.types}
每日的
忽视
wso2连接
http://maven.wso2.org/nexus/content/groups/wso2-public/
每日的
忽视
wso2连接
http://maven.wso2.org/nexus/content/groups/wso2-public/
假的
bpel/workflow=zip、lib/registry/filter=jar、webapp/jaxws=war、lib/library/bundle=jar、service/dataservice=dbs、synapse/local entry=xml、synapse/proxy-
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.wso2.esb.projectSynapseConfigs</groupId>
  <artifactId>projectSynapseConfigs</artifactId>
  <version>1.0.0</version>
  <packaging>pom</packaging>
  <name>projectSynapseConfigs</name>
  <description>projectSynapseConfigs</description>
  <build>
    <directory>target/capp</directory>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>1.2</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <phase>install</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <executable>mvn</executable>
              <workingDirectory>${project.build.directory}</workingDirectory>
              <arguments>
                <argument>clean</argument>
                <argument>install</argument>
                <argument>-Dmaven.test.skip=${maven.test.skip}</argument>
              </arguments>
            </configuration>
          </execution>
        </executions>
        <configuration />
      </plugin>
      <plugin>
        <artifactId>maven-eclipse-plugin</artifactId>
        <version>2.9</version>
        <configuration>
          <buildcommands />
          <projectnatures>
            <projectnature>org.wso2.developerstudio.eclipse.esb.project.nature</projectnature>
          </projectnatures>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.wso2.maven</groupId>
        <artifactId>wso2-esb-proxy-plugin</artifactId>
        <version>2.0.3</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <id>proxy</id>
            <phase>process-resources</phase>
            <goals>
              <goal>pom-gen</goal>
            </goals>
            <configuration>
              <artifactLocation>.</artifactLocation>
              <typeList>${artifact.types}</typeList>
            </configuration>
          </execution>
        </executions>
        <configuration />
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <releases>
        <updatePolicy>daily</updatePolicy>
        <checksumPolicy>ignore</checksumPolicy>
      </releases>
      <id>wso2-nexus</id>
      <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <releases>
        <updatePolicy>daily</updatePolicy>
        <checksumPolicy>ignore</checksumPolicy>
      </releases>
      <id>wso2-nexus</id>
      <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
    </pluginRepository>
  </pluginRepositories>
  <properties>
    <maven.test.skip>false</maven.test.skip>
    <CApp.type>bpel/workflow=zip,lib/registry/filter=jar,webapp/jaxws=war,lib/library/bundle=jar,service/dataservice=dbs,synapse/local-entry=xml,synapse/proxy-service=xml,carbon/application=car,registry/resource=zip,lib/dataservice/validator=jar,synapse/endpoint=xml,web/application=war,lib/carbon/ui=jar,service/axis2=aar,synapse/sequence=xml,synapse/configuration=xml,wso2/gadget=dar,lib/registry/handlers=jar,lib/synapse/mediator=jar</CApp.type>
  </properties>
</project>