[Solved] Jar error on Linux: no main manifest attribute

[Solved] Jar Error On Linux: No Main Manifest Attribute

1: Running jar package deal in Linux surroundings, unable to seek out main

Reason: pom is lacking configuration

Add the next to the pom file

<construct>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <targets>
                            <purpose>repackage</purpose>
                        </targets>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </construct>

Leave a Reply

Your email address will not be published. Required fields are marked *