Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram Bogaert committed Jun 13, 2022
1 parent 3e7fb1d commit 40c8e84
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# minimal-main
# minimal-main

A minimal project creating an executable jar.

Serves as template project.
148 changes: 148 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!--
Written according to the POM Code Convention:
https://maven.apache.org/developers/conventions/code.html#POM_Code_Convention
-->
<modelVersion>4.0.0</modelVersion>

<groupId>bb.minimal-main</groupId>
<artifactId>xxx</artifactId>
<version>0.0.1-SNAPSHOT</version>

<name>BB: Minimal Main -> [xxx]</name>
<description>A minimal project creating an executable jar.</description>

<inceptionYear>2022</inceptionYear>
<licenses>
<license>
<name>Copyright License - Bram Bogaert</name>
<url>https://en.wikipedia.org/wiki/Copyright</url>
<!-- Values: repo, manual -->
<distribution>manual</distribution>
<comments>Permission to use, multiply, or distribute the code must be granted explicitly by the copyright holder.</comments>
</license>
</licenses>
<developers>
<developer>
<id>Bram Bogaert</id>
<name>Bram Bogaert</name>
<timezone>Europe/Brussels</timezone>
</developer>
</developers>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<maven.compiler.release>17</maven.compiler.release>
<mainClass>bb.minimalmain.Main</mainClass>
<maven.jar.forceCreation>true</maven.jar.forceCreation>
</properties>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<filesets>
<fileset>
<directory>target</directory>
<includes>
<include>**/*</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
</manifest>
<manifestEntries>
<Copyright>Bram Bogaert</Copyright>
</manifestEntries>
</archive>
</configuration>
</plugin>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
-->
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>${mainClass}</mainClass>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
-->
</plugins>
</build>
</project>
8 changes: 8 additions & 0 deletions src/main/java/bb/minimalmain/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package bb.minimalmain;

public class Main {

public static void main(final String[] args) {
}

}
Empty file added src/main/resources/empty
Empty file.
Empty file added src/test/java/empty
Empty file.
Empty file added src/test/resources/empty
Empty file.

0 comments on commit 40c8e84

Please sign in to comment.