maven
_海豚湾_
这个作者很懒,什么都没留下…
展开
-
Myeclipse中创建Maven工程的时候没有 webapp-javaee6
1. http://mvnrepository.com/artifact/org.codehaus.mojo.archetypes/webapp-javaee6/1.5 中有描述2. 在创建Maven工程时添加Archetype的时候,点击 Add Archetype按钮点击后进入如下页面,并在里边加入第一个图片中查询到的参数,点击确定后就会将此类型下载下来。转载 2017-06-07 15:12:55 · 2807 阅读 · 0 评论 -
Dynamic Web Module 3.0 requires Java 1.6 or newer
用Maven->Update Project更新项目后,出现Dynamic Web Module 3.0 requires Java 1.6 or newer错误提示,发现项目java Compiler中的版本回到1.5。在Maven官方文档找到了原因。Maven 3.0 source和target的默认设置都是1.5,与运行Maven时的JDK版本无关,除非在项目的POM文件中显示的指定转载 2017-06-15 17:26:52 · 285 阅读 · 0 评论 -
maven设置部署程序集
在项目上右键单击,选择Properties,在搜索框里填写Deployment Assembly设置部署时的文件发布路径1,我们删除test的两项,因为test是测试使用,并不需要部署。 2,设置将Maven的jar包发布到lib下。Add -> Java Build Path Entries -> Maven Dependencies -> Finish转载 2017-06-13 10:22:21 · 302 阅读 · 0 评论 -
Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
maven项目修改了Java Compiler、Project Facets、jdk1.7等配置,出现了错误,如图由于你的 Maven 编译级别是 jdk1.5 或以下,而你导入了 jdk1.6 以上的依赖包解决办法:使用 maven-compiler-plugin 将 maven 编译级别改为 jdk1.6 以上,在项目的pom.xml的标签中加入:转载 2017-06-12 15:23:17 · 464 阅读 · 0 评论 -
class path resource [applicationContext.xml] cannot be opened because it does not exist
maven创建web工程Spring配置文件找不到问题解决方案使用maven创建web工程,将spring配置文件applicationContext.xml放在src/resource下,编译时提示class path resource [applicationContext.xml] cannot be opened because it does not exist错误。但是用m转载 2017-06-12 09:53:40 · 4593 阅读 · 0 评论 -
Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources...
打开之间创建的maven项目,pom.xml文件显示红叉,打开pom.xml文件,鼠标放在红叉上,显示Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5的错误,如图 原因分析是缺少maven-resources-plugin-2.5.jar或该文件下载不正确转载 2017-06-12 09:28:27 · 29349 阅读 · 1 评论 -
在maven项目里引进jar包
现在以添加springmvc的jar包,打开pom.xml文件。选择上图中的Dependencies栏,点击Add按钮Add按钮点击之后出现的填框,在中间的输入框里输入spring-webmvcmaven会自动导入spring-webmvc依赖的其他jar包,可通过点击pom.xml页面下方的Dependency Hierarchy标签查原创 2017-06-09 17:21:39 · 1718 阅读 · 0 评论 -
MyEclipse创建Maven工程的时候可能会碰到的问题1
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.pl转载 2017-06-09 14:27:54 · 315 阅读 · 0 评论 -
创建maven项目的另一种方式
在已经配置好maven的前提下,创建一个maven项目File-->New-->Web Project,勾选上Add maven support,修改java version、java EE version在1.7版本上。一路next,到项目结构,选择maven的项目结构。完成以后的项目结构 图原创 2017-06-09 11:24:17 · 256 阅读 · 0 评论 -
用myeclipse构建maven项目
首先安装maven,确保jdk已经配置好。在官网上下载 apache-maven-3.5.0-bin.zip文件,解压到已安装路径;配置maven的环境变量,新建MAVEN_HOME:D:\maven\apache-maven-3.5.0,然后再path里面添加这个。配置好环境变量,打开cmd窗口,输入mvn -v出现下面内容标识安装成功。接下来在myeclipse添加ma原创 2017-06-09 10:28:01 · 287 阅读 · 0 评论 -
Intellij Idea创建Maven项目
创建maven项目File-->New-->Project选择maven,勾选 create from archetype 选中webapp点击next进入下一步,填写GroupId和ArtifactId点击next进入下一步,选择之前下载好的本地maven点击next进入下一步,填写项目名称点击Finish按钮,完成了maven转载 2017-06-19 11:31:19 · 711 阅读 · 0 评论 -
Plugin execution not covered by lifecycle configuration
在国外的论坛上有一个比较简单的处理方式 就是在 标签之间加上一个标签就行即 标签外再套一个 标签,我试验是成功的:http://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin转载 2017-06-07 16:14:55 · 254 阅读 · 0 评论 -
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.1.1 or one of
创建项目时报以下错误.Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for ...转载 2017-06-07 15:50:09 · 1492 阅读 · 0 评论 -
JAX-RS (REST Web Services) 2.0 can not be installed
项目Problems中提示错误JAX-RS (REST Web Services) 2.0 can not be installed : One or more constraints have not been satisfiedJAX-RS (REST Web Services) 2.0 requires Java 1.7 or newer1.在pom.xml文原创 2017-07-19 15:30:51 · 1184 阅读 · 0 评论