包含info-

时间:2017-06-08 16:29:56

标签: java maven spring-boot netbeans maven-jaxb2-plugin

我在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)

在Windows上使用相同的jdk1.8.0_121它工作正常,我真的不知道可能出现什么问题。

来自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>

0 个答案:

没有答案