maven打包时显示程序包com.sun.image.codec.jpeg不存在

解决方法
在pom加入下面的内容

    <plugin>
        <groupId>org.apache.maven.pluginsgroupId>
        <artifactId>maven-compiler-pluginartifactId>
        <version>3.1version>
        <configuration>
            
            <source>1.8source>
            <target>1.8target>
            
            <encoding>UTF-8encoding>
            <compilerArguments>
                <bootclasspath>
                    ${java.home}/lib/rt.jar${path.separator}${java.home}/lib/javaws.jar${path.separator}${java.home}/lib/jce.jar
                bootclasspath>
            compilerArguments>
        configuration>
    plugin>

你可能感兴趣的:(maven,java)