Skip to content

A simple JavaFX based browser that demonstrates flatpak-maven-plugin

License

Notifications You must be signed in to change notification settings

bithatch/flatpak-maven-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flatpak Maven Example

This project serves as an example for flatpak-maven-plugin, a Maven Plugin that helps turning your Maven managed Java application into a application that can be distributed as a Flatpak, e.g. from Flathub.

The application itself is a very simple JavaFX based web browser.

Requirements

  • Modern Linux distribution with Flatpak support.
  • Java 25
  • Apache Maven (3.9.0+ recommended)
  • Flatpak builder.

Layout

The project consists of just 3 files to create a runnable Flatpak application.

File Description
pom.xml The project object model. Plugin configuration here
src/flatpak/icons/icon.svg The application icon
src/main/java The Java application source with a single file with main method.

Build

mvn clean package

This will by default generate the Flatpak manifest and others in target/app. So from here you can build the package.

mvn install

Run

Then run (or look in your application menu).

flatpak run uk.co.bithatch.FlatpakMavenExample 

About

A simple JavaFX based browser that demonstrates flatpak-maven-plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages