2015-01-01 7 views
0

Netbeans IDE 8.0.2 및 jre8을 사용하여 Sphinx4 데모 응용 프로그램을 구현하려고합니다. 그것은 성공적으로 구축됩니다.Sphinx4 데모 응용 프로그램을 실행하는 동안 MojoExecutionException이 발생했습니다.

enter image description here

그러나 나는 다음과 같은 오류가 메인 클래스로 edu.cmu.Sphinx4.demo.DemoRunner.java을 설정 한 후 프로젝트를 실행하려고 할 때.

enter image description here

오류가

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project sphinx4-samples: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1] 

To see the full stack trace of the errors, re-run Maven with the -e switch. 
Re-run Maven using the -X switch to enable full debug logging. 

For more information about the errors and possible solutions, please read the following articles: 
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 

은 pom.xml 파일이 내가 잘못했을 있나요

<project 
    xmlns="http://maven.apache.org/POM/4.0.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
    http://maven.apache.org/maven-v4_0_0.xsd"> 
    <modelVersion>4.0.0</modelVersion> 

    <parent> 
    <groupId>edu.cmu.sphinx</groupId> 
    <artifactId>sphinx4-parent</artifactId> 
    <version>1.0-SNAPSHOT</version> 
    </parent> 

    <artifactId>sphinx4-samples</artifactId> 
    <packaging>jar</packaging> 

    <name>Sphinx4 demo applications</name> 

    <dependencies> 
    <dependency> 
     <groupId>edu.cmu.sphinx</groupId> 
     <artifactId>sphinx4-core</artifactId> 
     <version>1.0-SNAPSHOT</version> 
    </dependency> 
    <dependency> 
     <groupId>edu.cmu.sphinx</groupId> 
     <artifactId>sphinx4-data</artifactId> 
     <version>1.0-SNAPSHOT</version> 
    </dependency> 
    </dependencies> 

    <build> 
    <plugins> 
     <plugin> 
     <artifactId>maven-assembly-plugin</artifactId> 
     <configuration> 
      <archive> 
      <manifest> 
       <addClasspath>true</addClasspath> 
       <mainClass>edu.cmu.sphinx.demo.DemoRunner</mainClass> 
      </manifest> 
      </archive> 
      <descriptorRefs> 
      <descriptorRef>jar-with-dependencies</descriptorRef> 
      </descriptorRefs> 
     </configuration> 
     <executions> 
      <execution> 
      <phase>package</phase> 
      <goals> 
       <goal>single</goal> 
      </goals> 
      </execution> 
     </executions> 
     </plugin> 

    <plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-javadoc-plugin</artifactId> 
    <version>2.9</version> 
    <executions> 
     <execution> 
      <id>attach-javadocs</id> 
      <goals> 
       <goal>jar</goal> 
      </goals> 
      <configuration> 
       <additionalparam>-Xdoclint:none</additionalparam> 
      </configuration> 
     </execution> 
    </executions> 
    </plugin> 

    </plugins> 
    </build> 
</project> 

입니다 읽어?

답변

0

출력 로그에서 데모 프로그램은 데모 이름을 지정해야 할 필요가 있다고합니다. 그렇지 않으면 오류 상태와 함께 종료됩니다.

edu.cmu.sphinx.demo.transcriber.TranscriberDemo와 같은 특정 데모를 사용하려면 인수없이 실행해야합니다.