2017-02-23 13 views
0

実行しようとするとこの問題が発生します私のプロジェクト。私のMavenプロジェクトを実行しようとしたときにエラーが発生しました:実行に失敗しましたorg.codehaus.mojo:exec-maven-plugin:1.2.1:exec(default-cli)

<parent> 
    <groupId>org.springframework.boot</groupId> 
    <artifactId>spring-boot-starter-parent</artifactId> 
    <version>1.5.1.RELEASE</version> 
</parent> 

<properties> 
    <java.version>1.8</java.version> 
</properties> 

<dependencies> 
    <!-- https://mvnrepository.com/artifact/org.codehaus.mojo/exec-maven-plugin --> 
    <dependency> 
     <groupId>org.codehaus.mojo</groupId> 
     <artifactId>exec-maven-plugin</artifactId> 
     <version>1.2.1</version> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework</groupId> 
     <artifactId>spring-web</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>com.fasterxml.jackson.core</groupId> 
     <artifactId>jackson-databind</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.apache.httpcomponents</groupId> 
     <artifactId>httpclient</artifactId> 
     <version>4.5</version> 
     <type>jar</type> 
    </dependency> 
</dependencies> 


<build> 
    <plugins> 
      <plugin> 
       <groupId>org.codehaus.mojo</groupId> 
       <artifactId>exec-maven-plugin</artifactId> 
       <version>1.2.1</version> 
       <executions> 
        <execution> 
         <goals> 
          <goal>java</goal> 
         </goals> 
        </execution> 
       </executions> 
       <configuration> 
        <mainClass>C:\Users\user\Documents\NetBeansProjects\projectName\src\main\java\com\company\projectName\Application</mainClass> 
       </configuration> 
      </plugin> 

     <plugin> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-maven-plugin</artifactId> 
     </plugin> 
    </plugins> 
</build> 

、私はいくつかのことを試してみたが、私は問題を解決することはできません。私のpom.xmlは次のようになり、私は、NetBeansを使用していると私は、Mavenのプロジェクトで働いてい

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project projectName: 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.

誰も私を助けることができますか?あなたの助けのための

感謝:)解決

答えて

0

問題は、私は自分のコードに別の回線に問題がありました。 ありがとう! :)

関連する問題