Skip to content

pom.xml missing config for application class #3

Description

@uvwild

The spring-boot-maven-plugin in the pom.xml is missing the configuration for the main class causing spring-boot:run to fail with a ClassNotFound exception!

Adding the following configuration to the pom solves the issue!!!

        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <mainClass>example.App</mainClass>
                <layout>ZIP</layout>
            </configuration>
        </plugin>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions