hile building project: maven install,maven package,maven war:inplace
在做项目过程中经常出现类似以下的错误,记下来备忘。
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - com.taobao.lifeuser:lifeuser-server:war:1.0.0-SNAPSHOT
[INFO]
[INFO] Id: com.taobao.lifeuser:lifeuser-server:war:1.0.0-SNAPSHOT
[INFO] task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: E:\dev\workspace\lifeuser\lifeuser-server\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] [war:war]
[INFO] Packaging webapp
[INFO] Assembling webapp[lifeuser-server] in [E:\dev\workspace\lifeuser\lifeuser-server\target\lifeuser-server-1.0.0-SNAPSHOT]
[INFO] Processing war project
[ERROR]
The following mojo encountered an error while executing:
Group-Id: org.apache.maven.plugins
Artifact-Id: maven-war-plugin
Version: 2.1-alpha-1
Mojo: war
brought in via: packaging: war
While building project:
Group-Id: com.taobao.lifeuser
Artifact-Id: lifeuser-server
Version: 1.0.0-SNAPSHOT
From file: E:\dev\workspace\lifeuser\lifeuser-server\pom.xml
Reason: Failed to copy file for artifact[com.taobao.lifeuser:lifeuser-core:jar:1.0.0-SNAPSHOT:compile]
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILED
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Dec 22 14:22:50 CST 2011
[INFO] Final Memory: 2M/10M
[INFO] ------------------------------------------------------------------------
Reason: Failed to copy file for artifact[com.taobao.lifeuser:lifeuser-core:jar:1.0.0-SNAPSHOT:compile]
错误原因:需要操作本次仓库中lifeuser-core.jar这个包,而在本地的workspace已经有一个lifeuser-core工程,此工程中也有一份lifeuser-core.jar包,导致出错.
解决方案:先将lifeuser-core这工程关掉,然后再去maven war:inplace(install、package),就不会有问题了。
分享到:
相关推荐
maven-artifact-3.3.9.jar包,项目编译缺少这个包,一直拉不下来,好不容易搞到它,留作备用
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project
maven 缺少CKFinderPlugin-FileEditor-2.3/2.6 jar包CKFinderPlugin-FileEditor-2.3.jar的架包在maven仓库中找不到,可以使用下面方式导入到本地仓库中。 1、在网上下载这个jar包到本地,...
idea创建Maven项目时,报错显示Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources,并且Maven插件内看不到 mybatis-generator。如下图: 折腾了好久发现配置放错地方了,...
maven-artifact-transfer-0.10.0.jar
File 转 MultipartFile 和需要的maven配置File 转 MultipartFile 和需要的maven配置File 转 MultipartFile 和需要的maven配置
MavenDependencyFetcher 一个Maven项目,用于获取Maven Artifact的Maven依赖项。
eclipse远程调试hadoop时 报出eclipse Hadoop Failed to set permissions of path错误 修改hadoop core包中FileUtil java文件 里面有checkReturnValue方法 将代码throw new IOException "Failed to set ...
maven构建的项目转eclipse项目时,需要的包。
maven项目转换为eclipse项目所需要的包。
maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装...
node-maven is a CLI tool for helping you escape from search-copy-paste, when you wanna compile a maven central library. Based on Maven Central API Quick Look Usage First of all, you are required to ...
pit1 spring boot之 maven install 报错[Maven][ERROR] Failed to execute goal org.spri
maven-filesync-plugin-1.0.0.jar
maven pom file desciption maven file maven filemaven filemaven filemaven file
java运行依赖jar包
这样,您可以确保您不会浪费时间在Apache Maven范围之外的东西上。 假设您的问题不存在,请提交该问题的票证。 清楚地描述问题,包括在出现错误时重现的步骤。 确保填写您知道存在问题的最早版本。 在GitHub上分叉...
apache-maven-3.5.3.jar包,apache-maven-3.5.3.jar包
[INFO] Reactor Summary for demo 0.0.1-SNAPSHOT: [INFO] [INFO] demo ……………………………………….. FAILURE [18:18 min] [INFO] admin-service ……………………………….. SKIPPED [INFO] user-service ……...
This Core update site contains a single component: "Maven Integration for Eclipse (Required)". When you install this component you will be installing all of the core Wizards, the POM Editor, Maven ...