, 당신이 사용할 수있는
는 Post build task가
간단한 스크립트 참조 github 다운로드 플러그인 - https://github.com/github/maven-plugins. 빌드의 일부로 Riak Java 클라이언트를 다운로드 섹션에 배치하는 데이 파일을 사용합니다. 당신의 ~/.m2/Settings.XML의에서
이 필요합니다
이
<profile>
<id>githubUpload</id>
<activation>
<property>
<name>github.downloads</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>downloads-maven-plugin</artifactId>
<version>0.4</version>
<configuration>
<description>${project.version} release of ${project.name}</description>
<override>false</override>
<includeAttached>true</includeAttached>
</configuration>
<executions>
<execution>
<goals>
<goal>upload</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
(필자는 설치의 일부로하고 있어요 : 같은 프로젝트의 .pom
뭔가 그런
<settings>
<profiles>
<profile>
<id>github</id>
<properties>
<github.global.userName>YourGithubUser</github.global.userName>
<github.global.password>YourGithubPass</github.global.password>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
</settings>
단계는 - 당신이 원하는 그러나 당신은) 할 수
그리고 단순히 받는다는 빌드에 -Dgithub.downloads=true
를 추가 -
mvn install -Dgithub.downloads=true
플러그인의 웹 페이지 등의 파일을 제외/포함 모든 옵션을 나열
당신이 당신의 프로젝트를 빌드 받는다는 사용하고 있습니까? –
기존의 repo에 파일을 추가하고 변경 사항을 적용하거나 GitHub의 다운로드 섹션에 파일을 추가하려고합니까? –
@brian - 예 - 프로젝트를 빌드 할 때 maven을 사용하고 있습니다. – empire29