GithubHelp home page GithubHelp logo

drjoliv / jdebian-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 32 KB

A Maven Plugin for creating .deb file for Java applications

License: MIT License

Java 100.00%
maven-plugin java debian

jdebian-maven-plugin's Introduction

jDebian


A Maven Plugin for creating .deb files from Java applications.

jDebian creates an executable Jar file from your Java code and wraps it up in a .deb file. Additionally all of the RUNTIME dependencies located within your pom.xml are added to the classpath of the the exectuable Jar and are also wrapped up nice and tight within the .deb file.

Below is an example of adding jDebian to your pom.xml

...
  <packaging>deb</packaging>

...
<repositories>
  <repository>
      <id>jitpack.io</id>
      <url>https://jitpack.io</url>
  </repository>
</repositories>

...
  <build>
      <plugins>
        <plugin>
          <groupId>com.github.drjoliv</groupId>
          <artifactId>jdebian-maven-plugin</artifactId>
          <version>0.1-SNAPSHOT</version>
          <!-- required configuration parameters-->
          <configuration>
            <!-- Detailed description of the application. -->
            <longDecription>A long description of the jDebian plugin example.</longDecription>  

            <!-- Short description of application no more that 60 characters. -->
            <shortDecription>A short description of the jDebian plugin example.</shortDecription> 

            <!-- Email of the application maintainer. -->
            <maintainerEmail>[email protected]</maintainerEmail>

            <!-- Name of the application maintainer.-->
            <maintainerName>Desonte Jolivet</maintainerName> 

            <!--Executable JAR entry point-->
            <mainClass>com.github.drjoliv.App</mainClass>
          </configuration>

          <!-- Very IMPORTANT enables custom lifecycle -->
          <extensions>true</extensions>
        </plugin>
      </plugins>
  </build>
...

Usage

Creating .deb archive

The below exampls use this example maven project.

  • mvn package

asciicast

Install .deb application to your machine.

  • mvn install

asciicast

Dependency

  • dpkg

jdebian-maven-plugin's People

Contributors

drjoliv avatar

Stargazers

Rob Stolarz avatar

Watchers

James Cloos avatar

jdebian-maven-plugin's Issues

Add components.xml

Override default lifecycle replacing the default packaging goal with DebianMojo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.