Here is a maven template file to :
- create JAR
- Javadoc
- execute Unit and Cucumber Tests
- build Shaded JAR
- generate epub+pdf from 'docs/' markdown files
- push github pages from 'docs/' markdown files
| /** | |
| * Bounding Box for any object managed by the system. | |
| * | |
| * @author Frédéric Delorme | |
| */ | |
| public class BoundingBox { | |
| /** | |
| * position for the boundingbox. | |
| */ |
| import java.util.List; | |
| import java.util.Objects; | |
| /** | |
| * {@link Vector2d} class is to define, manage and operate 2D Vector. | |
| * <p> | |
| * eg.usage : | |
| * | |
| * <pre> | |
| * // create a vector |
| #!/bin/bash | |
| alias l='ls --color=yes' | |
| alias ll='l -l' | |
| alias mci='mvn clean install' | |
| alias mcin='mci -DskipTests=true' | |
| alias mpp='mvn release:prepare' | |
| alias mpperf='mvn release:perform' | |
| alias idea='idea64.exe %1 &' | |
| alias ltree="ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'" |
| <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>core</groupId> | |
| <artifactId>usecasetdd</artifactId> | |
| <version>0.0.2-SNAPSHOT</version> | |
| <name>UseCaseTDD</name> | |
| <description>A demonstration project on how to create sustainable project.</description> | |
| <inceptionYear>2022</inceptionYear> | |
| <properties> |
(from https://www.ricalo.com/blog/install-powerline-ubuntu/#install-powerline)
sudo apt install powerlineactivate is by pasting in the ~/.bashrc :
| #!/bin/bash | |
| if [ $1 -eq ""]; then | |
| #---- Display help message --------------------------------------- | |
| echo -e "Command line: $0 | |
| Usage: | |
| ------- | |
| $0 -n [project_name] -p [project_version] -a [author_name] -e [author_email] -j [java_version] -k [app_package_name] | |
| where: | |
| - p [project_name] name of the project directory to be generated (will be used capitalized as application name and main class), | |
| - v [project_version] the version for the project to be initialized |