【待解决】maven创建web项目报错】的更多相关文章

创建web项目时报错…
Eclipse中的错误:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp-1.0.jar:RELEASE from any of the configured repositories IDEA中的的错误:The desired archetype does not exist(org.apache.maven.archetypes:maven-archetype-webapp:1.0)…
1.下载http://repo1.maven.org/maven2/archetype-catalog.xml 通过eclipse下载和网页下载我这里都比较慢,最后用的迅雷下载 2.将本地xml文件配置到eclipse中 依次打开windows--preferences--maven--archetypes--add local catalog 3.选择下载的xml文件,description随便填写,例如maven_catalog 4.创建项目,这一步时,catalog选择自己导入的,里面东西…
早上一上班就想新建一个web项目玩玩,没想到一敲命令创建就失败了,真是出师不利.各种折腾无果,当然我也可以用eclipse直接创建的,就是不甘心被这破问题给耍了.刚刚才发现问题原因,这个结果我也是醉了,太坑爹了. 问题现象: E:\workspace>mvn archetype:generate -DarchetypeCatalog=internal -DgroupId=com.wulinfeng.memcache -DartifactId=memcache-view -DarchetypeAr…
利用Eclipse中的Maven构建Web项目 1.在进行上述操作时,pom.xml一直报错 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.o…
利用Eclipse中的Maven构建Web项目 1.错误描述 [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] -----------------------------------…
问题描述 使用Maven打包项目的时候,出现错误: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update) 原因分析 web项目下缺少WEB-INF/web.xml 但是在servlet 3.0之后,对于web.xml文件本身是可选的 解决方案 方案一 在pom.xml文件中定义一个参数配置 <properties> <failOnMissingWebXml>fals…
原文地址:http://blog.sina.com.cn/s/blog_6826662b01015opk.html 最近做一个web项目用到了Spring+JPA,由于没有正确配置persistence.xml的文件路径,导致出现如下错误: No persistence units parsed from {classpath*:META-INF/persistence.xml} 查找原因,原来在web工程文件夹下,本来有一个 META-INF 文件夹,但这个文件夹是和 WEB-INF 目录同级…
如下图所示:在Properties中添加一个参数archetypeCatalog=internal,不加这个参数,在maven生成骨架的时候将会非常慢,有时候会直接卡住. 理由 archetypeCatalog表示插件使用的archetype元数据,不加这个参数时默认为remote,local,即中央仓库archetype元数据,由于中央仓库的archetype太多了,所以导致很慢,指定internal来表示仅使用内部元数据. 图示…
在骨架选择完成后,变量处. 增加一组变量 archetypeCatalog internal…