Unpack artifact maven plugin

Unpacking maven artifacts

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

hu.blackbelt
ArtifactId

ArtifactId

unpack-artifact-maven-plugin
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Unpack artifact maven plugin
Unpacking maven artifacts
Project URL

Project URL

http://github.com/BlackBeltTechnology/unpack-artifact-maven-plugin
Source Code Management

Source Code Management

http://github.com/BlackBeltTechnology/unpack-artifact-maven-plugin

Download unpack-artifact-maven-plugin

How to add to project

<plugin>
    <groupId>hu.blackbelt</groupId>
    <artifactId>unpack-artifact-maven-plugin</artifactId>
    <version>1.0.0</version>
</plugin>

Dependencies

compile (6)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.1.0
org.apache.maven : maven-artifact jar 2.2.1
org.sonatype.plexus : plexus-build-api jar 0.0.7
uk.org.lidalia : sysout-over-slf4j jar 1.0.2
org.slf4j : slf4j-simple jar 1.7.25
commons-io : commons-io jar 2.6

provided (3)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.3
org.apache.maven : maven-core jar 3.2.3
org.projectlombok : lombok jar 1.18.0

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-all jar 1.9.5

Project Modules

There are no modules declared in this project.

maven-unpack-artifact-plugin

More customizable maven unpack plugin. The goal of this packing to use instead of dependency plugin whic cannot unpack files from artifacts without full path.

Usage:


            <plugin>
                <groupId>hu.blackbelt</groupId>
                <artifactId>unpack-artifact-maven-plugin</artifactId>
                <version>1.0.0</version>
                <executions>
                    <execution>
                        <id>copy-files-from-jar</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>

                        <configuration>
                            <outDirectory>${basedir}/src/main</outDirectory>
                            <artifacts>
                                <artifact>
                                    <groupId>hu.blackbelt</groupId>
                                    <artifactId>testartifact</artifactId>
                                    <version>${judo.expression.version}</version>
                                    <resources>
                                        <resource>
                                            <source>jar/path</source>
                                            <destination>target/path</destination>
                                        </resource>
                                   </resources>
                                </artifact>
                            </artifacts>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

This example unpack jar/path entries from testartifact into target/path folder recursively. The unpack checking the files, and if there is difference in the content the plugin fails.

hu.blackbelt

BlackBelt Technology

Versions

Version
1.0.0