Skip to content

Instantly share code, notes, and snippets.

There are 3 plugins for generating to create a JAR-File in maven:

  • maven-jar-plugin
  • maven-assembly-plugin
  • maven-shade-plugin

maven-jar-plugin:This plugin provides the capability to build and sign jars.But it just compiles the java files under src/main/java and /src/main/resources/.It doesn't include the dependencies JAR files.

<!--exclude all xml files from the jar-->
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
@cvasani
cvasani / bash_strict_mode.md
Created July 15, 2024 15:03 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@cvasani
cvasani / Docker-Compose-List.md
Last active April 27, 2024 12:12
Docker-Compose

version: '3.8' services: oracle-xe: environment: - ORACLE_PASSWORD=oracle image: gvenzl/oracle-xe:slim-faststart ports: - "1521:1521" restart: unless-stopped volumes:

@cvasani
cvasani / agnoster_custom.fish
Last active April 13, 2024 08:25
fishTheme for git
# name: Agnoster
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for FISH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
## Set this options in your config.fish (if you want to :])
@cvasani
cvasani / Links.md
Last active April 7, 2024 04:49
Links.md