[[FrontPage]] #contents 2008/03/10からのアクセス回数 &counter; * mavenプロジェクトの作成 [#r66f1b45] ** archetypeプラグインを使ったプロジェクトの生成 [#t9fed2d2] 最初にarchetypeプラグインを使ってjarライブラリをターゲットとする一般的なjavaプロジェクト を作成します。 #pre{{ $ mvn archetype:create -DgroupId=sample.itext.app -DartifactId=app -Dversion=0.0.1 }} ** 必要なライブラリの追加 [#m72da741] ここでは、iTextの例題を実行するため、itextのmavenリポジトリをpom.xmlに追加する必要があります。 必要なライブラリは、[[MVNRepository>http://mvnrepository.com/]]で検索します。 #ref(mvnrepository.jpg); "itext"を入力して、Searchボタンを押すと、 - com.lowagie >> itext と表示されるので、これをクリックします。 "iText in Action"のバージョンが1.4であり、POM Dependencyの項目 #pre{{ <dependency> <groupId>com.lowagie</groupId> <artifactId>itext</artifactId> <version>1.4</version> </dependency> }} をpom.xmlにコピーします。 残念ながらiTextAsian.jarは検索できませんでしたので、あとで別途install_fileをします。 最後にEclipseのプロジェクトにします。 #pre{{ mvn eclipse:eclipse -DdownloadSources=true }} ** コメント [#i0cf0193] この記事は、 #vote(おもしろかった,そうでもない,わかりずらい) 皆様のご意見、ご希望をお待ちしております。 #comment