Skip to content

Instantly share code, notes, and snippets.

@taichi
Last active August 29, 2015 14:17
Show Gist options
  • Save taichi/70f32978b48b984cab63 to your computer and use it in GitHub Desktop.
Save taichi/70f32978b48b984cab63 to your computer and use it in GitHub Desktop.

Atlassian Plugin SDKでOracleのJDBCドライバを手動インストールしなければならない件について

以下のバージョンで追加されたJDBCドライバへの依存によってmavenの実行が失敗する。

    <groupId>com.atlassian.amps</groupId>
    <artifactId>atlassian-amps-parent</artifactId>
    <version>5.0.16</version>

問題があるのは atlassian-amps-parent-5.0.16.pom の以下の部分である。

<dependency>
    <groupId>com.oracle</groupId>
    <artifactId>ojdbc6</artifactId>
    <version>${oracle.version}</version>
</dependency>

この変更が入ったのは以下のコミットであると思われるが、何故入ったのかは外部からは良く分からない。

これによって、Stashをソースコードからビルドする手順と同じ様にOracleのJDBCドライバを手動インストールしないとAtlassian SDKを適切に動かす事ができなくなってしまった。

Oracleと全く関係のないプラグインを作る際にもOracleのJDBCドライバを手動インストールしなければならないと言うのは、極めて苦痛であるので改善して欲しい。

例えば、atlassian-amps-parent-5.0.16.pom の当該部分を以下のように修正して欲しい。

<dependency>
    <groupId>com.oracle</groupId>
    <artifactId>ojdbc6</artifactId>
    <version>${oracle.version}</version>
    <scope>provided</scope>
</dependency>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment