<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/silentsquare/">
    <title>silentsquare @ ウィキ</title>
    <link>http://w.atwiki.jp/silentsquare/</link>
    <atom:link href="https://w.atwiki.jp/silentsquare/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>silentsquare @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2012-01-08T03:34:30+09:00</dc:date>
    <utime>1325961270</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/silentsquare/pages/13.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/silentsquare/pages/15.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/silentsquare/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/silentsquare/pages/14.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/silentsquare/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/silentsquare/pages/3.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/silentsquare/pages/4.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/silentsquare/pages/5.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/silentsquare/pages/6.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/silentsquare/pages/7.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/silentsquare/pages/13.html">
    <title>maven tips</title>
    <link>https://w.atwiki.jp/silentsquare/pages/13.html</link>
    <description>
      *maven tips

**groovy-eclipse, m2Eclipseを統合して利用する

***必要なEclipseプラグイン
+groovy eclipseが提供しているもの(アップデートサイト(eclipse:3.7) [http://dist.springsource.org/release/GRECLIPSE/e3.7/]):
++groovy-eclipse 
++groovy-eclipse m2eclipse configurator(&amp;bold(){こいつが重要！}
+sonatype提供のもの(アップデートサイト [http://download.eclipse.org/technology/m2e/releases]):
++m2eclipse

***手順
+新しくmaven プロジェクトを作成
+pom.xmlを後述のように作成
+-maven-compiler-pluginの設定が本質。
+-target, sourceは、Javaのソースも同一のプロジェクトで作成する場合だけでよい。
+/src/main, /src/testの下にそれぞれgroovyという名前でディレクトリを追加
+/src/main/javaの下に何かしらのjavaクラスを作成
+-groovy-eclipse-compilerのバグらしい。ここで利用しているバージョン(2.6.0-01)ではまだfixされていない
+-ダミーのjavaクラスを作成せずに.groovyファイルのみのプロジェクトを作成する方法は、[[groovy-elcipse-compilerのサイト&gt;http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven]]に他にも掲載されている
+[update project configuration]からプロジェクトを最新化する。

以上でm2eのプロジェクトにgroovy-eclipse natureが付与された状態になる。

***pom.xml
#highlight(xml,linenumber){
&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
	xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
	&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
	&lt;groupId&gt;com.example&lt;/groupId&gt;
	&lt;artifactId&gt;mvn-groovy&lt;/artifactId&gt;
	&lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;

	&lt;build&gt;
		&lt;plugins&gt;
			&lt;plugin&gt;
				&lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
				&lt;version&gt;2.3.2&lt;/version&gt;
				&lt;configuration&gt;
					&lt;target&gt;1.6&lt;/target&gt;
					&lt;source&gt;1.6&lt;/source&gt;
					&lt;compilerId&gt;groovy-eclipse-compiler&lt;/compilerId&gt;
					&lt;verbose&gt;true&lt;/verbose&gt;
				&lt;/configuration&gt;
				&lt;dependencies&gt;
					&lt;dependency&gt;
						&lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
						&lt;artifactId&gt;groovy-eclipse-compiler&lt;/artifactId&gt;
						&lt;version&gt;2.6.0-01&lt;/version&gt;
					&lt;/dependency&gt;
				&lt;/dependencies&gt;
			&lt;/plugin&gt;
			&lt;plugin&gt;
				&lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
				&lt;artifactId&gt;groovy-eclipse-compiler&lt;/artifactId&gt;
				&lt;version&gt;2.6.0-01&lt;/version&gt;
				&lt;extensions&gt;true&lt;/extensions&gt;
			&lt;/plugin&gt;
		&lt;/plugins&gt;
	&lt;/build&gt;

	&lt;dependencies&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
			&lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
			&lt;version&gt;1.8.4&lt;/version&gt;
		&lt;/dependency&gt;
	&lt;/dependencies&gt;

	&lt;repositories&gt;
		&lt;repository&gt;
			&lt;id&gt;springsource&lt;/id&gt;
			&lt;releases&gt;
				&lt;enabled&gt;true&lt;/enabled&gt;
			&lt;/releases&gt;
			&lt;snapshots&gt;
				&lt;enabled&gt;true&lt;/enabled&gt;
			&lt;/snapshots&gt;
			&lt;url&gt;https://nexus.codehaus.org/content/groups/snapshots-group/&lt;/url&gt;
		&lt;/repository&gt;
	&lt;/repositories&gt;

	&lt;pluginRepositories&gt;
		&lt;pluginRepository&gt;
			&lt;id&gt;springsource&lt;/id&gt;
			&lt;url&gt;https://nexus.codehaus.org/content/groups/snapshots-group/&lt;/url&gt;
		&lt;/pluginRepository&gt;
	&lt;/pluginRepositories&gt;
	
&lt;/project&gt;
}

**maven plugin開発でよく利用する組み込みcomponent
AbstractMojoやAbstractReportをExtendsしたクラスであれば、フィールド変数のjavadocに@componentを付与することで下記のインスタンスが取得できる.
#highlight(java)
{
/**
 * @component
 */
private ArtifactFactory artifactFactory;
}
***org.apache.maven.artifact.factory.ArtifactFactory
Artifactインスタンスのファクトリクラス.
***org.apache.maven.artifact.resolver.ArtifactResolver
ArtifactResolver#resolveを利用すると、引数で渡したartifactをローカルレポジトリに落っことしてくることができる.
mavenがデフォルトのライフサイクルの中で、ローカルにないjarを外から持ってくる時に使っているクラス.
***org.codehaus.plexus.archiver.manager.ArchiverManager
getArchiverとgetUnArchiverでそれぞれ圧縮、解凍機能を提供してくれる.    </description>
    <dc:date>2012-01-08T03:34:30+09:00</dc:date>
    <utime>1325961270</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/silentsquare/pages/15.html">
    <title>Eclipse tips</title>
    <link>https://w.atwiki.jp/silentsquare/pages/15.html</link>
    <description>
      *Eclipse tips

**egitでssh経由でリモートレポジトリへpush
***登場人物
下記を想定(全部macなのはたまたま試した環境がそうだっただけ):
-ローカル1(いわゆるアリス)
--Mac OS X 10.5
-ローカル2(いわゆるボブ)
--Mac OS X 10.7
-リモートサーバ
--Mac OS X 10.6
***シナリオ
+環境設定
+アリスがローカルでプロジェクト作成gitレポジトリにコミット
+リモートにgitレポジトリ作成
+アリスがリモートのgitレポジトリにpush
+ボブがリモートのgitレポジトリからローカルへpull
***手順
+環境設定
++アリス、ボブはリモートに公開鍵によるssh接続が出来るようにしておく
++アリス、ボブのEclipseにはegitをインストールしておく
+アリスがローカルでプロジェクト作成gitレポジトリにコミット
++[Share Project]-&gt;[Git]で&quot;Configure Git Repository&quot;ダイアログを表示する
++ここでは、新規にローカルレポジトリを作成するため、[Create]をクリック
++-&quot;Parent directory&quot;はデフォルトのまま((ユーザホーム)/gitのはず)でよい
++-&quot;Name&quot;欄に適当なレポジトリ名(ここでは&quot;sandbox&quot;とする)を入力して[Finish]クリックで&quot;Configure Git Repository&quot;ダイアログへ戻る
++[Finish]をクリックするとローカルレポジトリが作成される
++プロジェクトを右クリックし[Team]-&gt;[Commit]を選択
++-適当なコミットコメントを入力し[Commit]をクリックするとローカルレポジトリへコミットされる
+リモートにgitレポジトリ作成
++リモートマシンにssh等でログインする
++gitレポジトリ用のディレクトリを作成(ここでは/var/git/sandoboxとする)
++-$mkdir -p /var/git/sandbox
++gitレポジトリの初期化
++-$ cd /var/git/sanbox
++-$ git --bare init
+アリスがリモートのgitレポジトリにpush
++プロジェクトを右クリック-&gt;[Team]-&gt;[Remote]-&gt;[Push]で&quot;Push to Another Repository]ダイアログが表示される
++-&quot;Host&quot;にリモートマシンのホスト名(またはIPアドレス)を入力
++-&quot;Repository Path&quot;にリモート側のgitレポジトリパス(絶対パス)を入力(ここでは/var/git/sandbox)
++-&quot;Protocol&quot;にsshを選択
++-User, Passwordにアリスのsshユーザ名、パスワードを入力
++[Next]をクリックすると&quot;Push Ref Specification&quot;のダイアログが表示される
++-&quot;Soureces ref&quot;で&quot;master[branch]を選択し、[Add Spec]をクリックし、[OK]をクリック
+ボブがリモートのgitレポジトリからローカルへpull
++[Window]-&gt;[Show View]-&gt;[Others]-&gt;[Git Repositories]を選択
++[Clone a git repository and the clone to this view](青い矢印のアイコン)をクリック
++pushしたときと同様に接続先のgitレポジトリを設定するダイアログが表示されるので、同様に内容を入力し[Next]をクリック
++-アリスの場合と異なるのはssh接続情報がボブのものになるところだけ
++&quot;Branch Selection&quot;でどのブランチをcloneとするのか選択すし(ここではmasterでよい)、[Finish]をクリック
++[FIle]-&gt;[Impor]-&gt;[Projcts from Git]を選択し[Next]をクリック
++cloneを作成したレポジトリ(ここではsandbox)を選択し[Finish]をクリック
***ハマったところ
-EclipseでのSSH2接続の確立
--egitでsshプロトコルを利用するには、基本的に公開鍵認証を設定する必要あり.
--sshの設定はegitではなく、eclipseそのものが持っているので注意！
---[Prefrences]-&gt;[General]-&gt;[Network Connections]-&gt;[SSH2]で設定する
***参考URL 
-[http://blog.champierre.com/670]
-[http://www.fraction.jp/log/archives/2008/05/20/Share_git_repository_on_Mac_OS_X]    </description>
    <dc:date>2012-01-02T20:39:14+09:00</dc:date>
    <utime>1325504354</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/silentsquare/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/silentsquare/pages/2.html</link>
    <description>
      **メニュー
-[[トップページ]]
//-[[プラグイン紹介&gt;プラグイン]]
//-[[まとめサイト作成支援ツール]]
//-[[メニュー]]
//-[[メニュー2]]
-Javaとか
--[[maven tips]]
--[[Eclipse tips]]
-[[linux tips]]
----

**リンク
-[[@wiki&gt;&gt;http://atwiki.jp]]
-[[@wikiご利用ガイド&gt;&gt;http://atwiki.jp/guide/]]

**他のサービス
-[[無料ホームページ作成&gt;&gt;http://atpages.jp]]
-[[無料ブログ作成&gt;&gt;http://atword.jp]]
-[[2ch型掲示板レンタル&gt;&gt;http://atchs.jp]]
-[[無料掲示板レンタル&gt;&gt;http://atbbs.jp]]
-[[お絵かきレンタル&gt;&gt;http://atpaint.jp/]]
-[[無料ソーシャルプロフ&gt;&gt;http://sns.atfb.jp/]]

// リンクを張るには &quot;[&quot; 2つで文字列を括ります。
// &quot;&gt;&quot; の左側に文字、右側にURLを記述するとリンクになります


//**更新履歴
//#recent(20)

&amp;link_editmenu(text=ここを編集)    </description>
    <dc:date>2012-01-01T14:29:44+09:00</dc:date>
    <utime>1325395784</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/silentsquare/pages/14.html">
    <title>linux tips</title>
    <link>https://w.atwiki.jp/silentsquare/pages/14.html</link>
    <description>
      *Linux/UNIX tips

**SSH RSA公開鍵認証設定
よく忘れるのでメモ。

+ローカルで下記を実行
+-local$ ssh-keygen -t rsa -f .ssh/(鍵名)
+-local&gt; (パスフレーズを入力&amp;再入力)
+鍵名, 鍵名.pubの2つのファイルが.ssh以下に作成される
+-.pubのものが公開鍵
+接続先ホストに(鍵名).pubファイルを一時的にコピー(ホームディレクトリに作成したとする)
+接続先で下記コマンドを実行
+-remote$ cat (鍵名).pub &gt;&gt; .ssh/authorized_keys
+ローカルからsshの-iオプションで接続確認
+-local$ ssh -i ~/.ssh/(鍵名) (ユーザ)@(ホスト)
+-local&gt; (パスフレーズを入力)     </description>
    <dc:date>2012-01-01T13:35:25+09:00</dc:date>
    <utime>1325392525</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/silentsquare/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/silentsquare/pages/1.html</link>
    <description>
      **@wikiへようこそ
-ウィキはみんなで気軽にホームページ編集できるツールです。
-このページは自由に編集することができます。
-メールで送られてきたパスワードを用いてログインすることで、各種変更（サイト名、トップページ、メンバー管理、サイドページ、デザイン、ページ管理、等）することができます

**まずはこちらをご覧ください。
-[[@wikiの基本操作&gt;http://atwiki.jp/guide/category2.html]]
-[[用途別のオススメ機能紹介&gt;http://atwiki.jp/guide/category22.html]]
-[[@wikiの設定/管理&gt;http://atwiki.jp/guide/category6.html]]

**分からないことは？
-[[@wiki ご利用ガイド&gt;http://atwiki.jp/guide/]]
-[[よくある質問&gt;http://atwiki.jp/guide/category1.html]]
-[[無料で会員登録できるSNS内の@wiki助け合いコミュニティ&gt;http://sns.atfb.jp/view_community2.php?no=112]]
-[[@wiki更新情報&gt;http://www1.atwiki.jp/guide/pages/264.html]]
-[[@wikiへのお問合せフォーム&gt;http://atwiki.jp/helpdesk]]
等をご活用ください

**@wiki助け合いコミュニティの掲示板スレッド一覧
#atfb_bbs_list(112)

**その他お勧めサービスについて
-[[大容量１Ｇ、PHP/CGI、MySQL、FTPが使える無料ホームページは@PAGES&gt;&gt;http://atpages.jp/]]
-[[無料ブログ作成は@WORDをご利用ください&gt;&gt;http://atword.jp/]]
-[[2ch型の無料掲示板は@chsをご利用ください&gt;&gt;http://atchs.jp/]]
-[[フォーラム型の無料掲示板は@bbをご利用ください&gt;&gt;http://atbb.jp/]]
-[[お絵かき掲示板は@paintをご利用ください&gt;&gt;http://atpaint.jp/]]
-[[その他の無料掲示板は@bbsをご利用ください&gt;&gt;http://atbbs.jp/]]
-[[無料ソーシャルプロフィールサービス @flabo(アットフラボ)&gt;&gt;http://sns.atfb.jp]]

**おすすめ機能
-[[気になるニュースをチェック&gt;http://atwiki.jp/guide/17_174_ja.html]]
-[[関連するブログ一覧を表示&gt;http://atwiki.jp/guide/17_161_ja.html]]

**その他にもいろいろな機能満載！！
-[[@wikiプラグイン&gt;http://atwiki.jp/guide/category17.html]]
-[[@wiki便利ツール&gt;http://atwiki.jp/guide/category32.html]]
-[[@wiki構文&gt;http://atwiki.jp/guide/category16.html]]
-[[@wikiプラグイン一覧&gt;http://www1.atwiki.jp/guide/pages/264.html]]
-[[まとめサイト作成支援ツール&gt;http://atwiki.jp/matome/]]

**バグ・不具合を見つけたら？ 要望がある場合は？
お手数ですが、メールでお問い合わせください。
    </description>
    <dc:date>2012-01-01T05:24:10+09:00</dc:date>
    <utime>1325363050</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/silentsquare/pages/3.html">
    <title>右メニュー</title>
    <link>https://w.atwiki.jp/silentsquare/pages/3.html</link>
    <description>
      **更新履歴
#recent(20)


&amp;link_editmenu2(text=ここを編集)
    </description>
    <dc:date>2012-01-01T05:24:10+09:00</dc:date>
    <utime>1325363050</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/silentsquare/pages/4.html">
    <title>プラグイン/ニュース</title>
    <link>https://w.atwiki.jp/silentsquare/pages/4.html</link>
    <description>
      * ニュース
@wikiのwikiモードでは
 #news(興味のある単語)
と入力することで、あるキーワードに関連するニュース一覧を表示することができます
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_174_ja.html


-----


たとえば、#news(wiki)と入力すると以下のように表示されます。


#news(wiki)
    </description>
    <dc:date>2012-01-01T05:24:10+09:00</dc:date>
    <utime>1325363050</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/silentsquare/pages/5.html">
    <title>まとめサイト作成支援ツール</title>
    <link>https://w.atwiki.jp/silentsquare/pages/5.html</link>
    <description>
      * まとめサイト作成支援ツールについて
@wikiには[[まとめサイト作成を支援するツール&gt;&gt;http://atwiki.jp/matome/]]があります。
また、
 #matome_list
と入力することで、注目の掲示板が一覧表示されます。

利用例）#matome_listと入力すると下記のように表示されます
#matome_list
    </description>
    <dc:date>2012-01-01T05:24:10+09:00</dc:date>
    <utime>1325363050</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/silentsquare/pages/6.html">
    <title>プラグイン/編集履歴</title>
    <link>https://w.atwiki.jp/silentsquare/pages/6.html</link>
    <description>
      * 更新履歴
@wikiのwikiモードでは
 #recent(数字)
と入力することで、wikiのページ更新履歴を表示することができます。
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_117_ja.html


-----


たとえば、#recent(20)と入力すると以下のように表示されます。


#recent(20)
    </description>
    <dc:date>2012-01-01T05:24:10+09:00</dc:date>
    <utime>1325363050</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/silentsquare/pages/7.html">
    <title>プラグイン/アーカイブ</title>
    <link>https://w.atwiki.jp/silentsquare/pages/7.html</link>
    <description>
      * アーカイブ
@wikiのwikiモードでは
 #archive_log()
と入力することで、特定のウェブページを保存しておくことができます。
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/25_171_ja.html


-----


たとえば、#archive_log()と入力すると以下のように表示されます。
保存したいURLとサイト名を入力して&quot;アーカイブログ&quot;をクリックしてみよう


#archive_log()
    </description>
    <dc:date>2012-01-01T05:24:10+09:00</dc:date>
    <utime>1325363050</utime>
  </item>
  </rdf:RDF>
