Galileo初期設定

  • [Java]-[Build Path]-[Classpath Variables] に M2_REPO を追加
  • [Java]-[Appearance]-[Type Filters] に java.awt.* を追加
  • [Java]-[Editor]-[Content Assist] で Complletion overwrites にチェック
    • 補完時に上書きする
  • [Java]-[Editor]-[typing] で Automatically insert at correct position の Semicolons にチェック
    • どこで「;」を押しても行末にいれてくれる
  • [Java]-[Editor]-[Save Action] で Perform the selected action on save の Organize imports にチェック
    • ファイルセーブ時に使ってない import を消す
  • [Java]-[Code Style]-[Organize Imports] の Number of static imports needed for .* を 1 にする
    • import static org.junit.Assert.* を展開しないように
  • [Java]-[Editor]-[Content Assist]-[Favorites] に org.junit.Assert と org.hamcrest.CoreMatchers を追加
    • assertThat とか notNullValue とかを保管出来るように
  • [General]-[Editors]-[Text Editors]-[Show line numbers]にチェック
    • 行番号を表示
  • Preferencesの[Java]-[Editor]-[Templates]から[New...]でテンプレートを追加
${assert:importStatic('org.junit.Assert.*','org.hamcrest.CoreMatchers.*')}
assertThat(${actual}, ${matcher})${cursor}
      • before
@${Before:newType(org.junit.Before)}
public void before() throws Exception {
	${cursor}
}
      • after
@${After:newType(org.junit.After)}
public void after() throws Exception {
	${cursor}
}
      • test(JUnit3)は使わないのでチェックを外す

galileoのプラグイン

3.5M6M7版限定

Subversive

Viplugin

?

インストール

# rpm -ivh http://yum.pgsqlrpms.org/reporpms/8.3/pgdg-centos-8.3-6.noarch.rpm
# vim /etc/yum.repos.d/pgdg-83-centos.repo
enabled=1 → enabled=0
# yum install --disablerepo=base --enablerepo=pgdg83 postgresql-server

postgreユーザのパスワード設定

# passwd postgres

*

# mkdir /mnt/drbd/pgsql
# chown postgres.postgres /mnt/drbd/pgsql
# su - postgres
$ cd /mnt/drbd/pgsql
$ mkdir data
$ initdb -D /mnt/drbd/pgsql/data -E UTF8
$ vim ~/.bash_profile
PGDATA=/mnt/drbd/pgsql/dataに変更
$ source ~/.bash_profile

crawlプラグインを使うときの注意

archetype-catalog.xmlに自分のarchetypeを追加してくれるプラグイン
バグなのか、そのまま実行すると~/.m2/repository/.m2/archetype-catalog.xmlにファイルを作ってしまう。これだarchetype:generateの候補出てこないので以下のように指定して実行する。

mvn archetype:crawl -Dcatalog=/home/username/.m2/archetype-catalog.xml