Java 如何解决;WrapperSimpleApp:找不到类…”;在tanukisoftware包装中
运行tanukisoftware包装器时出错Java 如何解决;WrapperSimpleApp:找不到类…”;在tanukisoftware包装中,java,maven,wrapper,maven-assembly-plugin,Java,Maven,Wrapper,Maven Assembly Plugin,运行tanukisoftware包装器时出错 wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. jvm 1
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | WrapperSimpleApp: Unable to locate the class com.aplova.productimagesautouploader.ProductImagesAutoUploaderApplication.class: java.lang.ClassNotFoundException: com.aplova.productimagesautouploader.ProductImagesAutoUploaderApplication.class
jvm 1 |
jvm 1 | WrapperSimpleApp Usage:
jvm 1 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]
jvm 1 |
jvm 1 | Where:
jvm 1 | app_class: The fully qualified class name of the application to run.
jvm 1 | app_arguments: The arguments that would normally be passed to the
jvm 1 | application.
wrapper | <-- Wrapper Stopped
lib目录也有需要的jar文件。那么,如何解决这个错误。我找到了解决方案。此错误来自pom.xml。在波姆有
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
org.springframework.boot
springbootmaven插件
及
org.codehaus.mojo
appassembler maven插件
1.10
...
两个插件。但唯一需要的插件是appassembler maven插件。所以,在删除springbootmaven插件之后,它就开始工作了
总之,出现此错误是因为spring boot maven plugin
replacejar
文件,该文件由appassembler maven plugin
生成,谢谢,它正在与我一起工作。我使用SpringBoot2.4.0版本
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>1.10</version>
<configuration>
...