Skip to content

Instantly share code, notes, and snippets.

@yukihane
Created December 12, 2016 14:29
Show Gist options
  • Save yukihane/46edd967f461ee2554996dfdd4a2ce28 to your computer and use it in GitHub Desktop.
Save yukihane/46edd967f461ee2554996dfdd4a2ce28 to your computer and use it in GitHub Desktop.

Apache POIを改変し自前ビルド, maven install するまでのメモ.

手順

  1. ant clean jar jar-src maven-poms
  2. build/dist/maven/poi-ooxml に配布用モジュールができますのでこのディレクトリに移動(注).
  3. mvn -DpomFile=poi-ooxml-3.15.pom -Dfile=poi-ooxml-3.15.jar -Dsources=poi-ooxml-3.15-sources.jar install:install-file

注: 今回はpoi-ooxmlを改変したかったのでこのような説明になっている.

その他

  • 文字コードはasciiなので日本語コメントを挿入したりするとコンパイルに失敗する.

参考(今回は特に関係ないですが)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment