创建MAVEN项目报错】的更多相关文章

报错1:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart 起因:删除一个用quickstart模板创建的Maven项目时,多删除了个意义不明的东西,现在看来应该就是quickstart相关的jar了.(可能是损坏,也可能是删掉了) 注:此时只是不能用quickstart模板创建Maven项目了,用其他模板正常. 解决:删掉对应文件夹中的相关文件,重新用mvn help:system…
创建MAVEN项目pom.xml报错 Failure to transfer org.apache.maven:maven-archiver:jar:2.4.2 from http://repo.maven.apache.org/maven2 was cached in the local  repository, resolution will not be reattempted until the update interval of central has elapsed or upda…
学着使用idea,想创建个maven项目,但是出师不利,立马报错,贼尴尬,错误信息如下: D:\Develop\JDK\bin\java.exe -Dmaven.multiModuleProjectDirectory=C:\Users\Administrator\AppData\Local\Temp\archetypetmp -Dmaven.home=D:\Develop\apache-maven-3.5.2 -Dclassworlds.conf=D:\Develop\apache-maven-…
首先 在 pom.xml > plugins 中添加 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version></version> <configuration> <source>1.8</source> <targ…
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved --因为项目idea转到eclipse,熟悉软件中 解:删除本地仓库org\apache\maven目录下的plugin文件夹…
Description Resource Path Location TypeFailure to transfer com.thoughtworks.xstream:xstream:pom:1.3.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of centra…
STS新建的maven项目报错问题 解决方法:打开pom.xml文件添加 <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> </dependency> 保存即可.…
在ecplise上新建maven项目 报错: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin…
创建web项目时报错…
早上一上班就想新建一个web项目玩玩,没想到一敲命令创建就失败了,真是出师不利.各种折腾无果,当然我也可以用eclipse直接创建的,就是不甘心被这破问题给耍了.刚刚才发现问题原因,这个结果我也是醉了,太坑爹了. 问题现象: E:\workspace>mvn archetype:generate -DarchetypeCatalog=internal -DgroupId=com.wulinfeng.memcache -DartifactId=memcache-view -DarchetypeAr…
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选择自己导入的,里面东西…
问题:在同事那里拿了一个Eclipse的maven项目,导入报错,主要显示的是A child container failed during start 具体错误如下 六月 02, 2018 12:08:50 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source'…
错误原因: 使用ecplise构建的maven骨架默认支持的是web2.3的版本,当使用这个创建3.0版本的web项目时则会报这样的错误: Cannot change version of project facet Dynamic Web Module to 3.0 Error in Eclipse 解决方案: 1:更改项目中的xml配置文件:指定web项目是3.0版本 2:更改project facet中的dynamic的版本为3.0版本 3:‘refresh’该项目,clean该项目,这个…
问题 用Eclipse创建maven工程的时候,总是会报错,例如提示: Unable to create project from archetype [org.apache.maven.archetypes:maven-archetype-quickstart:1.1] The defined artifact is not an archetype 网上查找资料说是将 maven 下的repository下的 相关 lib 删除重建,但是试过了之后,发现没有用. 自己的解决方法: 将Ecli…
创建新项目自动执行时报错: Failed to import new Gradle project: failed to find Build Tools revision 17.0.0 Consult IDE log for more details (Help | Show Log) 可能是创建项目时Android Studio会连网下载Gradle进行项目配置,但在中国好像连接站点被强所以会报错,将Android Studio代理设置为自动,并将C:\Users\yourname\.gra…
好久没用Eclipse编写Java程序了,今天创建一个Java项目的时候,老报错,错误信息如下: Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor 解决方案:把java的类库加载进去,在工程上右键选择属性->Java Build Path的Libraries->Add Library选择JRE System Library-&…
ssm的项目如果在mapper.xml  mapper接口 配置没问题的情况下  项目依然报org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): 如下图 报错原因mapper.xml 和 mapper接口绑定失败 , mapper.xml  找不到 解决方法:在pom文件中指定文件加载 代码: <!-- tomcat插件 --> <build> <plugins>…
具体表现为: 使用Eclipse+Maven建立了一个Javaweb工程,JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path. 解决方法: 在pom.xml中的  <build></build>中  添加: <plugins> <!-- 编码和编译和JDK版本 --> <plug…
新建Maven项目时出错:org.apache.maven.archiver.MavenArchiver.getManifest   新建Maven项目时出错:org.apache.maven.archiver.MavenArchiver.getManifest eclipse新建maven项目时,pom.xml文件第一行报错: org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenPr…
每次新建maven的web(war包方式)项目时都会报错而且都要手动改,很麻烦 解决:(注意里面的jdk版本换成自己的) 改变maven配置文件   settings.xml 在文件的<profiles></profiles>节点里面添加: <profile> <id>jdk-1.8</id> <activation> <activeByDefault>true</activeByDefault> <jd…
原理,是因为你没把新创建好的maven项目给设置成一个可被tomcat部署的web项目 参考此博文,讲的非常详细: 归根到底是因为web项目的部署问题: 解决方案:在创建的到时候,idea下部会提示是否自动引入: 选择这个后,就会自动建立了web项目的路径都建好了,如下图:否则需要手动配置项目的部署路径: http://www.cnblogs.com/wql025/p/5215570.html 解决方案如下:          2.关于浏览器测试tomcat启动报404错误! 操作完上一步的小伙…
使用eclipse新建maven项目,按下图所示选择后,报错 报错截图 报错详细信息 Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstar…
百度一搜这个错误,好多人都遇到了 不计其数的人都遇到.网上大多数都是菜鸟的愚见.经过本人的测试发现,用Idea建立普通的Java项目 然后随便建立一个类运行就不会报错. 但是如果用Idea建立一个普通的Maven项目,然后再随便建立一个类运行,则就会报这个错.那么说明maven限制了此项目jdk的版本为1.5,或者说Idea软件与Maven软件配合的不够好. 管他呢,网上很多方法都是从Idea的配置下手,我认为这就是菜鸟的解决方法愚见,最狠的解决方法就是直接用maven制定此项目的JDK版本,一…
maven项目编译不报错,运行时报错如下: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [bundle://11.0:23/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [bundle://11.0:93/org/slf4j/impl/StaticLoggerBinder.class] 此错误表明:在类路径…
问题描述: 在创建SpringMVC项目运行构建项目的时候,发现构建失败.报错信息为Maven-No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 意思是需要JDK环境而不是JRE环境. 问题解决: 在项目里面把[windows]--[preference]--[Java]--[Installed JREs]里面把JRE改为JDK即可. 修改之后就可以成功…
刚刚新建完Maven项目,一般都会报这个错误,原因是没有默认添加需要的javax.servelet的jar包,所以打开pom.xml文件添加如下dependency即可: <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> </dependency>…
web项目使用到mybatis,需要使用mybatis的自动生成代码插件,配置build部分如下: <build> <pluginManagement></pluginManagement> <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> </plugin> <plugin> <artifactId>maven-c…
构建报错: [ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Failed to resolve versi…
朋友整合ssh时突然报错, org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441) at org.apac…
同一个maven项目下的不同模块,无法导入其他模块的类,其他模块的所有类都报xxx cannot be resolved to a type 解决方案(参考): 项目Build Path -->Configure Build Path -->Libraries -->Add External JARs 把需要使用到的模块jar包导入 导入成功后,项目Referenced Libraries目录下会有导入的jar包…