Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

打成jar包之后,不能运行,提示没有main方法 #14

Closed
RhineDream opened this issue Jun 4, 2020 · 1 comment
Closed

打成jar包之后,不能运行,提示没有main方法 #14

RhineDream opened this issue Jun 4, 2020 · 1 comment

Comments

@RhineDream
Copy link

打成jar包之后,不能运行,提示没有main方法,什么原因呀

@hylexus
Copy link
Owner

hylexus commented Jun 6, 2020

@RhineDream spring-boot对应的plugin的 goalmainClass 是否配置正确?

            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>xxx</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

@hylexus hylexus closed this as completed Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants