Start JavaFX Spring project with 'mvn spring-boot:run'












0















How can I start a spring-boot project in place with maven that extends javafx.application.Application that contains no main method? Every time I try to start it with maven the error below gets shown.



Error message:




[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) on project chatClient: An exception occurred while running. The specified mainClass doesn't contain a main method with appropriate signature.: XX.XXX.ChatClient.main([Ljava.lang.String;) -> [Help 1]




pom.xml



<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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>XX.XXX</groupId>
<artifactId>chatClient</artifactId>
<version>1.1.4</version>
<packaging>jar</packaging>

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

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<start-class>XX.XXX.ChatClient</start-class>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>${start-class}</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>


ChatClient.java



import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import java.io.IOException;

@SpringBootApplication
public class ChatClient extends Application {

private ConfigurableApplicationContext springContext;
private Parent root;

@Override
public void init() throws IOException {
springContext = SpringApplication.run(ChatClient.class);

FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/view/root.fxml"));
fxmlLoader.setControllerFactory(springContext::getBean);
root = fxmlLoader.load();
}

@Override
public void start(Stage primaryStage) {
primaryStage.setScene(new Scene(root));
primaryStage.setTitle("Chat client");
primaryStage.centerOnScreen();
primaryStage.show();
}

@Override
public void stop() {
springContext.stop();
}
}


root.fxml



<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.layout.BorderPane?>
<BorderPane></BorderPane>









