LoginSignup
0
2

More than 5 years have passed since last update.

mavenのdockerコンテナを使って、mavenプロジェクトを速攻ビルド

Posted at

MavenのDockerコンテナを利用して、mavenプロジェクトを速攻でビルドする

動機

Jenkins2でPlot-pluginをPipeline(Jenkinsfile)に対応させるため、

をビルドして、hpiファイルからプラグインインストールする必要があった。

mavenの環境が手元になかったので、dockerで探してみたらあった。

手順

docker run -it maven /bin/bash

を実行すれば、maven環境が入ったコンテナにログインできる。
あとは、git clone->mvn installでコンパイル可能

※バージョン指定したい場合は、イメージタグを指定すれば良さそう。

まとめ

Dockerコンテナ超便利

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2