Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:java (default-cli)

后端 未结 5 1270
感动是毒
感动是毒 2020-12-10 09:59

Im working on Smooks - Camel Integration.Im stuck with an error.The Build Fails when I try to Run it using mvn exec:java


相关标签:
5条回答
  • 2020-12-10 10:37

    To solve this problem in IntelliJ...
    1) Put your .fxml files into resources directory
    2) In the Start method define the path to .fxml file in the following way:
    Parent root = FXMLLoader.load(getClass().getResource("/sample.fxml"));
    The / seemed to solve this problem for me :)

    0 讨论(0)
  • 2020-12-10 10:44

    I had a similar problem.

    As it turned out, I ran mvn clean package install.

    Correct way is mvn clean install

    0 讨论(0)
  • 2020-12-10 10:44

    I had a similar problem with 'org.codehaus.mojo'-'jaxws-maven-plugin': could not resolve dependencies. Fortunately, I was able to do a Project > Clean in Eclipse, which resolved the issue.

    0 讨论(0)
  • 2020-12-10 10:48

    I had the same problem but after deleting the old plugin for org.codehaus.mojo it worked.

    I use this

    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>1.2</version>
    </plugin>
    
    0 讨论(0)
  • 2020-12-10 11:02

    Your problem is that you have declare twice the exec-maven-plugin :

    <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:\apache-camel-2.11.0\examples\camel-example-smooks-  
          integration\src\main\java\example\Main< /mainClass>
        </configuration>
    </plugin>
    

    ...

    < plugin>
        < groupId>org.codehaus.mojo</groupId>
        < artifactId>exec-maven-plugin</artifactId>
        < version>1.2</version>
    < /plugin>
    
    0 讨论(0)
提交回复
热议问题