#!/bin/sh 
export JAVA_HOME=/usr/local/java 

/usr/local/apache-maven-3.5.0/bin/mvn -f /data/project/pom.xml clean install 

war=/data/project_src/target/project-3.6.0.war 
target=/data/project

/usr/local//tomcat/bin/shutdown.sh 
sleep 30 
rm -rf /data/project/WEB-INF 
unzip -o /data/project_src/target/project-3.6.0.war -d /data/project && /usr/local/tomcat/bin/startup.sh
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,
이클립스 : System.out.println("file.encoding = " + System.getProperty("file.encoding")); 
자바톰캣 : Dfile.encoding=UTF-8
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,
<dependency>
	<groupId>javax.servlet.jsp</groupId>
	<artifactId>jsp-api</artifactId>
	<scope>provided</scope>
	<version>2.1</version>
</dependency>

'java, jsp, spring, egov' 카테고리의 다른 글

war 자동 deploy  (0) 2019.11.08
톰캣에서 파일명 캐릭터셋이 안맞을 경우  (0) 2019.10.11
javac 사용법  (0) 2018.07.17
hudson 자동배포 구성  (0) 2017.10.20
spring 3.x 데이터베이스 연동  (0) 2016.04.15
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,
 javac -cp /data/WEB-INF/classes/ test.java
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,

1. hudson 공식홈페이지에서 .war 버전 다운로드후 톰캣의 webapp 추가

https://www.eclipse.org/hudson/download.php

2. 브라우저 http://127.0.0.1/hudson 접속 후 plugins 선택후 설치

3. hudson 설정

- 관리 > System Configurations > jdk, ant, maven

- 새작업 추가 > Subversion 설정

- Build Triggers > Poll SCM > * * * * *

- Post-build Actions > post build task > Log text : BUILD SUCCESS > Script : batch.sh

 

* batch.sh

#!/bin/sh
unzip -o /root/.hudson/jobs/project/workspace/target/project-3.6.0.war -d /data/project/

 

블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,

* MyBatis

출처 : http://syaku.tistory.com/267

 

'java, jsp, spring, egov' 카테고리의 다른 글

javac 사용법  (0) 2018.07.17
hudson 자동배포 구성  (0) 2017.10.20
spring 3.x 인터셉터(interceptor) 설정  (0) 2016.04.11
spring3.1.1에서 3.2.8로 버전업  (0) 2016.04.11
spring 3.x 타일즈(tiles2) 적용  (0) 2016.04.09
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,