使用myeclipse新建maven web 项目
来源:互联网 发布:淘宝优惠券制作教程 编辑:程序博客网 时间:2024/05/19 22:03
原地址:http://blog.csdn.net/aqsunkai/article/details/51286373
首先在myeclipse中配置maven的安装路径:
新建web项目:
pom.xml文件报错解决办法:
在pom.xml中加上:
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.6</version>
- <configuration>
- <encoding>utf-8</encoding>
- </configuration>
- </plugin>
- </plugins>
<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <configuration> <encoding>utf-8</encoding> </configuration> </plugin> </plugins>
如果项目结构没有Maven Dependencies
需要在项目根路径下的.classpath文件里加上
- <classpathentry kind=“con” path=“org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER”>
- <attributes>
- <attribute name=“maven.pomderived” value=“true”/>
- <attribute name=“org.eclipse.jst.component.dependency” value=“/WEB-INF/lib”/>
- </attributes>
- </classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> <attributes> <attribute name="maven.pomderived" value="true"/> <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> </attributes></classpathentry>
如果项目启动时报maven与jdk版本不对应,需要添加一行代码:
MAVEN_HOME是你在环境变量里配置的maven安装路径
- -Dmaven.multiModuleProjectDirectory=MAVEN_HOME </span></span></li></ol></div><pre name="code" class="html" style="display: none;">-Dmaven.multiModuleProjectDirectory=MAVEN_HOME
本人搭建的maven web项目,框架用spring springMVC mybatis,架包都是最新的,已经上传,需要的可以下载
阅读全文
0 0
- 使用myeclipse新建maven web 项目
- MyEclipse 新建web属性的Maven项目
- myeclipse 2014新建maven web 项目步骤
- myeclipse 2014新建maven web 项目步骤
- myeclipse 2014新建maven web 项目步骤
- myeclipse新建maven项目
- Eclipse中使用Maven新建Web项目
- myEclipse中使用maven插件新建maven项目
- 在myeclipse中新建Maven框架的web项目
- 在eclipse/myeclipse中新建Maven框架的web项目
- 在myeclipse中新建Maven框架的web项目
- maven 新建web项目
- maven新建web项目
- Maven新建Web项目
- MyEclipse Maven新建web工程
- 使用MyEclipse构建MAVEN项目(WEB项目)
- MyEclipse新建Maven webapp项目
- MyEclipse下使用maven创建web项目
- 串口通讯
- 伺服电机、舵机、步进电机的区别
- 数据库存储过程详解
- Centos中修改/etc/resolv.conf又恢复到原来的状态
- 临时表和表变量区别,SQL Server里的视图和临时表在哪里?
- 使用myeclipse新建maven web 项目
- 开源作业调度框架---Quartz
- linux程序开机自启动方法
- 目标检测RON网络VOC2007训练测试
- yum源配置
- Oracle数据库数据同步方法
- 线程进程同步(占坑)
- spring mvc redirect 重定向 跳转并传递参数
- Git学习