В настоящее время я работаю над своим API для своей игры, и я бы хотел, чтобы его можно было восстановить из репозитория maven.
Итак, для этого я искал inte rnet, как с этим видео
Я нашел ту же ошибку, но решения не найдено: https://github.com/github/maven-plugins/issues/123
Я попробовал это, и оно все еще не работает, я могу загрузить свой репозиторий в свой github, но я не могу получить его из моей программы, которая использует его как зависимость.
Компиляция Maven: https://pastebin.com/ZEzhCFdt
~ / .m2 / хранилище / настройки. xml
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github</id>
<username>DoryanBessiere</username>
<password>**MY TOKEN**</password>
</server>
</servers>
</settings>
пом. xml :
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<altDeploymentRepository>internal.repo::default::file://${project.build.directory}/repository</altDeploymentRepository>
</configuration>
</plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.12</version>
<configuration>
<message>Maven artifacts for ${project.version}</message> <!-- git commit message -->
<outputDirectory>${project.build.directory}/repository</outputDirectory> <!-- matches distribution management repository url above -->
<branch>refs/heads/master</branch>
<merge>true</merge> <!-- remote branch name -->
<includes>
<include>**/*</include>
</includes>
<repositoryName>IsotopeStudioRepository</repositoryName> <!-- github repo name -->
<repositoryOwner>DoryanBessiere</repositoryOwner> <!-- github username -->
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>deploy</phase>
</execution>
</executions>
</plugin>
//
<distributionManagement>
<repository>
<id>github</id>
<url>file://${project.build.directory}/repository</url>
</repository>
</distributionManagement>
<properties>
<github.global.server>github</github.global.server>
</properties>