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>