t2 弄ってみる

サイト

http://code.google.com/p/t-2/

mavenレポジトリは未だ無いっぽい

pom にローカルレポジトリ設定

/$PROJECT/lib
を ローカルのレポジトリにする

	<repositories>
		<repository>
			<id>local</id>
			<url>file:${basedir}/lib</url>
		</repository>
	</repositories>

で lib の下にディレクトリ切って

		<dependency>
			<groupId>org.t2framework</groupId>
			<artifactId>t2</artifactId>
			<version>0.3.1-ga</version>
		</dependency>
		<dependency>
			<groupId>org.t2framework</groupId>
			<artifactId>commons</artifactId>
			<version>0.2.1-ga</version>
		</dependency>
		<dependency>
			<groupId>org.t2framework</groupId>
			<artifactId>lucy</artifactId>
			<version>0.2.1-ga</version>
		</dependency>

とりあえず pom

続きは明日以降……

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.yoshiori</groupId>
	<artifactId>t2 test</artifactId>
	<packaging>war</packaging>
	<version>1.0-SNAPSHOT</version>
	<name>t2 test</name>
	<url>http://yoshiori.org</url>
	<repositories>
		<repository>
			<id>local</id>
			<url>file:${basedir}/lib</url>
		</repository>
	</repositories>
	<dependencies>
		<dependency>
			<groupId>org.t2framework</groupId>
			<artifactId>t2</artifactId>
			<version>0.3.1-ga</version>
		</dependency>
		<dependency>
			<groupId>org.t2framework</groupId>
			<artifactId>commons</artifactId>
			<version>0.2.1-ga</version>
		</dependency>
		<dependency>
			<groupId>org.t2framework</groupId>
			<artifactId>lucy</artifactId>
			<version>0.2.1-ga</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<version>1.4.3</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<build>
		<finalName>culdcept</finalName>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
					<encoding>UTF-8</encoding>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
				<configuration>
					<outputEncoding>utf-8</outputEncoding>
					<inputEncoding>utf-8</inputEncoding>
					<locales>ja</locales>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>maven-jetty-plugin</artifactId>
				<version>6.1.10</version>
			</plugin>
		</plugins>
	</build>
</project>