deps

extract project dependencies and download them later using bash

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка
Группа

Группа

com.aerse.maven
Идентификатор

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

deps-maven-plugin
Последняя версия

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

1.2
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

deps
extract project dependencies and download them later using bash
Ссылка на сайт

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

https://github.com/dernasherbrezon/deps-maven-plugin
Система контроля версий

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

https://github.com/dernasherbrezon/deps-maven-plugin

Скачать deps-maven-plugin

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

<plugin>
    <groupId>com.aerse.maven</groupId>
    <artifactId>deps-maven-plugin</artifactId>
    <version>1.2</version>
</plugin>

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-core jar 3.0.5
org.apache.maven.shared : maven-common-artifact-filters jar 3.1.0

provided (1)

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

test (2)

Идентификатор библиотеки Тип Версия
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 2.1
org.apache.maven : maven-compat jar 3.0.5

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

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

deps-maven-plugin Build Status Quality Gate Status

Maven plugin that outputs dependency information suitable for bash script to download. This is reasonable tradeoff between creating fat jar and installing full jdk, maven with ton of dependencies.

configuration

Parameter Default value Description
repositories ${project.build.directory}/repositories.txt file with repositories used by project. Every repository on separate line.
dependencies ${project.build.directory}/dependencies.txt file with dependencies and transitive dependencies. Every dependency on separate line. Format suitable for download. I.e. ```/com/example/artifact/1.0/artifact-1.0.jar```
script ${project.build.directory}/download-dependencies.sh script that could download dependencies from repositories. no maven required.
excludes List of artifacts to exclude. This is very useful to exclude artifacts from the private repositories. The pattern follows maven assembly plugin

sample configuraiton

<plugin>
	<groupId>com.aerse.maven</groupId>
	<artifactId>deps-maven-plugin</artifactId>
	<configuration>
		<repositories>${project.build.directory}/deps/repositories.txt</repositories>
		<dependencies>${project.build.directory}/deps/dependencies.txt</dependencies>
		<script>${project.build.directory}/deps/script.sh</script>
		<excludes>
			<exclude>com.examples:*:*<exclude>
		</excludes>
	</configuration>
</plugin

The directory ${project.build.directory}/deps will contain everything required for .jar download. For example this directory could be used by assembly plugin to generate result binary.

After unpacking on target machine, execute script: ./script.sh . /usr/share/java/applicaiton/. Script supports the following arguments:

  • Directory with repositories.txt and dependencies.txt files
  • Directory where to output downloaded dependencies

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

Версия
1.2
1.1
1.0