Java Maven javacv错误:org.apache.commons.exec.ExecuteException

时间:2019-10-20 14:02:40

标签: java maven opencv javacv

我在Maven上设置了javacv,但是却出现了这样的错误:

  

org.apache.commons.exec.ExecuteException:进程退出并显示   错误:1(退出值:1)在   org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)     在   org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)     在   org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)     在   org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)     在org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)处   org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)     在   org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)     在   org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)     在   org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)     在   org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)     在   org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)     在   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:307)处   org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)在   org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)在   org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)在   org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)在   org.apache.maven.cli.MavenCli.main(MavenCli.java:199)在   java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(本机   方法)   java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在   java.base / jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.base / java.lang.reflect.Method.invoke(Method.java:567)在   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)

这是Maven代码:

    <dependency>
        <groupId>org.bytedeco.javacpp-presets</groupId>
        <artifactId>tesseract</artifactId>
        <version>3.04-1.1</version>
    </dependency>  
    <dependency>
        <groupId>org.bytedeco.javacpp-presets</groupId>
        <artifactId>leptonica</artifactId>
        <version>1.72-1.1</version>
    </dependency>

    <dependency>
        <groupId>org.openpnp</groupId>
        <artifactId>opencv</artifactId>
        <version>3.4.2-0</version>
    </dependency>

0 个答案:

没有答案