From 5b5cdcbdd30660e70d1a5475d0981270c56ac574 Mon Sep 17 00:00:00 2001 From: Nekojimi <jim@nekojimi.moe> Date: Mon, 27 Sep 2021 11:34:11 +0100 Subject: [PATCH] Initial commit --- .gitignore | 48 +++++++++++++++++++ LICENSE | 11 +++++ README.md | 2 + pom.xml | 38 +++++++++++++++ .../moe/nekojimi/javamaventemplate/Main.java | 21 ++++++++ 5 files changed, 120 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 pom.xml create mode 100644 src/main/java/moe/nekojimi/javamaventemplate/Main.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ce805e5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,48 @@ +# ---> Java +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +# ---> Maven +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +# https://github.com/takari/maven-wrapper#usage-without-binary-jar +.mvn/wrapper/maven-wrapper.jar + +# ---> NetBeans +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7a3094a --- /dev/null +++ b/LICENSE @@ -0,0 +1,11 @@ +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +Version 2, December 2004 + +Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> + +Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. + +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/README.md b/README.md new file mode 100644 index 0000000..d8785b4 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# JavaMavenTemplate + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..08adc63 --- /dev/null +++ b/pom.xml @@ -0,0 +1,38 @@ +<?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"> + <modelVersion>4.0.0</modelVersion> + <groupId>uk.co.chamsys</groupId> + <artifactId>JavaMavenTemplate</artifactId> + <version>1.0-SNAPSHOT</version> + <packaging>jar</packaging> + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <maven.compiler.source>11</maven.compiler.source> + <maven.compiler.target>11</maven.compiler.target> + </properties> + <build> + <plugins> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <descriptorRefs> + <descriptorRef>jar-with-dependencies</descriptorRef> + </descriptorRefs> + <archive> + <manifest> + <mainClass>moe.nekojimi.javamaventemplate.Main</mainClass> + </manifest> + </archive> + </configuration> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> \ No newline at end of file diff --git a/src/main/java/moe/nekojimi/javamaventemplate/Main.java b/src/main/java/moe/nekojimi/javamaventemplate/Main.java new file mode 100644 index 0000000..17ac700 --- /dev/null +++ b/src/main/java/moe/nekojimi/javamaventemplate/Main.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package moe.nekojimi.javamaventemplate; + +/** + * + * @author jim + */ +public class Main +{ + /** + * @param args the command line arguments + */ + public static void main(String[] args) + { + System.out.println("Hello world!"); + } +}