나는 따르려고 : github에서 Maven 저장소 호스팅
내 POM.xml
<parent>
<artifactId>rf</artifactId>
<groupId>com.zlhades</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>rfcore</artifactId>
<properties>
<java-version>1.7</java-version>
<github.global.server>github</github.global.server>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>${java-version}</source>
<target>${java-version}</target>
<encoding>UTF-8</encoding>
</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 -->
<noJekyll>true</noJekyll> <!-- disable webpage processing -->
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory> <!-- matches distribution management repository url above -->
<branch>refs/heads/mvn-repo</branch> <!-- remote branch name -->
<includes><include>**/*</include></includes>
<repositoryName>RequestForward</repositoryName> <!-- github repo name -->
<repositoryOwner>zlhades</repositoryOwner> <!-- github username -->
</configuration>
<executions>
<!-- run site-maven-plugin's 'site' target as part of the build's normal 'deploy' phase -->
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>deploy</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>internal.repo</id>
<name>Temporary Staging Repository</name>
<url>file://${project.build.directory}/mvn-repo</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>2.0.2-beta</version>
<scope>test</scope>
</dependency>
</dependencies>
그리고 아래 오류가 발생했습니다.
========================= log ======================= ==
[오류] 프로젝트 rfcore에서 com.github.github : site-maven-plugin : 0.12 : site (기본값) 목표를 실행하지 못했습니다. 커밋 생성 오류 : 잘못된 요청입니다.
[오류] '속성 / 이름'의 경우 nil은 문자열이 아닙니다.
[오류] '속성 / 이름'의 경우 nil은 문자열이 아닙니다. (422)
[오류]-> [도움말 1]
org.apache.maven.lifecycle.LifecycleExecutionException : 프로젝트 rfcore에서 목표 com.github.github : site-maven-plugin : 0.12 : site (기본값) 실행 실패 : 커밋 생성 오류 : 잘못된 요청.
'속성 / 이름'의 경우 nil은 문자열이 아닙니다.
'속성 / 이름'의 경우 nil은 문자열이 아닙니다. (422) ========================= log ==================== =====
이 문제를 해결하는 방법은 무엇입니까?
Thx, 나는 대답을 찾았습니다.이 게시물의 하단에있는 의견은이 오류를 피하기 위해 github 프로필의 실제 이름 필드를 채워야 함을 제안합니다.
https://malalanayake.wordpress.com/2014/03/10/create-simple-maven-repository-on-github/
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다