Git Product home page Git Product logo

apt-maven-plugin's Introduction

apt-maven-plugin .github/workflows/build.yml Quality Gate Status

This plugin deploys .deb artifacts into apt repository. It searches for attached artifacts which end with .deb extension. .deb files could be generated by jdeb.

Usage

To publish .deb artifacts a distribution section must be configured:

<distributionManagement>
    <repository>
      <id>apt-repository</id>
      <name>Maven artifact repository to act as apt-repository</name>
      <url>https://example.com/release</url>
    </repository>
</distributionManagement>

And configure apt-maven-plugin:

<plugins>
...
  <plugin>
    <groupId>com.aerse.maven</groupId>
    <artifactId>apt-maven-plugin</artifactId>
    <version>1.21</version>
    <executions>
      <execution>
        <id>deploy</id>
        <goals>
          <goal>deploy</goal>
        </goals>
      </execution>
    </executions>
    <configuration>
      <component>main</component> <!-- Required. Example: main restricted universe. -->
      <codename>repo</codename> <!-- Required. Example: mycompany, repo -->
      <skip>false</skip> <!-- Not required. By default: false -->
      <sign>true</sign> <!-- Not required. By default: false. GPG-sign of "Release" file. Configuration is same as in maven-gpg-plugin -->
      <keyname>123</keyname> <!-- Not required. Keyname from the gpg keychain -->
      <passphraseServerId>gpg.passphrase</passphraseServerId> <!-- Not required. Id of server from local settings.xml -->
    </configuration>
  </plugin>
...
</plugins>
  • component - type of repository. Ubuntu proposes the following naming for them:
    • main- Officially supported software. Recommended.
    • restricted - Supported software that is not available under a completely free license.
    • universe - Community maintained software, i.e. not officially supported software.
    • multiverse - Software that is not free.
  • codename - codename of release.

Hints

It is possible to deploy multiple .deb file using command line. Configuration will be taken from pom.xml:

mvn apt:deploy -Dmaven.apt.files=target/*.deb

If package was signed once (using "sign=true" option), then un-sign (using "sign=false") will cause GPG checksum failure during apt-get update. Maven Wagon doesn't support "delete" operation, so I cannot remove "Release.gpg" file from apt repository. Please remove "Release.gpg" manually if you have to stop signing.

Works perfectly with aws-maven. Just configure distribution section to use s3://bucketname.

If you want to publish only .deb artifacts, then turn standard deploy plugin off:

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-deploy-plugin</artifactId>
    <version>2.7</version>
    <configuration>
      <skip>true</true>
    </configuration>
  </plugin>

apt-maven-plugin's People

Contributors

dependabot[bot] avatar dernasherbrezon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

apt-maven-plugin's Issues

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.