今天学习在本地搭建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了。
分享到:
相关推荐
参考: ...目录 一、更改镜像 二、手动将需要的插件和依赖下载放到本地厂库 三、下载阿里网站的资格证书,安装到jdk 四、设置maven的VM属性,这个...从https://start.spring.io/生成的spring boot项目,报错unable to f
myeclipse创建maven工程报错 Could not resolve
pit1 spring boot之 maven install 报错[Maven][ERROR] Failed to execute goal org.spri
eclipse导入maven项目报错解决办法,找了好多网上的都零零碎碎的,希望以后遇到会有所帮助.
the concept of a Project Object Model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. Documentation ------------- The most up-to-date...
Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project
主要介绍了IDEA配置maven环境的详细教程(Unable to import maven project问题的解决),本文通过图文并茂的形式给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
【Maven】Maven POM配置详解 - CSDN博客1
Idea 导入Maven项目,在加载pom.xml文件内容时,弹窗提示错误信息 Unable to import maven project的解决方案。文档是包含在操作时遇到的问题以及问题的解决方案,搭配图片,图文并茂,方便读者准确定位到问题以及更...
Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. If you think that Maven could help your ...
新建maven后pom. xml报错解决方法
2.maven版本过高:比如我使用maven最新版本3.6.3,导致出现此问题,换成3.6.1解决 二、如何下载历史版本 1.官网地址,进入download页面 2.点击下图,archives 3.出现历史版本页面,我选择了3.6.1 选择二进制版本,...
NULL 博文链接:https://3806850.iteye.com/blog/904877
-D传入属性参数-P使用pom中指定的配置-e显示maven运行出错的信息-o离线执行命令,即不去远程仓库更新包-X显示maven允许的debug信息-U强制去远程参考更新snapshot包例如mvninstall-Dmaven.test.skip=true-Poracle其他...
主要介绍了SpringBoot Maven Clean报错解决方案,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
主要介绍了Intellij IDEA 与maven 版本不符 Unable to import maven project See logs for details: No implementation for org.apache.maven.model.path.PathTranslator was bound,本文通过图文给大家分享解决方案...
a NB project object model file, which is very userful to set up one maven project
Maven stands out among other build tools due to its extremely extensible architecture, which is built on of the concept of convention over configuration. It's widely used by many open source Java ...
maven pom.xml详解