[JSP]解决Maven创建项目失败
2016-04-17 10:17
351 查看
来源:http://lovespss.blog.51cto.com/1907593/522225
新建Maven项目时遇到这个错误:
Unable to create project from archetype [org.apache.maven.archetypes:maven-archetype-webapp:1.0]
Unable to add module to the current project as it is not of packaging type 'pom'
================================================
百度一下找到龙盘凤舞的博文:
咋回事啊,我没动过Eclipse啊,咋就突然罢工了呢?查了半天也没解决,无奈dogpile(集成了Google, Bing, Yahoo!等几个流行搜索引擎,老外推荐的)一把。在这里找到了答案:http://forums.atlassian.com/thread.jspa?messageID=257288044
Are you running the command from a directory that has an existing pom.xml file in it? I think that may be confusing Maven, as it thinks you're trying to add your new project as a sub-module of the project in the working directory.
原来是因为我在Workspace下放了个POM文件,造成了M2eclipse插件的误解,删掉就OK了。
================================================
经过我实验,只要Workspace的根目录没有POM就可以(或重命名),其他目录有都没有问题
新建Maven项目时遇到这个错误:
Unable to create project from archetype [org.apache.maven.archetypes:maven-archetype-webapp:1.0]
Unable to add module to the current project as it is not of packaging type 'pom'
================================================
百度一下找到龙盘凤舞的博文:
咋回事啊,我没动过Eclipse啊,咋就突然罢工了呢?查了半天也没解决,无奈dogpile(集成了Google, Bing, Yahoo!等几个流行搜索引擎,老外推荐的)一把。在这里找到了答案:http://forums.atlassian.com/thread.jspa?messageID=257288044
Are you running the command from a directory that has an existing pom.xml file in it? I think that may be confusing Maven, as it thinks you're trying to add your new project as a sub-module of the project in the working directory.
原来是因为我在Workspace下放了个POM文件,造成了M2eclipse插件的误解,删掉就OK了。
================================================
经过我实验,只要Workspace的根目录没有POM就可以(或重命名),其他目录有都没有问题
相关文章推荐
- 利用原生JavaScript获取样式的方式小结
- JavaScript之Unicode编码转换小工具
- 理解javascript对象继承
- JavaScript
- js如何准确获取当前页面url网址信息
- 基于javascript实现图片切换效果
- JavaScript程序员必备的5个debug技巧
- javascript模块化以及加载打包
- fullPage.js
- JS美女图片切换带视觉差
- 基于javascript实现图片切换效果
- js如何准确获取当前页面url网址信息
- 理解javascript对象继承
- 基于javascript实现精确到毫秒的倒计时限时抢购
- 最简单js代码实现select二级联动下拉菜单
- JS中取二维数组中最大值的方法汇总
- js组件SlotMachine实现图片切换效果制作抽奖系统
- JS区分浏览器页面是刷新还是关闭
- 【javascript】setInterval定时器的问题
- javascript学习(一)