maven 安装本地jar失败 错误指南

|-------------------|
| Maven 安装本地 jar 失败 |

安装命令:

mvn install:install-file -Dfile=文件路径地址 -DgroupId=com.allinpay.sdk -DartifactId=top-sdk-java -Dversion=1.0.5 -Dpackaging=jar

错误描述 :

Unknown lifecycle phase ".allinpay.sdk". You must specify a valid lifecycle phase or a goal in the format : or :::. Avail

able lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-res

ources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-

clean, pre-site, site, post-site, site-deploy. -> Help 1

错误原因 :

存在特殊字符无法解析

更改后 :

mvn install:install-file -Dfile=文件地址 -DgroupId="com.allinpay.sdk" -DartifactId=top-sdk-java -Dversion="1.0.5" -Dpackaging=jar

可以看到文件的DgroupId加上双引号即可.

相关推荐
卓怡学长19 小时前
w176基于SpringBoot的医院管理系统
java·spring boot·spring·maven·intellij-idea
han_hanker2 天前
新手公司项目实战
java·maven
LINgZone22 天前
Maven多模块依赖管理与私有JAR包策略
java·maven·jar
MetaLite2 天前
SpringBoot项目Maven-BOM统一版本就不会冲突吗
spring boot·后端·maven
Linux-lucky3 天前
28-Linux学习之旅之Maven与Nexus制品库
linux·运维·学习·nginx·tomcat·maven
yurenpai(27届找实习中)3 天前
从零读懂AI智能客服(二):Java 多模块项目如何协作:Maven 依赖、Spring 注入与运行时装配
java·spring·maven
deng12043 天前
Maven多模块父子工程与IDEA导入异常排查记录
人工智能·maven·intellij-idea
相顾若初见3 天前
RuoYi后端jar镜像制作
java·jar
深漂的华哥4 天前
Ruoyi-Plus前后端分离场景下,数据加密传输
java·spring boot·后端·开源·maven·ruoyi
卓怡学长4 天前
w180springboot基于Java的悠扬乐器管理
java·spring boot·mysql·spring·maven·intellij-idea