maven plugins】的更多相关文章

官方文档:http://maven.apache.org/plugins/index.html# 这里主要介绍compiler插件的配置.http://maven.apache.org/plugins/maven-compiler-plugin/ 默认的JDK编译版本是1.5,并不适合目前主流的1.6以上的开发环境,需要进行单独配置(示例为1.8). 1,单独在某个项目的pom.xml中配置,仅适用该项目 官方文档 <project> [...] <build> [...] <…
maven打包成war时,报错:Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project web_nanchang: Error assembling WAR: webxml attribute is required 原因:找不到web.xml,但是项目中明明有这个文件,在WebContent/WEB-INF/文件夹下,就是识别不了解决方法:需要在pom…
编译cdh版hadoop2.5.0出现的问题 系统: CentOs66 64位 JDK:1.7 Maven: 3.0.5 Protobuf: libprotoc 2.5.0 编译命令: mvn package -DskipTests -Pdist,native **************************************************************************************** [INFO] -----------------------…
pom文件提示信息: Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or upd…
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project LogTest: Compilation failure -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit…
security-sdk-1.0.jar已经存在于D:/secServerSDK-test/src/main/resources/lib下 报错如下: xxxxxx@xxxxxxxx /d/secServerSDK-test/src/main/resources/lib$ mvn install:install-file -Dfile=security-sdk-1.0.jar -DgroupId=com.jd.security -DartifactId=security-sdk -Dversio…
报错:Error resolving version for plugin 'org.apache.maven.plugins:maven-eclipse-plugin' from the repositories,查找后发现本地用户目录仓库下只有maven-eclipse-plugin文件夹,并没有jar包 本地仓库没有maven-eclipse-plugin jar包,没装上maven-eclipse-plugin,解决 在项目的根目录添加: 修改pop.xml <build> <p…
问题: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli)  on project standalone-pom: Unable to parse configuration of 3:  mojo org.apache.maven.plugins:maven-archetype-plugin:2.4:create for parameter…
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-compiler-plugin:jar:3.1 in http://repository.jbo…
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on project mavenGame: The parameters 'finalName' for goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar are missing or invalid -> [Help 1] pom.xml文…
[ERROR]Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project cmcciwms: Compilation failure[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK…
I'm trying to run simple struts project using maven and tomcat. When I'm trying to exucute next goals:clean install tomcat7:run ,there is an error : [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean)…
1.Maven构建失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin: 2.3 . 2 :compile ( default-compile) on project oecp: Compilation failure 2.解决方法 把jdk换成自己安装的jdk 换后,再maven install就可以了…
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved   此问题的解决:   1.要确认spring sts已经设置代理 2.要确认windows -> Preferences -> maven 的settings.xml文件中,设置代理. 3.C:\Users\ttt\…
Error:Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:mav ... invalid END header (bad central directory offset) 装了win10 pro后,按照我平时在win7上的安装步骤等,正常应该能在Eclipse上创建maven的Java Web项目,不过我就导入了自己原来的项目也不行,出现上面的错误,接着就直接创建个新的项目也一样出现上面…
Maven install失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project autotest_fchtgl: Compilation failure[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE r…
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:jar:2.6 解决方法: 删除maven库…
首件创建项目:此处可参照:http://maven.apache.org/guides/mini/guide-webapp.html mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp 将目录切换至my-webapp下,编译和打包: mvn clean package 此时,启动jboss服务器(我的是jboss…
一.发现问题 建立maven项目后,pom.xml在显示红叉.鼠标放上去,显示Executiondefault-testResources of goalorg.apache.maven.plugins:maven-resources-plugin:2.4.3错误. 二.原因分析 缺少maven-resources-plugin-2.4.3.jar或该文件下载不对,可到repository\org\apache\maven\plugins\maven-resources-plugin\文件夹看看…
1.命令行用maven编译项目失败,提示 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) 原因是:mvn 在编译时调用的jdk版本是从系统环境变量中获取的,我配置的是jdk1.6,但是我的项目使用jdk1.7开发的. 解决方案:修改系统环境变量的jdk为1.7,或者修改本地开发环境为1.6(这个不建议)…
源文URL:http://blog.csdn.net/caiwenfeng_for_23/article/details/44514947 mvn compile  没有问题,mvn package的时候报如下错误: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test 解决方法: 打包跳过测试有两种方法 一是命令行,mvn clean package -Dmaven.test.skip=tr…
在碰到maven install 发现报错 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project autotest_fchtgl: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on…
Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:maven-compiler-plugin:maven-compiler-plugin:3.5.1:runtime Cause: error in opening zip file 问题: 创建后pom报错: 只是POM报错,其他都没有报错 解决办法: 问题定位是本地Repository: 找到org.apache.maven.plugins/…
这里有两种解决办法. 一:右键项目->maven->update project勾选上Force Update of Snapshots/Releases然后ok就可以了. 二:如果第一种方法没解决, 那么原因可能是下载文件错误 解决方法: 1.找到maven本地仓库,目录:C:\Users\Administrator\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.12.4 2.根据你的报错路径如下图 3.删除文…
[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.319 s [INFO] Finished at: --24T10::+: [INFO] Final Memory: 16M/205M [INFO] -----------------------------------------------------…
maven打包成war时,报错: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project child02: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [H…
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project triage: Compilation failure[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?…
使用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:…
安装Maven后每次启动出现警告信息: Eclipse is running in a JRE, but a JDK is requiredSome Maven plugins may not work when importing projects or updating source folders. 分两步解决问题: 1. 检查Eclipse正在使用的JRE ‘Window’ -> ‘Preferences’ -> ‘Java’ -> ‘Installed JREs’ 确定正在使用…
通过IDEA 提供的面板 执行package 或者 install 没有错误,但是cmd terminal 窗口就不行!出现: Maven 错误:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project appservice-common: Fatal error compiling: 无效的目标发行版: 1.8 后面发现是JAVA_…