【发布时间】:2022-07-15 07:22:18
【问题描述】:
我正在尝试使用以下命令将我的 jar 文件部署到 Azure maven repo(Azure 工件)
mvn deploy:deploy-file -Dpackaging="jar" -DrepositoryId=“id” -Durl="/Users/myname/.m2" -DgroupId="com.alexgilleran" -DartifactId="icesoap" -Dversion="2.2.0" -Dfile="/Users/myname/.m2/repository/com/alexgilleran/icesoap/2.2.0/icesoap-2.2.0.jar"
我收到以下消息
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project icesoap: No transfer protocol found. -> [Help 1]
我进行了很多研究以了解可能导致此问题的原因,但没有运气。有人可以让我知道可能导致此问题的原因以及相同的解决方案吗? 我在 Settings.xml 中有我的凭据,如下所示,我在尝试使用上述命令进行部署之前执行 mvn clean install
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>test003</id>
<username>MyUsername</username>
<password>[MY_PERSONAL_ACCESS_TOKEN]</password>
</server>
</servers>
</settings>
【问题讨论】:
标签: azure maven maven-2 maven-3 azure-artifacts