Explain the function of static keyword and final keyword in Java in detail>>>
The shade plug-in is generated during packaging and can be deleted at any time
If you do not want to generate it, the configuration is as follows:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>a.b.c.Main</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
Similar Posts:
- Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace
- Maven no main manifest attribute when generate jar for project
- Intellij Pack the jar file error: “java.lang.SecurityException: Invalid signature file digest for Manifest main attrib
- [Solved] Unable to import Maven project: see logs for details when importing Maven dependent package of Spark Program
- [Solved] SpringBoot Project Package to jar Error: ClassNotFound…
- Run jar file under Linux system, prompt: no main manifest attribute, in xxx.jar [How to Solve]
- Unable to find a single main class from the following candidates [xxx,xxx]
- [Solved] The updated version of springboot causes no main manifest attribute
- [Solved] SpringBoot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-res
- No main manifest attribute when running Java – jar