LINUX.ORG.RU

История изменений

Исправление bvn13, (текущая версия) :

Рабочий пример тут: https://github.com/bvn13/LicenseServerJClient

Инструкция тут: http://devcolibri.com/4405

Если быстренько, то:

смотри .pom. В нем настройка отправки делается плагином

<plugin>
                <groupId>com.github.github</groupId>
                <artifactId>site-maven-plugin</artifactId>
                <version>${github.maven-plugin}</version>
                <configuration>
                    <message>Maven artifacts for ${project.version}</message>
                    <noJekyll>true</noJekyll>
                    <outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
                    <branch>refs/heads/mvn-repo</branch>
                    <includes><include>**/*</include></includes>
                    <repositoryName>licenseserverjclient</repositoryName>
                    <repositoryOwner>bvn13</repositoryOwner>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>site</goal>
                        </goals>
                        <phase>deploy</phase>
                    </execution>
                </executions>
            </plugin>

Твой проект и логин на гитхабе укажи в

<repositoryName>licenseserverjclient</repositoryName>
<repositoryOwner>bvn13</repositoryOwner>

В пропертях укажи адрес репы на гитхабе:

    <properties>        <site.path>https://github.com/bvn13/LicenseServerJClient</site.path>
    </properties>

и обрати внимание, что пароль к гитхабу должен быть прописан в xml по инструкции (в ссылке):

Теперь осталось зайти в HOME папку на вашем компьютере, если это Windows, то C:/users/<username>/.m2/settings.xml создаем этот файл со следующийм содержимым.

Исходная версия bvn13, :

Рабочий пример тут: https://github.com/bvn13/LicenseServerJClient

Инструкция тут: http://devcolibri.com/4405

Если быстренько, то:

1) смотри .pom. В нем настройка отправки делается плагином

<plugin>
                <groupId>com.github.github</groupId>
                <artifactId>site-maven-plugin</artifactId>
                <version>${github.maven-plugin}</version>
                <configuration>
                    <message>Maven artifacts for ${project.version}</message>
                    <noJekyll>true</noJekyll>
                    <outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
                    <branch>refs/heads/mvn-repo</branch>
                    <includes><include>**/*</include></includes>
                    <repositoryName>licenseserverjclient</repositoryName>
                    <repositoryOwner>bvn13</repositoryOwner>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>site</goal>
                        </goals>
                        <phase>deploy</phase>
                    </execution>
                </executions>
            </plugin>

Твой проект и логин на гитхабе укажи в

<repositoryName>licenseserverjclient</repositoryName>
<repositoryOwner>bvn13</repositoryOwner>

В пропертях укажи адрес репы на гитхабе:

    <properties>        <site.path>https://github.com/bvn13/LicenseServerJClient</site.path>
    </properties>

и обрати внимание, что пароль к гитхабу должен быть прописан в xml по инструкции (в ссылке):

Теперь осталось зайти в HOME папку на вашем компьютере, если это Windows, то C:/users/<username>/.m2/settings.xml создаем этот файл со следующийм содержимым.