Skip to content

Instantly share code, notes, and snippets.

@kurohuku
Created March 10, 2013 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurohuku/5127503 to your computer and use it in GitHub Desktop.
Save kurohuku/5127503 to your computer and use it in GitHub Desktop.

Mavenのローカルレポジトリにjarファイルを追加する

JavaFXのjarファイルをローカルのMavenレポジトリに追加してみます。

mvn install:install-file -DgroupId=local.oracle -DartifactId=javafxrt -Dversion=x.y.z -Dpackaging=jar -Dfile=/usr/lib/jvm/jdk1.7.0/jre/lib/jfxrt.jar

leiningenのdependenciesに以下を追加すればjfxrt.jarを使えます。

[local.oracle/javafxrt "x.y.z"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment