title: JavaFx 12 Spring, Maven No plugin found for prefix
body: <p>I have a problem trying to debug a project with javafx and spring</p>
  
  <p>my pom. xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;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"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;2.1.7.RELEASE&lt;/version&gt;
          &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
      &lt;groupId&gt;com.example&lt;/groupId&gt;
      &lt;artifactId&gt;javafx&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;javafx&lt;/name&gt;
      &lt;description&gt;Demo project for Spring Boot&lt;/description&gt;
  
      &lt;properties&gt;
          &lt;java.version&gt;12&lt;/java.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
         &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-controls&lt;/artifactId&gt;
              &lt;version&gt;12.0.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-fxml&lt;/artifactId&gt;
              &lt;version&gt;12.0.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-mail&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-quartz&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
              &lt;optional&gt;true&lt;/optional&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>my main:</p>
  
  <blockquote>
  <pre><code>@Override
  public void start(Stage primaryStage) throws Exception {
      // TODO Auto-generated method stub
      context = SpringApplication.run(JavafxApplication.class);
      FXMLLoader loader = new FXMLLoader(JavafxApplication.class.getResource("/Home.fxml"));
      loader.setControllerFactory(context::getBean);
      Scene scene = new Scene(loader.load());
      primaryStage.setScene(scene);
      primaryStage.show();
  }
  </code></pre>
  </blockquote>
  
  <p>I have these errors when trying to compile with maven:</p>
  
  <blockquote>
    <p>[INFO] Scanning for projects... [WARNING] The POM for
    org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency
    information available [WARNING] Failed to retrieve plugin descriptor
    for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin
    org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies
    could not be resolved: Failure to find
    org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in
    <a href="https://repo.maven.apache.org/maven2" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2</a> was cached in the local
    repository, resolution will not be reattempted until the update
    interval of central has elapsed or updates are forced [INFO]
    Downloading from :
    <a href="https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml</a>
    [INFO] Downloading from :
    <a href="https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml</a>
    [INFO] Downloaded from :
    <a href="https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml</a>
    (14 kB at 9.1 kB/s) [INFO] Downloaded from :
    <a href="https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml</a>
    (20 kB at 12 kB/s) [INFO]
    ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
    ------------------------------------------------------------------------ [INFO] Total time:  2.867 s [INFO] Finished at:
    2019-08-08T01:13:18-03:00 [INFO]
    ------------------------------------------------------------------------ [ERROR] No plugin found for prefix 'javafx' in the current project and
    in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]
    available from the repositories [local
    (C:\Users\Gabriel.m2\repository), central
    (<a href="https://repo.maven.apache.org/maven2)]" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2)]</a> -> [Help 1] [ERROR]  [ERROR]
    To see the full stack trace of the errors, re-run Maven with the -e
    switch. [ERROR] Re-run Maven using the -X switch to enable full debug
    logging. [ERROR]  [ERROR] For more information about the errors and
    possible solutions, please read the following articles: [ERROR] [Help
    1]
    <a href="http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException" rel="nofollow noreferrer">http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException</a></p>
  </blockquote>
  
  <p>I went to run configurations and make this:</p>
  
  <p><a href="https://i.stack.imgur.com/AZZQi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AZZQi.png" alt="enter image description here"></a></p>