maven管理项目时,启动项目报:程序包com.sun.image.codec.jpeg不存在
2015-12-25 18:44
351 查看
在pom.xml中<build></build>中加入以下代码:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>${project.build.sourceEncoding}</encoding>
<compilerArguments>
<verbose/>
<bootclasspath>${JAVA_HOME}\jre\lib\rt.jar</bootclasspath> <!-- JAVA_HOME是系统环境变量 -->
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>${project.build.sourceEncoding}</encoding>
<compilerArguments>
<verbose/>
<bootclasspath>${JAVA_HOME}\jre\lib\rt.jar</bootclasspath> <!-- JAVA_HOME是系统环境变量 -->
</compilerArguments>
</configuration>
</plugin>
相关文章推荐
- 时序图
- 不变模式(Immutable)
- hdu 5059 Help him
- IOS UI-Button按钮
- I/O基础理论
- 计算其中小写字母的个数和学生成绩的判断题目
- ccf 2014-09-4
- Centos7 64 arm-linux-gcc 搭建小记
- 菜鸟初识AIDL进程通信
- Unable to connect to the MKS:Internal error
- Android Screen Monitor使用
- JavaWeb课程设计_宿舍管理系统02
- PAT刷题
- selenium2等待元素加载
- Kubernetes 之部署 cassandra + solr(datastax)解析
- 从一个案例看PL/SQL代码片的编译与运行
- 静态页面的抓取(学习简单爬虫)
- Swift类与结构、存储属性、计算属性、函数与方法、附属脚本等
- Git使用
- PAT刷题