git-checkout-plugin

A Maven plugin to perform a sparse checkout from a given Git repository.

Лицензия

Лицензия

Категории

Категории

Git Инструменты разработки Контроль версий
Группа

Группа

com.github.lzaruba
Идентификатор

Идентификатор

git-checkout-plugin
Последняя версия

Последняя версия

1.0.4
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

git-checkout-plugin
A Maven plugin to perform a sparse checkout from a given Git repository.
Ссылка на сайт

Ссылка на сайт

https://github.com/LZaruba/git-checkout-plugin
Система контроля версий

Система контроля версий

https://github.com/LZaruba/git-checkout-plugin.git

Скачать git-checkout-plugin

Как подключить последнюю версию

<plugin>
    <groupId>com.github.lzaruba</groupId>
    <artifactId>git-checkout-plugin</artifactId>
    <version>1.0.4</version>
</plugin>

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-plugin-api jar 3.5.0

provided (1)

Идентификатор библиотеки Тип Версия
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5

test (2)

Идентификатор библиотеки Тип Версия
org.junit.jupiter : junit-jupiter jar 5.5.2
org.assertj : assertj-core jar 3.11.1

Модули Проекта

Данный проект не имеет модулей.

git-checkout-plugin

A Maven plugin to perform a sparse checkout (fetch only a subtree) from a given Git repository.

For details on sparse checkout see https://git-scm.com/docs/git-read-tree.

Forked from the original https://github.com/gastaldi/git-checkout-plugin

Maven Central

POM Configuration

<project>
  ...
  <build>
    <plugins>
       <plugin>
          <groupId>com.github.lzaruba</groupId>
          <artifactId>git-checkout-plugin</artifactId>
          <version>1.0.1</version>
          <executions>
             <execution>
                <id>get-docs</id>
                <phase>process-resources</phase>
                <goals>
                   <goal>git-checkout</goal>
                </goals>
             </execution>
          </executions>
          <configuration>
             <!-- The git repository to use -->
             <repository>https://github.com/LZaruba/git-checkout-plugin</repository>
             <!-- The paths to checkout -->
             <paths>
                <path>example</path>
             </paths>
          </configuration>
       </plugin>
    </plugins>
  </build>
   ...
</project>

Output

[INFO] --- git-checkout-plugin:1.0.0-SNAPSHOT:git-checkout (get-docs) @ launchpad-addon ---
Initialized empty Git repository in /home/ggastald/workspace/launchpad/launchpad-addon/target/classes/.git/
remote: Counting objects: 2614, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 2614 (delta 0), reused 1 (delta 0), pack-reused 2609
Receiving objects: 100% (2614/2614), 2.90 MiB | 1.00 MiB/s, done.
Resolving deltas: 100% (1570/1570), done.
From github.com:openshiftio/appdev-documentation
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
[INFO] Files available in: /home/ggastald/workspace/launchpad/launchpad-addon/target/classes

Parameters

Name Default Value Required Description
repository true URL of the repository (both ssh and https work)
paths true List of paths to be picked up from the repository (will be added to $GIT_DIR/info/sparse-checkout).
outputDirectory ${project.build.outputDirectory} false Directory into which the git content will be checked out
branch master false Specifies branch to be checked out
username false If provided and repository schema is https it will be added to the url
pasword false If provided it will be added to the username in url. Cannot be provided without username

Версии библиотеки

Версия
1.0.4
1.0.3
1.0.2
1.0.1