Netbeans Java - Failed to execute Goal org.codehaus.mojo:exec-Maven-plugin:1.5.0:exec (default-cli) on project Sintetizee:

Asked

Viewed 85 times

-1

When I try to run my Java file in Netbeans, this error appears

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

This is my pom.xml file

<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mycompany</groupId>
    <artifactId>Sintetizee</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
</project>

I have already tried to give the mvn clean install command and it appears "build Failure", I have reinstalled Netbeans and nothing. The version of my Java is 1.8.0.111

1 answer

0

It can be the Netbeans cache. Do the sequinte, close Netbeans and move everything from folders:

C:\Users\User\AppData\Local\NetBeans\Cache

C:\Users\User\AppData\Roaming\NetBeans\12.0\var

(substitute User by your user and 12.0 for its version of Nb)
Now open the Netbeans. If he wants to import any data from some other version of it installed, say no.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.