Skip to content

RiotGamesMinions/riot-redline-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Uses the pure Java Redline library to create RPMs during the package phase of the Maven lifecycle.

Offers an Operating System agnostic way of creating RPMs that differs from Redline's provided Ant tasks.

Requirements

  • Java 1.6
  • Maven 3.0.X

Example Usage

<plugin>
    <groupId>com.riotgames.maven</groupId>
    <artifactId>riot-redline-plugin</artifactId>
    <version>1.2.1-SNAPSHOT</version>
    <executions>
        <execution>
            <goals>
                <goal>rpm</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <packaging>
            <name>my-rpm</name>
            <version>1.0</version>
            <release>${maven.build.timestamp}</release>
        </packaging>
        <platform>
           <architecture>noarch</architecture>
           <os>linux</os>
        </platform>
        <group>Applications/System</group>
        <vendor>My Company</vendor>
        <license>COMMERCIAL</license>
        <url>www.riotgames.com</url>
        <summary>This RPM installs my program.</summary>
        <postInstallScript>${project.basedir}/src/main/rpm/postInstall.sh</postInstallScript>
        <destination>${project.basedir}/target</destination>
        <attach>true</attach>
        <mappings>
            <mapping>
                <directory>/opt/tomcat/webapps</directory>
                <filemode>0744</filemode>
                <dirmode>0755</dirmode>
                <username>user</username>
                <groupname>group</groupname>
                <sources>
                    <source>${project.basedir}/target/someFile.txt</source>
                </sources>
            </mapping>
            <mapping>
                <directory>/opt/util/dependencies</directory>
                <filemode>0644</filemode>
                <dirmode>0755</dirmode>
                <username>user</username>
                <groupname>group</groupname>
                <sources>
                    <source>${project.basedir}/target/dependency</source>
                </sources>
            </mapping>
        </mappings>
    </configuration>
</plugin>

See the Wiki for more detailed configuration examples and requirements.

License and Author

Author:: Kyle Allan ([email protected])

Copyright:: 2012 Riot Games Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

An operating system agnostic Maven plugin for creating RPMs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published