Unable to add module to the current project as it is not of packaging type 'pom'
2017-10-22 12:02
686 查看
输入mvn archetype:generate -DarchetypeCatalog=internal后,如下报错的几种解决方法(汇总各位网友的)
Unable to add module to the current project as it is not of packaging type 'pom'
1、在Workspace下放了个POM文件,造成了M2eclipse插件的误解,删掉即可。
2、创建一个新的空的目录,执行上面的 maven 命令。如果不是空目录就可能会出现上面错误。
3、在项目根目录下,有个pom.xml,如果在这里构建骨架,又要用pom.xml文件,是会不成功的,就会报Unable to add module to the current project as it is not of packaging type 'pom'这个错,选择在项目目录构建即可。
4、修改主工程目录下的pom文件,设置如下: <packaging>pom</packaging> 。
Unable to add module to the current project as it is not of packaging type 'pom'
1、在Workspace下放了个POM文件,造成了M2eclipse插件的误解,删掉即可。
2、创建一个新的空的目录,执行上面的 maven 命令。如果不是空目录就可能会出现上面错误。
3、在项目根目录下,有个pom.xml,如果在这里构建骨架,又要用pom.xml文件,是会不成功的,就会报Unable to add module to the current project as it is not of packaging type 'pom'这个错,选择在项目目录构建即可。
4、修改主工程目录下的pom文件,设置如下: <packaging>pom</packaging> 。
相关文章推荐
- 执行 maven 命令 报错Unable to add module to the current project as it is not of packaging type 'pom'
- 错误整理:Unable to add module to the current project as it is not of packaging type 'pom'
- Unable to add module to the current project as it is not of packaging type 'pom' 问题解决
- 错误解决:Unable to add module to the current project as it is not of packagi
- eclipse ERROR: Unable to add module to the current project as it is not of ...
- 错误解决:Unable to add module to the current project as it is not of package
- It is impossible to add a QtClass to the current project问题的解决
- maven: Unable to add module to the current project
- Your project is not referencing the ".NETPortable,Version=v4.5,Profile=Profile259" framework. Add a reference to ".NETPortable,Version=v4.5,Profile=Profile259" in the "frameworks" section of your proj
- Operation is not valid due to the current state of the object.
- bug:Operation is not valid due to the current state of the object.
- ASP.NET4.0错误:Operation is not valid due to the current state of the object
- Maven:Resource Path Location Type Project configuration is not up-to-date with pom.xml. Run project configuration update
- System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException: Operation is not valid due to the current state of the obj
- System.InvalidOperationException: Operation is not valid due to the current state of the object.
- maven项目报错:Resource Path Location Type Project configuration is not up-to-date with pom.xml
- JavaScriptSerializer 序列化时异常:Operation is not valid due to the current state of the object.
- 解决asp.net error: Operation is not valid due to the current state of the object
- GridView Postback后出错Operation is not valid due to the current state of the object.
- EntityFramework错误:The entity type XXX is not part of the model for the current context