<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kazuhira</author_name>
  <author_url>https://blog.hatena.ne.jp/Kazuhira/</author_url>
  <blog_title>CLOVER🍀</blog_title>
  <blog_url>https://kazuhira-r.hatenablog.com/</blog_url>
  <categories>
    <anon>Maven</anon>
    <anon>sbt</anon>
  </categories>
  <description>sbt-assemblyやMaven Shade Pluginなどで実行可能なJARファイル（java -jar xxxxx.jar）を作成することが できますが、このJARファイルの最初の方にシェルスクリプトやWindowsのバッチファイルの内容を差し込むことで、 単体のファイルとして実行することができるようになります。Embulkが、この手法を使っています。 https://github.com/embulk/embulk/blob/v0.8.18/embulk-cli/src/main/sh/selfrun.sh参考） 実行可能 jar をコマンドっぽく実行するために（java -jar…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazuhira-r.hatenablog.com%2Fentry%2F20170414%2F1492182638&quot; title=&quot;sbtとMavenで、実行可能JARファイルの先頭に起動スクリプトを差し込む - CLOVER🍀&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-04-14 00:10:38</published>
  <title>sbtとMavenで、実行可能JARファイルの先頭に起動スクリプトを差し込む</title>
  <type>rich</type>
  <url>https://kazuhira-r.hatenablog.com/entry/20170414/1492182638</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
