nm1*_*m10 5 java netbeans maven maven-jaxb2-plugin spring-boot
我在 Windows 上使用 Maven 将我的项目构建为一个可执行 jar,并且我想在 Linux 上运行我的 jar 文件。
我收到此错误:
18:43:15.482 [http-nio-8080-exec-7] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: BOOT-INF/classes/OPS/package-info (wrong name: OPS/package-info)] with root cause
java.lang.NoClassDefFoundError: BOOT-INF/classes/OPS/package-info (wrong name: OPS/package-info)
Run Code Online (Sandbox Code Playgroud)
在具有相同 jdk1.8.0_121 的 Windows 上,它工作正常,我真的不知道可能出了什么问题。
插件配置来自pom.xml:
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.13.2</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaLanguage>WSDL</schemaLanguage>
<generatePackage>OPS</generatePackage>
<schemas>
<schema>
<url>************************?wsdl</url>
</schema>
</schemas>
</configuration>
</plugin>
</plugins>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1104 次 |
| 最近记录: |