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),就不会有问题了。
分享到:
相关推荐
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project
maven-artifact-3.3.9.jar包,项目编译缺少这个包,一直拉不下来,好不容易搞到它,留作备用
maven 缺少CKFinderPlugin-FileEditor-2.3/2.6 jar包CKFinderPlugin-FileEditor-2.3.jar的架包在maven仓库中找不到,可以使用下面方式导入到本地仓库中。 1、在网上下载这个jar包到本地,...
jsp登录注册页面 SpringMVC例子工程,包含jsp的页面登录注册,jdbc的数据库交互,maven项目的转变和通过artifact设置把maven的lib包转入到web-info的lib目录下.zip
在<plugins></plugins>中添加 <groupId>org.apache.maven.plugins <artifactId>maven-compiler-plugin <version>3.8.1 <source>1.8 <target>1.8 </plugin>
Maven 使用 tomcat8-maven-plugin 插件 Maven 是一个流行的构建自动化工具,它可以帮助开发者自动完成项目的编译、测试、打包、部署等任务。 Tomcat 是一个流行的 Web 服务器,Maven 提供了一个插件 tomcat8-maven-...
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
然而,开发者在使用IntelliJ IDEA(简称Idea)导入Maven项目时,可能会遇到“Unable to import Maven project”的错误提示,这会阻碍项目的正常启动和开发工作。本文将详细解释这个问题的原因,并提供解决方案。 ...
在使用Maven构建Java项目时,可能会遇到这样一个错误:“Failed to execute goal on project …: Could not resolve dependencies for project …”。这个错误通常表明Maven在构建过程中遇到了依赖解析问题,无法...
eclipse远程调试hadoop时 报出eclipse Hadoop Failed to set permissions of path错误 修改hadoop core包中FileUtil java文件 里面有checkReturnValue方法 将代码throw new IOException "Failed to set ...
Apache Maven 是一个强大的项目管理和构建工具,主要用于Java应用程序的开发。它基于项目对象模型(Project Object Model,POM)的概念,能够自动化构建过程,管理依赖关系,并提供一套标准的项目结构。Maven 3.6.0...
maven项目转换为eclipse项目所需要的包。
Java Maven CKFinderPlugin-FileEditor 2.3 Jar包依赖详解 在Java开发环境中,Maven作为项目管理和构建工具,其强大的依赖管理功能是开发者的重要助手。本篇将详细解析"java-maven-ckfinderplugin-fileeditor-2.3-...
在Java开发领域,Maven是一个不可或缺的构建工具,它通过管理项目依赖关系,简化了项目的构建、测试和部署过程。本文将深入探讨如何在Maven项目中引入依赖的包,并结合相关源码和工具,帮助开发者更好地理解和使用这...
maven构建的项目转eclipse项目时,需要的包。
** Maven Integration for Eclipse 插件详解 ** "Maven Integration for Eclipse",简称m2eclipse,是Eclipse集成开发环境中的一个强大插件,旨在帮助开发者无缝地在Eclipse中管理和构建基于Maven的Java项目。这个...
Apache Maven 是一个强大的项目管理工具,广泛用于Java开发领域,主要功能是自动化构建、依赖管理和项目信息管理。Maven 的核心理念是通过约定优于配置的原则,简化项目的构建过程。在这个"apache-maven-3.5.3...
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 ...
maven-filesync-plugin-1.0.0.jar