Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

TIBCOSoftware/fabrician-distribution-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

NameDescriptionDefault ValueVersion Added
distroFilenameThe target name of the distribution grid library. The extension must be tar.gz or zip.1.0
distroSourceThe 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
includesA set of file patterns to include from the distroSource.1.2-SNAPSHOT
excludesA set of file patterns to exclude from the distroSource.1.2-SNAPSHOT
distroResourcesThe directory that contains the grid library resources such as a grid-library.xml.src/main/resources/distribution1.0
distroAlternateRootDirectoryThe 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:

NameDescriptionDefault ValueVersion Added
brokerUrlSilver Fabric Broker URL. For Silver Fabric 5.5, use http://localhost:8000/livecluster/rest/v1/sf/gridlibs/archives.http://localhost:8000/livecluster/gridlibs/archives1.0
brokerUsernameSilver Fabric Broker user nameadmin1.0
brokerPasswordSilver Fabric Broker passwordadmin1.0
serverIdWhich server credentials to use from the user's settings.xml. This hasn't been implemented.
gridlibOverwriteOverwrite the grid libary if it already exists.false1.0
includesA set of file patterns to include in the upload.1.0
excludesA 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>

About

Maven plugin for creating distributions and uploading grid libraries.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages