Maven Plugin for SilverFabric Distributions

Maven Plugin for creating distributions and uploading grid libraries.

License

License

https://github.com/fabrician/distribution-maven-plugin/blob/master/LICENSE.txt
Categories

Categories

Maven Build Tools Distribution
GroupId

GroupId

org.fabrician.maven-plugins
ArtifactId

ArtifactId

distribution-plugin
Last Version

Last Version

1.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Maven Plugin for SilverFabric Distributions
Maven Plugin for creating distributions and uploading grid libraries.
Project URL

Project URL

https://github.com/fabrician/distribution-maven-plugin
Source Code Management

Source Code Management

https://github.com/fabrician/distribution-maven-plugin

Download distribution-plugin

How to add to project

<plugin>
    <groupId>org.fabrician.maven-plugins</groupId>
    <artifactId>distribution-plugin</artifactId>
    <version>1.2</version>
</plugin>

Dependencies

compile (7)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.0
org.apache.maven : maven-project jar 2.0.11
org.apache.maven.shared : maven-shared-utils jar 0.3
org.apache.httpcomponents : httpclient jar 4.2.3
org.apache.httpcomponents : httpmime jar 4.2.3
org.apache.commons : commons-compress jar 1.5
commons-io : commons-io jar 2.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

fabrician.org

Distribution Maven Plugin

Maven Plugin for creating distributions and uploading grid libraries to SilverFabric.

Release builds are available from Maven Central. The latest release is 1.2.

Distribution Packaging

distribution:package

Full name:

org.fabrician.maven-plugins:distribution-plugin:1.1:package

Description:

Packages a grid libary given the grid-library.xml resource directory and 3rd party directory or zip/tar.gz.

Parameters:

Name Description Default Value Version Added
distroFilename The target name of the distribution grid library. The extension must be tar.gz or zip. 1.0
distroSource The URL, file or directory that contains the software to bundle. When specifying an URL, connectionTimeout and readTimeout can be specified for the file download. 1.0
includes A set of file patterns to include from the distroSource. 1.2-SNAPSHOT
excludes A set of file patterns to exclude from the distroSource. 1.2-SNAPSHOT
distroResources The directory that contains the grid library resources such as a grid-library.xml. src/main/resources/distribution 1.0
distroAlternateRootDirectory The alternate root directory name in the resulting grid library. Useful when the software zip or tar.gz basedir changes across versions. For example, a.zip:foo/bar/x.html -> b.tar.gz:myAltDir/bar/x.html when distroAlternateRootDirectory is set to myAltDir. 1.0

Example:

<plugin>
    <groupId>org.fabrician.maven-plugins</groupId>
    <artifactId>distribution-plugin</artifactId>
    <version>1.1</version>
    <configuration>
        <distroSource>/tmp/apache-activemq-5.7.0-bin.zip</distroSource>
        <distroFilename>${project.build.directory}/active-mq-5.7.0-distro.tar.gz</distroFilename>
        <distroResources>src/main/resources/distribution</distroResources>
        <distroAlternateRootDirectory>apache-activemq</distroAlternateRootDirectory>
    </configuration>
    <executions>
        <execution>
            <id>package-distribution</id>
            <phase>package</phase>
            <goals>
                <goal>package</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Grid Library Upload

distribution:upload

Full name:

org.fabrician.maven-plugins:distribution-plugin:1.0:upload

Description:

Upload one or more grid libraries to a running Silver Fabric Broker.

Parameters:

Name Description Default Value Version Added
brokerUrl Silver Fabric Broker URL. For Silver Fabric 5.5, use http://localhost:8000/livecluster/rest/v1/sf/gridlibs/archives. http://localhost:8000/livecluster/gridlibs/archives 1.0
brokerUsername Silver Fabric Broker user name admin 1.0
brokerPassword Silver Fabric Broker password admin 1.0
serverId Which server credentials to use from the user's settings.xml. This hasn't been implemented.
gridlibOverwrite Overwrite the grid libary if it already exists. false 1.0
includes A set of file patterns to include in the upload. 1.0
excludes A set of file patterns to exclude from the upload. 1.0

Example:

<plugin>
    <groupId>org.fabrician.maven-plugins</groupId>
    <artifactId>distribution-plugin</artifactId>
    <version>1.1</version>
    <executions>
    <plugin> 
        <execution>
            <id>upload-gridlibs</id>
            <phase>install</phase>
            <goals>
                <goal>upload</goal>
            </goals>
            <configuration>
                 <includes>
                     <include>*.tar.gz</include>
                 </includes>
            </configuration>
        </execution>
    </executions>
</plugin>
org.fabrician.maven-plugins

fabrician.org

Versions

Version
1.2
1.1