今天学习maven,在控制台下新建maven项目没有问题,但是在STS(eclipse)下创建maven项目老是报错,郁闷死了: ---------------------------------------------------- 错误信息:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories.…
报错信息如下: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories. Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE Failed to resolv…
maven具体报错提示如下: Description Resource Path Location TypeArtifactDescriptorException: Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-thymeleaf:jar:1.5.10.RELEASE: ArtifactResolutionException: Failure to transfer org.…
开发中一个项目很早就报这个错,maven报错非法字符:\65279 错误,今天终于忍无可忍要解决它 :编译java文件的时候,有些java文件报非法字符 \65279错误,在网上找和很多 方法,也试了很多方法,换JDK,网上说的editplus 修改文件编码貌似也不靠谱(反正我修改之后还是报错~~),后来试了一个方法真的行了: 1.在 IDE中修改提示有非法字符的java文件的编码为:ISO-8859-1 然后 我们就 可以看到java文件的开头有些 乱码,删除它,就是它在捣乱 2.修改完之后,…
开发中一个项目很早就报这个错,maven报错非法字符:\65279 错误,今天终于忍无可忍要解决它 :编译java文件的时候,有些java文件报非法字符 \65279错误,在网上找和很多 方法,也试了很多方法,换JDK,网上说的editplus 修改文件编码貌似也不靠谱(反正我修改之后还是报错~~),后来试了一个方法真的行了: 1.在 IDE中修改提示有非法字符的java文件的编码为:ISO-8859-1 然后 我们就 可以看到java文件的开头有些 乱码,删除它,就是它在捣乱 2.修改完之后,…
[转]解决Maven报错"Plugin execution not covered by lifecycle configuration" 导入Myabtis源码后,POM文件会报出如下异常: Plugin execution not covered by lifecycle configuration org.sonatype.plugins:jarjar-maven-plugin Plugin execution not covered by lifecycle configura…
Maven报错Archive for required library:某.jar' in project '项目名'cannot be read or is not a valid ZIP file 报错信息:项目出现红色叉号 报错原因:maven自动下载的依赖包错误 解决方法:eclipse顶部–>窗口–>显示视图–>其他–>问题 出现这个视图后,查看错误提示信息,找到错误文件路径,手动删除即可.…
Maven 报错: Error:Maven Resources Compiler: Maven project configuration required for module 'yourProjectName' isn't available. Compilation of Maven projects is supported only if external build is started from an IDE. 原因:修改了项目对应的 文件夹名和 module 名. 解决: 如果是…
郁闷了两天,创建maven项目时,eclipse报错:Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp,详细信息如下图: 此类报错产生的原因分以下两种: 1.Catalog 相关类型缺失:     2.ide下载相关jar包时未能完整下载. 针对以上两种原因的解决方案如下:     1.配置Catalog 在eclipse中,点击window-->preferences-->maven--…
1.警告:The tag handler class for "s:form"(org.apache.struts2.views.jsp.ui.FormTag) was not found on the JavaBuild Path这个问题终于可以解决了,在出问题的页面  <s:form> 标签前后删除空格后保存文件警告即可消失,即<s:form>为改行的起始,然后保存. 2.Eclipse下javacompiler level does not match t…
在使用maven新建的web项目中,执行 执行如上的这两个操作,报错: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project bioligyInfo: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre1.8.0_73\..…
在intellij使用 Maven Project 测试时,运行test时看到log里的报错信息: -Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match. 经查证,是Maven版本与 Intellij 兼容的问题,现在使用的版本是: Maven apache-maven-3.3.9-bin.zip Intell…
场景 编译器:IDEA 在网上看一些小实例,跟着做的时候会复制pom.xml文件的代码来加载依赖包.首先需要确定你复制过来的代码本身是没有错的,在复制一些pom.xml文件代码时,有时候会报错.原因是复制过来的代码格式出现了错误并不是代码本身的问题. ​ 并报了如下的错误: Element 'project' cannot have character [children], because the type's content type is element-only. Element 'pr…
报错: [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Avail…
常规配置maven环境变量,报错: The JAVA_HOME environment variable is not defined correctly. This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE. 提示找不到JRE 原因JAVE_HOME配置过于详细,与path变量中的路径有冲突 \bin目录在JAVE_HOME和path变量中只添…
一直对于maven中解决jar包依赖问题的解决方法纠结不清: 下面这个例子可以说明一个很简单的解决方法: 项目启动报错: Connected to the target VM, address: '127.0.0.1:59412', transport: 'socket' SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/D:/document/repository/org…
1.使用git 升级 服务命令 mvn  deploy -e 之后报错: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin::test (: Failed to retrieve POM : Could not transfer artifact org.apache.maven.surefire:surefire-junit4:pom: from/to central (https://repo.mave…
[自己的操作] (1)windows -> Preferences -> maven 的settings.xml文件中.m2的位置已经失效,更改正确后尝试 (2)pom.xml还有下面错误  把pom.xml中报错的注释后再次尝试启动 Publishing failed with multiple errors Error reading file F:\HWORK\repository\com\danga\MemCached\2.0.1\memcached-2.0.1.jar F:\HWOR…
在部署Jenkins项目时,用Jenkins调用服务器上脚本时,脚本在服务器上执行没有任何问题,但是在Jenkins上调用时就报错,提示mvn应该使用全路径执行,当加入jdk,jre,maven环境变量时,出现下面错误. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin::compile (default-compile) on project kpl-model: Compilation…
今天把一个去年没做完的项目翻出来做时,发现maven无法正常导入依赖.检查了一遍项目配置,没发现有什么问题.而且依赖在本地仓库存在. 随后发现报错:Failed to transfer file:*********. Return code is: 501 , ReasonPhrase:HTTPS Required. 这时候好像发现了什么重点————我们需要将maven配置修改一下: <!-- 中央仓库1 --> <mirror> <id>repo1</id>…
BUG 记录 报错页面的代码和截图: Cannot access alimaven (maven.aliyun.com/nexus/conte…..... 解决方法: 报错页面的代码和截图: JAR will be empty - no content was marked for inclusion! 解决方法: 没关系,因为新创建的项目里没有类.当然编译不出jar包. idea data注解不好使 报错页面的代码和截图: 解决方法: 启用lombok的插件 开启注解处理…
1.eclipse中Maven项目的pom文件报错: 2.解决方法: 直接在pom.xml中加上一个依赖项目: <dependency>      <groupId>jdk.tools</groupId>      <artifactId>jdk.tools</artifactId>     <version>1.7</version>     <scope>system</scope>     …
目录 前提 场景 解决办法 1.首先,清除缓存,点击之后重启IDEA. 2.关闭IDEA,打开项目文件夹 3.重新打开 IDEA,找到右边的 Maven 4.解决 Maven 中 Dependencis 报红 前提 前提:保证 Maven 中的依赖都是正确的,不要犯例如少了字母等,此类错误. 如果不放心,可以去官网搜索,并重新复制粘贴. 官网链接:https://mvnrepository.com/ 场景 导入新项目,或其他原因,maven刷新也没用,疯狂报错.如下图: 解决办法 1.首先,清除…
maven报错误,类似于: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3.5.0 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elaps…
1.project.pom中修改版本 <maven.compiler.source>1.7</maven.compiler.source><maven.compiler.target>1.7</maven.compiler.target> 2.Java Compiler:修改版本 3.Project Structure-->SDKs:修改jdk 4.Project Structure-->Modules:修改Language level…
pom.xml 有小红叉,报错: Missing artifact jdk.tools:jdk.tools:jar:1.7 解决方法:(缺少一个jar包) http://blog.csdn.net/u013281331/article/details/40824707 Eclipse Java 自动补全: Window-->Preferences-->Java-->Editor-->Content Assist-->Auto Activation 设置如下,而后点击ok即可:…
在右键项目Update Project之后报错:One or more constraints have not been satisfied.Spring 4.1 requires Java 1.6 or newer. 解决问题: The solution is I have to goto to the ".settings" folder which is at the project location and deleted "org.eclipse.wst.comm…
cmd mvn -v报错: Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0 解决方法:卸载jdk1.6,安装jdk1.7…
1.install报错解决[致命错误: 在类路径或引导类路径中找不到程序包 java.lang] Windows分隔符英文分号 <bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath> linux分隔符英文冒号 <bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspat…
这里 记录下 这个问题的解决方案: 1:修改maven settings.xml 中的数据 这里的版本要对应现在使用的jdk版本 2:检查idea 配置 图中2块区域要一致 检查这块地方对应了自己的jdk版本没有 (我的问题就这里没对上) 对应 jdk版本 3:在项目pom中制定jdk版本 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.c…