메이븐 없이 자바 개발이 가능할까 싶을정도로 요즘은 빌드 툴 없이 개발하는것이 힘들다.


형태소 분석기를 찾다가 발견한 KOMORAN!!
오픈소스는 아니지만 개인적으로 사용하기에는 정말 좋은 것 같다.

각설하고. 사용하려면. 그냥 lib폴더에 넣을 수도 있긴 하겠지만.
IDE가 뭐라고 하니 그냥 메이븐 라이브러리로 만들어 보았다.



콘솔에서 요렇게 하고~

mvn install:install-file -Dfile=komoran-2.0.1-beta.jar -DgroupId=kr.co.shineware -DartifactId=komoran -Dversion=2.0.1b -Dpackaging=jar
mvn install:install-file -Dfile=shineware-common-2.0.jar -DgroupId=kr.co.shineware -DartifactId=shineware-common -Dversion=2.0 -Dpackaging=jar
mvn install:install-file -Dfile=shineware-ds-1.0.jar -DgroupId=kr.co.shineware -DartifactId=shineware-ds -Dversion=1.0 -Dpackaging=jar



메이븐에서는 요렇게 하고~

<dependency>
    <groupId>kr.co.shineware</groupId>
    <artifactId>komoran</artifactId>
    <version>2.0.1b</version>
</dependency>
<dependency>
    <groupId>kr.co.shineware</groupId>
    <artifactId>shineware-common</artifactId>
    <version>2.0</version>
</dependency>
<dependency>
    <groupId>kr.co.shineware</groupId>
    <artifactId>shineware-ds</artifactId>
    <version>1.0</version>
</dependency>



아래는 실제 콘솔작업 로그다.
 

Last login: Sat Jul 26 19:42:46 on console

oliviaui-Mac-Pro:~ olivia$ cd /Java/

oliviaui-Mac-Pro:Java olivia$ ls

Eclipse komoran-2.0.1-beta.jar

build shineware-common-2.0.jar

code shineware-common-lib-1.0.jar

doc shineware-ds-1.0.jar

komoran-1.12.jar tomcat

oliviaui-Mac-Pro:Java olivia$ mvn install:install-file -Dfile=komoran-2.0.1-beta.jar -DgroupId=kr.co.shineware -DartifactId=komoran -Dversion=2.0.1b -Dpackaging=jar

[INFO] Scanning for projects...

[INFO]

[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building Maven Stub Project (No POM) 1

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---

[INFO] Installing /Java/komoran-2.0.1-beta.jar to /Users/olivia/.m2/repository/kr/co/shineware/komoran/2.0.1b/komoran-2.0.1b.jar

[INFO] Installing /var/folders/6k/zpdghvh90td5r2l8w9d044xm0000gn/T/mvninstall961754423373137808.pom to /Users/olivia/.m2/repository/kr/co/shineware/komoran/2.0.1b/komoran-2.0.1b.pom

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.371 s

[INFO] Finished at: 2014-07-26T20:00:42+09:00

[INFO] Final Memory: 3M/81M

[INFO] ------------------------------------------------------------------------

oliviaui-Mac-Pro:Java olivia$ mvn install:install-file -Dfile=shineware-common-2.0.jar -DgroupId=kr.co.shineware -DartifactId=shineware-common -Dversion=2.0 -Dpackaging=jar

[INFO] Scanning for projects...

[INFO]

[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building Maven Stub Project (No POM) 1

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---

[INFO] Installing /Java/shineware-common-2.0.jar to /Users/olivia/.m2/repository/kr/co/shineware/shineware-common/2.0/shineware-common-2.0.jar

[INFO] Installing /var/folders/6k/zpdghvh90td5r2l8w9d044xm0000gn/T/mvninstall3600071237411685899.pom to /Users/olivia/.m2/repository/kr/co/shineware/shineware-common/2.0/shineware-common-2.0.pom

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.335 s

[INFO] Finished at: 2014-07-26T20:01:08+09:00

[INFO] Final Memory: 3M/81M

[INFO] ------------------------------------------------------------------------

oliviaui-Mac-Pro:Java olivia$ mvn install:install-file -Dfile=shineware-ds-1.0.jar -DgroupId=kr.co.shineware -DartifactId=shineware-ds -Dversion=1.0 -Dpackaging=jar

[INFO] Scanning for projects...

[INFO]

[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building Maven Stub Project (No POM) 1

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---

[INFO] Installing /Java/shineware-ds-1.0.jar to /Users/olivia/.m2/repository/kr/co/shineware/shineware-ds/1.0/shineware-ds-1.0.jar

[INFO] Installing /var/folders/6k/zpdghvh90td5r2l8w9d044xm0000gn/T/mvninstall6735353684411373727.pom to /Users/olivia/.m2/repository/kr/co/shineware/shineware-ds/1.0/shineware-ds-1.0.pom

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.333 s

[INFO] Finished at: 2014-07-26T20:01:16+09:00

[INFO] Final Memory: 3M/81M

[INFO] ------------------------------------------------------------------------

oliviaui-Mac-Pro:Java olivia$



이제 한번 형태소 분석을 시작 해 볼까?