[[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/]]で検索します。

"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
}}

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
SmartDoc