1: Running jar package in Linux environment, unable to find main
Reason: pom is missing configuration
Add the following to the pom file
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Read More:
- [Solved] jar Run Error: no main manifest attribute
- [Solved] tomcat Startup Error: java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
- Springboot Project: How to Introduces Local Jar Package
- [Solved] Maven Project Packaging Error: Unable to find main class
- [Solved] Hadoop Error: Exception in thread “main“ java.io.IOException: Error opening job jar: /usr/local/hadoop-2.
- Failed to scan osdt_cert.jar & osdt_core.jar [How to Solve]
- Problems and causes of Java’s main function format (public static void main (string args()))
- [Solved] Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
- Java Error: No enclosing instance of type Main is accessible. Must qualify the allocation with an encl
- [Solved] Springboot Package jar and Startup Error: It was loaded from the following location
- [Solved] SpringBoot Microservices: Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded dat
- Error assembling War: webxml attribute is required
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could [Solved]
- [Solved] JDK Install Error /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
- [Solved] Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource
- [Solved] jar file Execute Error: power shell error: unable to access jarfile
- idea Error: Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource
- How to Solve JasperFillManager.fillReport Stuck issue (No Error and No Processing)
- [Solved] qrcode-error: Exception in thread “main” java.lang.NoClassDefFoundError…
- [Solved] Maven Package Error: Error assembling JAR