我正在尝试在github中推送代码。但是,我得到了错误
无法部署工件:无法将工件projectgroup:projectartifact:jar:0.0.1-20200816.065328-1从部署迁移到部署仓库(dav:https://github.com/username/projectname):无法传输文件:https://github.com/username/projectname/projectnamegroup/projectname/0.0.1-SNAPSHOT/projectname-0.0.1-20200816.065328-1.jar。
pom.xml
<groupId>compayname</groupId>
<artifactId>projectname</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>projectname</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testNG.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-webdav-jackrabbit</artifactId>
<version>1.0-beta-7</version>
</extension>
</extensions>
</build>
<repositories>
<repository>
<id>mvntestngrepo.read</id>
<url>https://github.com/username/projectname</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>deploymentRepo</id>
<url>dav:https://github.com/username/projectname</url>
</repository>
</distributionManagement>
Settings.xml
<server>
<id>deploymentRepo</id>
<username>myusername</username>
<password>mypassword</password>
</server>
期待您提出解决方案的建议。
答案 0 :(得分:0)
即使删除了webDav,它也不起作用