在eclipse中创建maven工程报错
来源:互联网 发布:山海经 美洲 知乎 编辑:程序博客网 时间:2024/04/30 10:34
【报错,死活不能创建工程】Unable to add module to the current project as it is not of packaging type 'pom'
【原因】workspace的根目录下 有一个 pom.xml 。 之前备份的。。
【解决问题的来源】执行 maven 命令 报错Unable to add module to the current project as it is not of packaging type 'pom' - yang_734664103的专栏 - CSDN博客
http://blog.csdn.net/yang_734664103/article/details/15783745
-------------------------------------原帖内容---------------------------------------------------------------------
今天学习在本地搭建Maven工程时,执行了mvn archetype:generate 命令,报错。
Unable to create project from archetype [org.apache.maven.archetypes:maven-archetype-quickstart:1.1]
Unable to add module to the current project as it is not of packaging type 'pom'
上网搜资料发现一个帖子,问题解决:
原文如下:
一开始以为是IDE出错了,很是着急,后来回想出错之前的操作。就在这之前,我备份了一个pom文件,然后直接移到了workspace的根目录下,心想是不是这个问题呢?带着疑问,我把这个pom.xml删掉了,然后再创建maven工程,果然不出所料,不再报错了。
为了确保是这个原因,后来google了一下,在国外一个论坛中碰到类似的问题,有个网友的回答摘抄如下:
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了。
- 在eclipse中创建maven工程报错
- eclipse创建maven工程报错解决
- 【Maven由浅入深】3.在Eclipse中创建maven工程
- 在Ubuntu下eclipse的maven工程下创建jsp页面报错
- eclipse中创建maven工程
- eclipse中创建Maven工程
- eclipse中创建maven工程
- 在Eclipse中创建Maven多模块工程
- 在Eclipse中创建Maven多模块工程的例子
- 在Eclipse中创建Maven多模块工程的例子
- 在Eclipse中创建Maven多模块工程的例子
- 在Eclipse中创建Maven多模块工程的例子
- 在Eclipse中创建Maven多模块工程的例子
- 在Eclipse中创建Maven多模块工程的例子
- 在Eclipse中创建Maven多模块工程
- 在Eclipse中如何创建Maven多模块工程
- Maven(三)-在eclipse中创建工程与基本命令
- 在Eclipse中创建Maven多模块工程的例子
- NVIDIA DIGITS-2.0 + Ubuntu 14.04 + CUDA 7.0 + cuDNN 7.0 + Caffe 0.13.0环境配置
- Codeforces 798D Mike and distribution (构造 + 脑洞 推荐)
- Linux下C语言执行MySQL语句
- java.lang.NoSuchMethodError: org.apache.poi.util.POILogger.log(I[Ljava/lang/Object;)V
- windows平台下caffe可视化配置
- 在eclipse中创建maven工程报错
- 一起从零学Kotlin-20170803
- 1032. Sharing (25)
- Android------面试简答题
- 2016"百度之星"
- JFinal之旅——针对增改操作
- SpringMVC史上最全最强详细示例实战教程
- JavaScript中的字符串替换
- FZU 1752 A^B mod C (坑坑坑坑!!!)