Skip to content

pom.xml missing config for application class #3

@uvwild

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>

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