deps

extract project dependencies and download them later using bash

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.aerse.maven
ArtifactId

ArtifactId

deps-maven-plugin
Last Version

Last Version

1.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

deps
extract project dependencies and download them later using bash
Project URL

Project URL

https://github.com/dernasherbrezon/deps-maven-plugin
Source Code Management

Source Code Management

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

Download deps-maven-plugin

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.maven : maven-core jar 3.0.5
org.apache.maven.shared : maven-common-artifact-filters jar 3.1.0

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5

test (2)

Group / Artifact Type Version
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 2.1
org.apache.maven : maven-compat jar 3.0.5

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.2
1.1
1.0