3、Maven打包 程序包com.sun.image.codec.jpeg不存在

项目打包,报错,保存信息:程序包com.sun.image.codec.jpeg不存在
解决办法,通过配置maven-compiler-plugin插件可以解决此问题

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <encoding>UTF-8</encoding>
                    <compilerArguments>
                        <verbose />
                        <bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath>
                    </compilerArguments>
                </configuration>
            </plugin>
3、Maven打包 程序包com.sun.image.codec.jpeg不存在
maven打包报错.png