MyEclipse导入项目一系列问题处理
来源:互联网 发布:我要自学网单片机 编辑:程序博客网 时间:2024/06/05 16:56
MyEclipse导入项目一系列问题处理(Eclipse也适用)
原文:http://blog.csdn.net/z1729734271/article/details/53432984
版权声明:本文为博主原创,无版权,未经博主允许可以随意转载,无需注明出处,随意修改或保持可作为原创!
目录(?)[+]
导入项目问题处理:
一、编码修改
二、感叹号、叉号问题处理
其实这个也包括上面的编码修改问题,需要注意下。
1)查看JDK的引用路径是否报错。jdk引用路径问题,修改下jdk的引用路径就好了,具体的就是
2)web工程看是否引入了web App library(web 应用程序库),若没有,项目右键properties 选项Javabuild path 右侧 add libraries进行添加。
3)Myeclipse里导入jQuery.js 时出现错误打红叉的解决方法。
项目右键properties,点击myeclipse,具体步骤按下图进行操作。
4)
myeclipse中,项目上有个红叉报错,但文件没有错误。解决方案:重新引入jar包。
三、src下面没有错,其他地方莫名的错误,不影响运行,修改下验证。
如果还是有红叉,myeclipse->project->clean…
其实主要作用就是把编译好的class等文件删除,激活eclipse的自动编译。解决的问题就是,有时候你把代码改了,但因为一些未知的原因,eclipse的自动编译没有成功,导致运行结果不正常。当你的工程出现一些莫名其妙的错误时(当然不是语法错误),用一下这个功能,效果不错的
- 1
- 2
- 3
- 4
- 1
- 2
- 3
- 4
如果还不可以,再操作上诉第二个的(3)。
四、maven项目pom.xml报错
报如下错误,提供三种解决方式
Multiple annotations found at this line: - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile) - invalid LOC header (bad signature) - CoreException: Could not calculate build plan: Failed to parse plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:2.3.2 (C:\Users\admin \.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\2.3.2\maven-compiler-plugin-2.3.2.jar): invalid LOC header (bad signature) - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile) Multiple annotations found at this line: - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile) - invalid LOC header (bad signature) - CoreException: Could not calculate build plan: Failed to parse plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:2.3.2 (C:\Users\admin \.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\2.3.2\maven-compiler-plugin-2.3.2.jar): invalid LOC header (bad signature) - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile)
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
1)
官网给出解释及解决办法:http://wiki.eclipse.org/M2E_plugin_execution_not_covered这里有人说下面这样也可以解决, 即 <plugins> 标签外再套一个 <pluginManagement> 标签,我试验是成功的:http://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin<build> <pluginManagement> <plugins> <plugin> ... </plugin> <plugin> ... </plugin> .... </plugins> </pluginManagement></build>但是有时候父项目pom不能被修改,可用官网最后给出的解决办法:Window-Perferences-Maven-Lifecycle Mapping保存如下内容:<?xml version="1.0" encoding="UTF-8"?><lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> <goals> <goal>compile</goal> </goals> <versionRange>[1.3,)</versionRange> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> </pluginExecutions></lifecycleMappingMetadata>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
记得点击 ”Reload workspace lifecycle mappings metadata“按钮
2)第二条,其实和第一条差不多,但是细节操作说的比较好,是别人写的,给大家分享一下。
http://www.cnblogs.com/hzhuxin/archive/2012/06/17/2552998.html
3)以上两条博主都试了,但是没什么用,不知道为什么,但是也给大家分享一下,最后一条是测试成功的,它是将项目先转换为非maven项目,再将项目转换回来的一个操作,可能是用MyEclipse自带的pom.xml实现的。
1,先转成非maven项目
2,转成maven项目
这个在转的时候遇到一个工具异常问题,问题解决
解决方案:Window -> Preferences -> Team -> SVN,将SVN接口的Client修改为SVNKit(Pure Java) SVNKit v1.7.9.XXXX选项
如图:
这是刚装MyEclipse时遇到的问题的一些配置,在我们新建空间时经常用到,欢迎大家私信补充讨论。
- 顶
- 1
- 踩
- 0
- MyEclipse导入项目一系列问题处理
- MyEclipse导入项目一系列问题处理(Eclipse也适用)
- 【MyEclipse】MyEclipse导入项目中文乱码处理
- Myeclipse导入Maven项目找不到依赖包的问题处理
- Android Studio导入Eclipse项目的一系列问题解决
- 导入GitHub上的项目EasyRecyclerView-masterdemo一系列问题
- 【MyEclipse】MyEclipse无法导入项目
- MyEclipse导入现有项目
- MyEclipse导入项目乱码
- MyEclipse导入导出项目
- Myeclipse导入项目
- eclipse导入myeclipse项目
- Eclipse 导入Myeclipse 项目
- Eclipse导入myEclipse项目
- Myeclipse项目导入注意
- eclipse导入myeclipse项目
- myEclipse项目导入eclipse
- Myeclipse导入项目异常
- ggplot2颜色设置
- 关于Fragment的使用
- hdu 6146
- 翻转--开关问题
- 区块链和大数据的关系
- MyEclipse导入项目一系列问题处理
- excel重新排序
- 每天一个linux命令(34):du 命令
- Python ElasticSearch API
- 美化windows像Mac一样
- NeHe课前配置
- git撤销本地所有修改(新增、删除、修改)
- 前后端分离,前端跨域访问后台的两种方式
- JSP自定义标签(一):自定义JSP简单标签