share|improve this question





























    0















    How can I start a spring-boot project in place with maven that extends javafx.application.Application that contains no main method? Every time I try to start it with maven the error below gets shown.



    Error message:




    [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) on project chatClient: An exception occurred while running. The specified mainClass doesn't contain a main method with appropriate signature.: XX.XXX.ChatClient.main([Ljava.lang.String;) -> [Help 1]




    pom.xml



    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://maven.apache.org/POM/4.0.0"
    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>XX.XXX</groupId>
    <artifactId>chatClient</artifactId>
    <version>1.1.4</version>
    <packaging>jar</packaging>

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

    <properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <start-class>XX.XXX.ChatClient</start-class>
    </properties>

    <dependencies>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter</artifactId>
    </dependency>
    </dependencies>

    <build>
    <plugins>
    <plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <configuration>
    <mainClass>${start-class}</mainClass>
    </configuration>
    <executions>
    <execution>
    <goals>
    <goal>repackage</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    </plugins>
    </build>
    </project>


    ChatClient.java



    import javafx.application.Application;
    import javafx.fxml.FXMLLoader;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    import org.springframework.boot.SpringApplication;
    import org.springframework.boot.autoconfigure.SpringBootApplication;
    import org.springframework.context.ConfigurableApplicationContext;
    import java.io.IOException;

    @SpringBootApplication
    public class ChatClient extends Application {

    private ConfigurableApplicationContext springContext;
    private Parent root;

    @Override
    public void init() throws IOException {
    springContext = SpringApplication.run(ChatClient.class);

    FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/view/root.fxml"));
    fxmlLoader.setControllerFactory(springContext::getBean);
    root = fxmlLoader.load();
    }

    @Override
    public void start(Stage primaryStage) {
    primaryStage.setScene(new Scene(root));
    primaryStage.setTitle("Chat client");
    primaryStage.centerOnScreen();
    primaryStage.show();
    }

    @Override
    public void stop() {
    springContext.stop();
    }
    }


    root.fxml



    <?xml version="1.0" encoding="UTF-8"?>

    <?import javafx.scene.layout.BorderPane?>
    <BorderPane></BorderPane>









    share|improve this question



























      0












      0








      0








      How can I start a spring-boot project in place with maven that extends javafx.application.Application that contains no main method? Every time I try to start it with maven the error below gets shown.



      Error message:




      [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) on project chatClient: An exception occurred while running. The specified mainClass doesn't contain a main method with appropriate signature.: XX.XXX.ChatClient.main([Ljava.lang.String;) -> [Help 1]




      pom.xml



      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://maven.apache.org/POM/4.0.0"
      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>XX.XXX</groupId>
      <artifactId>chatClient</artifactId>
      <version>1.1.4</version>
      <packaging>jar</packaging>

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

      <properties>
      <maven.compiler.source>1.8</maven.compiler.source>
      <maven.compiler.target>1.8</maven.compiler.target>
      <start-class>XX.XXX.ChatClient</start-class>
      </properties>

      <dependencies>
      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter</artifactId>
      </dependency>
      </dependencies>

      <build>
      <plugins>
      <plugin>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-maven-plugin</artifactId>
      <configuration>
      <mainClass>${start-class}</mainClass>
      </configuration>
      <executions>
      <execution>
      <goals>
      <goal>repackage</goal>
      </goals>
      </execution>
      </executions>
      </plugin>
      </plugins>
      </build>
      </project>


      ChatClient.java



      import javafx.application.Application;
      import javafx.fxml.FXMLLoader;
      import javafx.scene.Parent;
      import javafx.scene.Scene;
      import javafx.stage.Stage;
      import org.springframework.boot.SpringApplication;
      import org.springframework.boot.autoconfigure.SpringBootApplication;
      import org.springframework.context.ConfigurableApplicationContext;
      import java.io.IOException;

      @SpringBootApplication
      public class ChatClient extends Application {

      private ConfigurableApplicationContext springContext;
      private Parent root;

      @Override
      public void init() throws IOException {
      springContext = SpringApplication.run(ChatClient.class);

      FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/view/root.fxml"));
      fxmlLoader.setControllerFactory(springContext::getBean);
      root = fxmlLoader.load();
      }

      @Override
      public void start(Stage primaryStage) {
      primaryStage.setScene(new Scene(root));
      primaryStage.setTitle("Chat client");
      primaryStage.centerOnScreen();
      primaryStage.show();
      }

      @Override
      public void stop() {
      springContext.stop();
      }
      }


      root.fxml



      <?xml version="1.0" encoding="UTF-8"?>

      <?import javafx.scene.layout.BorderPane?>
      <BorderPane></BorderPane>









      share|improve this question
















      How can I start a spring-boot project in place with maven that extends javafx.application.Application that contains no main method? Every time I try to start it with maven the error below gets shown.



      Error message:




      [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) on project chatClient: An exception occurred while running. The specified mainClass doesn't contain a main method with appropriate signature.: XX.XXX.ChatClient.main([Ljava.lang.String;) -> [Help 1]




      pom.xml



      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://maven.apache.org/POM/4.0.0"
      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>XX.XXX</groupId>
      <artifactId>chatClient</artifactId>
      <version>1.1.4</version>
      <packaging>jar</packaging>

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

      <properties>
      <maven.compiler.source>1.8</maven.compiler.source>
      <maven.compiler.target>1.8</maven.compiler.target>
      <start-class>XX.XXX.ChatClient</start-class>
      </properties>

      <dependencies>
      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter</artifactId>
      </dependency>
      </dependencies>

      <build>
      <plugins>
      <plugin>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-maven-plugin</artifactId>
      <configuration>
      <mainClass>${start-class}</mainClass>
      </configuration>
      <executions>
      <execution>
      <goals>
      <goal>repackage</goal>
      </goals>
      </execution>
      </executions>
      </plugin>
      </plugins>
      </build>
      </project>


      ChatClient.java



      import javafx.application.Application;
      import javafx.fxml.FXMLLoader;
      import javafx.scene.Parent;
      import javafx.scene.Scene;
      import javafx.stage.Stage;
      import org.springframework.boot.SpringApplication;
      import org.springframework.boot.autoconfigure.SpringBootApplication;
      import org.springframework.context.ConfigurableApplicationContext;
      import java.io.IOException;

      @SpringBootApplication
      public class ChatClient extends Application {

      private ConfigurableApplicationContext springContext;
      private Parent root;

      @Override
      public void init() throws IOException {
      springContext = SpringApplication.run(ChatClient.class);

      FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/view/root.fxml"));
      fxmlLoader.setControllerFactory(springContext::getBean);
      root = fxmlLoader.load();
      }

      @Override
      public void start(Stage primaryStage) {
      primaryStage.setScene(new Scene(root));
      primaryStage.setTitle("Chat client");
      primaryStage.centerOnScreen();
      primaryStage.show();
      }

      @Override
      public void stop() {
      springContext.stop();
      }
      }


      root.fxml



      <?xml version="1.0" encoding="UTF-8"?>

      <?import javafx.scene.layout.BorderPane?>
      <BorderPane></BorderPane>






      java maven spring-boot javafx spring-boot-maven-plugin






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 27 '18 at 10:38







      XXLPitu

















      asked Nov 26 '18 at 13:14









      XXLPituXXLPitu

      32




      32
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Replace:



           <plugin>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-maven-plugin</artifactId>
          <configuration>
          <mainClass>${start-class}</mainClass>
          </configuration>
          <executions>
          <execution>
          <goals>
          <goal>repackage</goal>
          </goals>
          </execution>
          </executions>
          </plugin>


          with:



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


          There is no need to specify mainClass.



          Here you have a full example.



          UPDATE



          Now I notice you do not have a main method. Add this code to ChatClient class:



          public static void main(String args) {
          Application.launch(ChatClient.class, args);
          }





          share|improve this answer


























          • If I do the proposed changes it can't find the main class. [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) on project chatClient: Unable to find a suitable main class, please add a 'mainClass'property -> [Help 1]

            – XXLPitu
            Nov 26 '18 at 13:34













          • @XXLPitu How do you run it? With mvn spring-boot:run?

            – user10639668
            Nov 26 '18 at 13:45











          • Yes, I run mvn spring-boot:run where the pom is located.

            – XXLPitu
            Nov 26 '18 at 13:54













          • @XXLPitu See my updated answer.

            – user10639668
            Nov 26 '18 at 14:21











          • Thanks a lot, that seemed to have been the trick. I've assumed I don't need it since IntelliJ can start it with no main method.

            – XXLPitu
            Nov 26 '18 at 14:48














          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53481926%2fstart-javafx-spring-project-with-mvn-spring-bootrun%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Replace:



           <plugin>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-maven-plugin</artifactId>
          <configuration>
          <mainClass>${start-class}</mainClass>
          </configuration>
          <executions>
          <execution>
          <goals>
          <goal>repackage</goal>
          </goals>
          </execution>
          </executions>
          </plugin>


          with:



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


          There is no need to specify mainClass.



          Here you have a full example.



          UPDATE



          Now I notice you do not have a main method. Add this code to ChatClient class:



          public static void main(String args) {
          Application.launch(ChatClient.class, args);
          }





          share|improve this answer


























          • If I do the proposed changes it can't find the main class. [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) on project chatClient: Unable to find a suitable main class, please add a 'mainClass'property -> [Help 1]

            – XXLPitu
            Nov 26 '18 at 13:34













          • @XXLPitu How do you run it? With mvn spring-boot:run?

            – user10639668
            Nov 26 '18 at 13:45











          • Yes, I run mvn spring-boot:run where the pom is located.

            – XXLPitu
            Nov 26 '18 at 13:54













          • @XXLPitu See my updated answer.

            – user10639668
            Nov 26 '18 at 14:21











          • Thanks a lot, that seemed to have been the trick. I've assumed I don't need it since IntelliJ can start it with no main method.

            – XXLPitu
            Nov 26 '18 at 14:48


















          0














          Replace:



           <plugin>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-maven-plugin</artifactId>
          <configuration>
          <mainClass>${start-class}</mainClass>
          </configuration>
          <executions>
          <execution>
          <goals>
          <goal>repackage</goal>
          </goals>
          </execution>
          </executions>
          </plugin>


          with:



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


          There is no need to specify mainClass.



          Here you have a full example.



          UPDATE



          Now I notice you do not have a main method. Add this code to ChatClient class:



          public static void main(String args) {
          Application.launch(ChatClient.class, args);
          }





          share|improve this answer


























          • If I do the proposed changes it can't find the main class. [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) on project chatClient: Unable to find a suitable main class, please add a 'mainClass'property -> [Help 1]

            – XXLPitu
            Nov 26 '18 at 13:34













          • @XXLPitu How do you run it? With mvn spring-boot:run?

            – user10639668
            Nov 26 '18 at 13:45











          • Yes, I run mvn spring-boot:run where the pom is located.

            – XXLPitu
            Nov 26 '18 at 13:54













          • @XXLPitu See my updated answer.

            – user10639668
            Nov 26 '18 at 14:21











          • Thanks a lot, that seemed to have been the trick. I've assumed I don't need it since IntelliJ can start it with no main method.

            – XXLPitu
            Nov 26 '18 at 14:48
















          0












          0








          0







          Replace:



           <plugin>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-maven-plugin</artifactId>
          <configuration>
          <mainClass>${start-class}</mainClass>
          </configuration>
          <executions>
          <execution>
          <goals>
          <goal>repackage</goal>
          </goals>
          </execution>
          </executions>
          </plugin>


          with:



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


          There is no need to specify mainClass.



          Here you have a full example.



          UPDATE



          Now I notice you do not have a main method. Add this code to ChatClient class:



          public static void main(String args) {
          Application.launch(ChatClient.class, args);
          }





          share|improve this answer















          Replace:



           <plugin>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-maven-plugin</artifactId>
          <configuration>
          <mainClass>${start-class}</mainClass>
          </configuration>
          <executions>
          <execution>
          <goals>
          <goal>repackage</goal>
          </goals>
          </execution>
          </executions>
          </plugin>


          with:



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


          There is no need to specify mainClass.



          Here you have a full example.



          UPDATE



          Now I notice you do not have a main method. Add this code to ChatClient class:



          public static void main(String args) {
          Application.launch(ChatClient.class, args);
          }






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 26 '18 at 14:21

























          answered Nov 26 '18 at 13:26







          user10639668




















          • If I do the proposed changes it can't find the main class. [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) on project chatClient: Unable to find a suitable main class, please add a 'mainClass'property -> [Help 1]

            – XXLPitu
            Nov 26 '18 at 13:34













          • @XXLPitu How do you run it? With mvn spring-boot:run?

            – user10639668
            Nov 26 '18 at 13:45











          • Yes, I run mvn spring-boot:run where the pom is located.

            – XXLPitu
            Nov 26 '18 at 13:54













          • @XXLPitu See my updated answer.

            – user10639668
            Nov 26 '18 at 14:21











          • Thanks a lot, that seemed to have been the trick. I've assumed I don't need it since IntelliJ can start it with no main method.

            – XXLPitu
            Nov 26 '18 at 14:48





















          • If I do the proposed changes it can't find the main class. [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) on project chatClient: Unable to find a suitable main class, please add a 'mainClass'property -> [Help 1]

            – XXLPitu
            Nov 26 '18 at 13:34













          • @XXLPitu How do you run it? With mvn spring-boot:run?

            – user10639668
            Nov 26 '18 at 13:45











          • Yes, I run mvn spring-boot:run where the pom is located.

            – XXLPitu
            Nov 26 '18 at 13:54













          • @XXLPitu See my updated answer.

            – user10639668
            Nov 26 '18 at 14:21











          • Thanks a lot, that seemed to have been the trick. I've assumed I don't need it since IntelliJ can start it with no main method.

            – XXLPitu
            Nov 26 '18 at 14:48



















          If I do the proposed changes it can't find the main class. [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) on project chatClient: Unable to find a suitable main class, please add a 'mainClass'property -> [Help 1]

          – XXLPitu
          Nov 26 '18 at 13:34







          If I do the proposed changes it can't find the main class. [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) on project chatClient: Unable to find a suitable main class, please add a 'mainClass'property -> [Help 1]

          – XXLPitu
          Nov 26 '18 at 13:34















          @XXLPitu How do you run it? With mvn spring-boot:run?

          – user10639668
          Nov 26 '18 at 13:45





          @XXLPitu How do you run it? With mvn spring-boot:run?

          – user10639668
          Nov 26 '18 at 13:45













          Yes, I run mvn spring-boot:run where the pom is located.

          – XXLPitu
          Nov 26 '18 at 13:54







          Yes, I run mvn spring-boot:run where the pom is located.

          – XXLPitu
          Nov 26 '18 at 13:54















          @XXLPitu See my updated answer.

          – user10639668
          Nov 26 '18 at 14:21





          @XXLPitu See my updated answer.

          – user10639668
          Nov 26 '18 at 14:21













          Thanks a lot, that seemed to have been the trick. I've assumed I don't need it since IntelliJ can start it with no main method.

          – XXLPitu
          Nov 26 '18 at 14:48







          Thanks a lot, that seemed to have been the trick. I've assumed I don't need it since IntelliJ can start it with no main method.

          – XXLPitu
          Nov 26 '18 at 14:48






















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53481926%2fstart-javafx-spring-project-with-mvn-spring-bootrun%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Costa Masnaga

          Fotorealismo

          Sidney Franklin