当前位置:网站首页>No main manifest attribute in jar

No main manifest attribute in jar

2022-06-24 23:16:00 Programmer Jiuan

java The program uses maven hit jar The package run does not have a main manifest attribute

terms of settlement Add the following plug-ins

              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.0.2</version>
                <configuration>
                    <archive>
                        <manifest>
                            <addClasspath>true</addClasspath>
                            <!--  To run the full path of the main class -->
                            <mainClass>com.xx.xxxx</mainClass>
                        </manifest>
                    </archive>
                </configuration>
                </plugin>
原网站

版权声明
本文为[Programmer Jiuan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241745463763.html