쉽게 따라할 수 있는 예제입니다.
sample : "Hello Glue!!!"
(download sample.zip)
sample-parent : maven project 입니다.
(download sample-parent.zip)
sample-hello : jar
sample-hello-jdbc : jar
sample-hello-mybatis : jar
sample-hello-hibernate : jar
sample-hello-ehcache : war
sample-hello-jcs : war
sample-hello-msg-xml : jar
sample-hello-msg-db : jar
sample-hello-logback : jar
sample-hello-log4j : jar
sample-hello-exception : jar
sample-hello-springmvc : war
sample-hello-gnt : war
sample-hello-ucube3 : jar
sample-hello-ucube4 : jar
download maven
unzip maven
local repository 구성 : 아래 2가지중 선택.
cd C:\apache-maven-3.2.2\bin set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_45 set M2_HOME=C:\apache-maven-3.2.2 set M2=%M2_HOME%\bin mvn install:install-file -Dfile=C:\eclipse\users\GlueSDK\lib\gluelib\license-api-1.1.0.jar -DgroupId=com.poscoict.license -DartifactId=license-api -Dversion=1.1.0 -Dpackaging=jar mvn install:install-file -Dfile=C:\eclipse\users\GlueSDK\lib\gluelib\glue-schema-4.2.3-RELEASE.jar -DgroupId=com.poscoict -DartifactId=glue-schema -Dversion=4.2.3-RELEASE -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\eclipse\users\GlueSDK\lib\gluelib\glue-core-4.2.3-RELEASE.jar -DgroupId=com.poscoict -DartifactId=glue-core -Dversion=4.2.3-RELEASE -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\eclipse\users\GlueSDK\lib\gluelib\glue-mybatis-4.2.3-RELEASE.jar -DgroupId=com.poscoict -DartifactId=glue-mybatis -Dversion=4.2.3-RELEASE -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\eclipse\users\GlueSDK\lib\gluelib\glue-hibernate-4.2.3-RELEASE.jar -DgroupId=com.poscoict -DartifactId=glue-hibernate -Dversion=4.2.3-RELEASE -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\eclipse\users\GlueSDK\lib\gluelib\glue-schedule-4.2.3-RELEASE.jar -DgroupId=com.poscoict -DartifactId=glue-schedule -Dversion=4.2.3-RELEASE -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\eclipse\users\GlueSDK\lib\gluelib\glue-ws-4.2.3-RELEASE.jar -DgroupId=com.poscoict -DartifactId=glue-ws -Dversion=4.2.3-RELEASE -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\eclipse\users\GlueSDK\lib\gluelib\glue-tester-4.2.3-RELEASE.jar -DgroupId=com.poscoict -DartifactId=glue-tester -Dversion=4.2.3-RELEASE -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\eclipse\users\GlueSDK\lib\gluelib\glue-mongodb-4.2.3-RELEASE.jar -DgroupId=com.poscoict -DartifactId=glue-mongodb -Dversion=4.2.3-RELEASE -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\eclipse\users\GlueSDK\lib\gluelib\glue-redis-4.2.3-RELEASE.jar -DgroupId=com.poscoict -DartifactId=glue-redis -Dversion=4.2.3-RELEASE -Dpackaging=jar -DgeneratePom=true
<project> <repositories> <repository> <id>repo</id> <name>repo</name> <url>file://C:/eclipse/users/GlueSDK/repo</url> </repository> </repositories> </project>
url(C:/eclipse/users/GlueSDK/repo/)로 지정된 위치에는 다음과 같은 파일이 존재합니다.
C:/eclipse/users/GlueSDK/repo/com/poscoict/glue-core/4.2.3-RELEASE/glue-core-4.2.3-RELEASE.jar C:/eclipse/users/GlueSDK/repo/com/poscoict/glue-hibernate/4.2.3-RELEASE/glue-hibernate-4.2.3-RELEASE.jar C:/eclipse/users/GlueSDK/repo/com/poscoict/glue-mongodb/4.2.3-RELEASE/glue-mongodb-4.2.3-RELEASE.jar C:/eclipse/users/GlueSDK/repo/com/poscoict/glue-mybatis/4.2.3-RELEASE/glue-mybatis-4.2.3-RELEASE.jar C:/eclipse/users/GlueSDK/repo/com/poscoict/glue-redis/4.2.3-RELEASE/glue-redis-4.2.3-RELEASE.jar C:/eclipse/users/GlueSDK/repo/com/poscoict/glue-schedule/4.2.3-RELEASE/glue-schedule-4.2.3-RELEASE.jar C:/eclipse/users/GlueSDK/repo/com/poscoict/glue-schema/4.2.3-RELEASE/glue-schema-4.2.3-RELEASE.jar C:/eclipse/users/GlueSDK/repo/com/poscoict/glue-tester/4.2.3-RELEASE/glue-tester-4.2.3-RELEASE.jar C:/eclipse/users/GlueSDK/repo/com/poscoict/glue-ucube/4.2.3-RELEASE/glue-ucube-4.2.3-RELEASE.jar C:/eclipse/users/GlueSDK/repo/com/poscoict/glue-ws/4.2.3-RELEASE/glue-ws-4.2.3-RELEASE.jar C:/eclipse/users/GlueSDK/repo/com/poscoict/glue-xplatform/4.2.3-RELEASE/glue-xplatform-4.2.3-RELEASE.jar C:/eclipse/users/GlueSDK/repo/com/poscoict/license/license-api/1.1.0/license-api-1.1.0.jar