The command line runs the packaged jar package:
leung@wuyujin simple-webservice-server % java -jar target/sample-1.0-SNAPSHOT.jar 7896
target/sample-1.0-SNAPSHOT.jar There is no master list property in the
Error reason: there is no manifest
file in the packaged jar package, which has two lines of configuration, about the full path of the startup class of jar package
0
Add Maven plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.coffee.bee.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
Plugins
pluginManagement > plugins
Read More:
- Springboot package error: failed to execute goal org.apache.maven.plugins:maven-resources-plugin: 3.2.0…
- [Solved] Maven log jar package conflict error: Class path contains multiple SLF4J bindings
- Maven package error: [WARNING] The POM for xxx is missing, no dependency inform
- How to Solve Maven Error: Failure to transfer com.thoughtworks.xstream:xstream:jar:1.3.1 from https://repo.maven.ap
- [Solved] presto Compile Error: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check
- Prompt unknown error in pom.xml of Maven project
- Log jar package conflict error: Class path contains multiple SLF4J bindings
- IDEA reports an error. Error XXX reports an error. The class cannot be found
- Maven compiles Scala and reports an error stackoverflowerror
- laravel Error mews/captcha is locked to version 3.2.4 and an update of this package was not requested.
- Maven Error: Missing artifact jdk.tools:jdk.tools:jar:1.7
- Maven Configurate Error: [ERROR] Error executing Maven. [ERROR] 1 problem was encountered while building the effec
- [Solved] ERROR–Unable to process Jar entry [module-info.class] from Jar
- [Solved] Read file XXX /pom.xml Error when Maven is configured in idea
- [Solved] scala Error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exe
- [Solved] kubeflow pipeline visualization component Error: WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager…
- [Maven Error] Exception in thread “main” java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
- Nexus3 builds Jenkins error: Not authorized (Downloading dependent jar package error)
- [Solved] FileUploadException: the request was rejected because no multipart boundary was found
- [Solved] Sparksql error: Exception in thread “main” org.apache.spark.sql.catalyst.errors.package$TreeNodeException