branches , trunk , tag


1. branches 개발중, 개발 test 완료

2. trunk 개발 완료 된 소스 배포

3. tag 소스 배포 되고 아무이상 없다면 Release - version 1.0 


maven - jar file auto setting 

www.apache.org // maven.apache.org // search.maven.org


<modelVersion> - 현재 사용하고 있는 maven version (default) 및 위 항목들은 Unique한 값.


<properties> - maven :: 자주 쓰는 항목 변수화 하여 지정

 <project.build.sourceEncoding>UTF-8

 <spring-core-version>2.5.6</spring-core-version>

 <spring-core-version>3.1.1 Release</spring-core-version>


pom.xml > right mouse click > Run As > Run Configurations

(Base directory :: 현재 쓰고 있는 maven 프로젝트 default 설정) > Goal :: clean compile 설정(jar 자동 삭제 수정)

다음 mvn clean compile 할 때는, > Run Configurations 를 >Maven test 해주자.


 <spring-batch-version>2.1.1.RELEASE 

 :: spring core와 spring batch 는 다른 프레임웤


<repository> - jar를 만들기위한 그 jar 서버 url정보값 setting

<dependencies> - 해당 jar를 쓰기 위한 jar 고유 groupId, artifactId, version 정보(data)값 setting


systemPath 설정

<dependency>

<groupId>oracle</groupId>

<artifactId>ojdbc</artifactId>

<version>10.2.0.4</version>

<scope>system</scope>

<systemPath>${project.basedir}/lib/ojdbc-10.2.0.4.jar</systemPath>            

</dependency> 


proflies : 개발환경, 서비스환경 나눠서 환경 설정.

pom.xml > right mouse click > Run As > Run Configurations

> Profiles : local & release

<profiles>

        <profile>

            <id>local</id>

            <properties>

                <env>local</env> 

            </properties>            

        </profile>

        <profile>

            <id>release</id>

            <properties>

                <env>release</env>

            </properties>

        </profile>    

 </profiles>


Web HTTP Server - Apache, WebtoB, Nginx, iplanetweb

Was Server - jeus, weblogic, tomcat


Apache server 2.2

http://httpd.apache.org/

download - from a mirror

Apache HTTP Server 2.2.22 localhost:80/

Win32 Binary without crypto (no mod_ssl) (MSI Installer)


Apache HTTP 서버 설정

NameVirtualHost *:80

<VirtualHost *:80>


C:\dev\conf\extra\ httpd-vhosts.conf ::

NameVirtualHost *:80

<VirtualHost *:80>

 ServerName struts2.apache.org

 DocumentRoot D:\workspace\struts2-project\webapps //현재 workspace

 <Directory D:\workspace\struts2-project\webapps>

  Order Allow,Deny // 선 Allow, 후 Deny

  Deny from 127.0 192.168 10.2 // 후 127.0 으로 시작하는 ip, 192.168, 10.2 다 막음

  Allow from all // 먼저 다 오픈

 </Directory>

</VirtualHost>


C:\dev\conf\ httpd.conf ::

# Virtual hosts

Include conf/extra/httpd-vhosts.conf 주석 풀고 save


C:\dev\실습환경\hosts\ hosts file ::

127.0.0.1       localhost

127.0.0.1       struts2.apache.org


C:\dev\conf\ httpd.conf :: 모두 주석처리.

#<Directory />

#   Options FollowSymLinks

#   AllowOverride None

#   Order deny,allow

#   Deny from all

#</Directory>


C:\dev\conf\ httpd.conf

#Listen 12.34.56.78:80 - ip기반 사용시 주석 품

Listen 80


Test Configuration :: Apach error 있으면 찾아줌.



http://tomcat.apache.org/ 

Tomcat Connectors

Tomcat Connectors JK 1.2

Binary Releases

tomcat-connectors-1.2.35-windows-i386-httpd-2.2.x.zip

C:\dev\tomcat-connectors-1.2.35-windows-i386-httpd-2.2.x\ mod_jk.so 파일 카피 해서

C:\dev\modules\ mod_jk.so 이 경로로 카피함


C:\dev\conf\ httpd.conf :: 주석 풀고 jk_module 수정

LoadModule jk_module modules/mod_jk.so 


C:\dev\conf\ :: workers.properties 새로 파일 만듬

내용 ::

worker.list = struts2-project


worker.struts2-project.port=8009

worker.struts2-project.host=localhost

worker.struts2-project.type=ajp13


C:\dev\conf\ httpd.conf :: 밑의 문장 추가

JkWorkersFile conf/workers.properties


C:\dev\conf\extra\ httpd-vhosts.conf :: 밑의 문장 추가

JkMount /*.jsp struts2-project

JkMount /*.do struts2-project


'Server > Web Application' 카테고리의 다른 글

linux name  (0) 2012.07.31
vi 명령어, vi 단축키, vi(Visual Editer), vim  (0) 2012.07.27
CentOs 6.2 Tomcat 설치  (0) 2012.07.20
CentOs 6.2 Apache(httpd) 설치  (0) 2012.07.20
CentOs 6.2 JDK 설치  (0) 2012.07.20

+ Recent posts