Notice
Recent Posts
Recent Comments
Link
ยซ   2024/11   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Tags more
Archives
Today
Total
๊ด€๋ฆฌ ๋ฉ”๋‰ด

๐ŸŒณ

์ดํด๋ฆฝ์Šค - ์„œ๋ฒ„ /pom.xml ๋ณธ๋ฌธ

IT/#Dev

์ดํด๋ฆฝ์Šค - ์„œ๋ฒ„ /pom.xml

X_itron 2022. 9. 21. 17:03

#2022-09-21 ์„œ๋ฒ„์ด๋ฆ„ ๊ด€๋ จํ•˜์—ฌ ๋„ˆ๋ฌด ๊ฑธ๋ฆฌ์ ๊ฑฐ๋ ค์„œ ์ฐพ์•„๋ณด์•˜๋‹ค.

 

๋‚˜๋Š” Path๋ฅผ ๋‹ค๋ฅด๊ฒŒํ•ด์„œ ํ•˜๋‚˜์˜ ์„œ๋ฒ„๋กœ ๋‘๊ฐœ์˜ ํ”„๋กœ์ ํŠธ๋ฅผ ๋„์–ด์„œ ์‚ฌ์šฉํ•˜๋Š”๋ฐ(์•„๋ž˜ ์ฐธ๊ณ )

>> http://localhost:8080/ํ”„๋กœ์ ํŠธA

>> http://localhost:8080/ํ”„๋กœ์ ํŠธB

 

์–ด๋Š์ˆœ๊ฐ„๋ถ€ํ„ฐ ์„œ๋ฒ„์— ๋„์šฐ๋Š” ์ด๋ฆ„์ด ์•„๋ž˜์ฒ˜๋Ÿผ ํ”„๋กœ์ ํŠธ ์ด๋ฆ„A๊ฐ€ ๋™์ผํ•˜๊ฒŒ ๊ฐ๊ฐ ์„œ๋ฒ„์— ๋œจ๋Š”์ ์„ ๋ฐœ๊ฒฌํ–ˆ๋‹ค.

์‚ฌ์‹ค ๊ธฐ๋Šฅ์ƒ์œผ๋กœ๋Š” ๋ฌธ์ œ ์—†๊ณ , ๋‹ค ์ž˜๋˜์ง€๋งŒ ๊ทธ๋ƒฅ ๊ฑฐ์Šฌ๋ ค์„œ... ์ฐพ์•„๋ณด์•˜๋‹ค.


ํšŒ์‚ฌ ๋ณด์•ˆ์ƒ ์–ด๋–ค ํ”„๋กœ์ ํŠธ์ธ์ง€ ๋…ธ์ถœ๋˜๋ฉด ์•ˆ๋˜์„œ ๋ธ”๋Ÿฌ ์ฒ˜๋ฆฌ,,ใ…œใ…œ

 

์•„๋ž˜๊ฐ™์ด ์„œ๋ฒ„๋ช…์€ ํ”„๋กœ์ ํŠธ ๋ช…์œผ๋กœ ์ž˜ ๋‚˜์˜ค๋Š”๋ฐ, ๊ด„ํ˜ธ ์•ˆ์— ๋‚˜์˜ค๋Š” ์ด๋ฆ„์ด ๋™์ผํ•˜๊ฒŒ ๋‚˜์˜ฌ๋•Œ...

์ •๋ง ๋ณ„๊ฑฐ์•„๋‹ˆ์˜€๋‹ค ํํ..

์ž์„ธํ•œ๊ฑด pom.xml๋งŒ ๊ฒ€์ƒ‰ํ•ด๋„ ์ž์„ธํžˆ ๋‚˜์˜ค๋‹ˆ, ์—ด์‹ฌํžˆ ๊ตฌ๊ธ€๋ง์„ ํ•ด๋ด…์‹œ๋‹ค..

#์š”์ฆ˜ ๊ตฌ๊ธ€๋ง์„ ์ž˜ํ•˜๋Š”๊ฒƒ๋„ ๋„ˆ๋ฌด ๋ถ€๋Ÿฝ๋Œœ

 

 

์šฐ๋ฆฌํšŒ์‚ฌ ํŠน์ง•์ด ๊ฑฐํฌ ๋ชจ๋“ˆ์‹์œผ๋กœ ์žฌ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ๋“ค์ด ๋งŽ์•„์„œ ..

ํ”„๋กœ์ ํŠธA์˜ pom.xml ํŒŒ์ผ๊ณผ ํ”„๋กœ์ ํŠธB์˜ pom.xml ํŒŒ์ผ๋“ค์— ๊ฐ๊ฐ name tag๊ฐ€ ์žˆ๋Š”๋ฐ, ํ•ด๋‹น ๋ถ€๋ถ„์„ ์ˆ˜์ •์„ ์•ˆํ•ด์„œ ์žฌ์‚ฌ์šฉ์„ ํ–ˆ๋”๋‹ˆ, ์„œ๋ฒ„์ด๋ฆ„์ชฝ์˜ ๊ด„ํ˜ธ๊ฐ€ ๋˜‘๊ฐ™์€ ํ”„๋กœ์ ํŠธ ์ด๋ฆ„์ด ๋‚˜์˜ค๋Š”๊ฒƒ..!์ด์˜€๋‹ค!!!

 

๋ณดํ†ต pom.xml ํŒŒ์ผ๋ช…์€ ํ”„๋กœ์ ํŠธ๋ช…/pom.xml์ด๋‹ค.

<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>projectname</groupId>
	<artifactId>projectname</artifactId>
	<packaging>war</packaging>
	<version>1.0.0</version>
	<name>projectname</name>
	<url>http://www.egovframe.go.kr</url>

name ํƒœ๊ทธ๋ฅผ ๋”ฐ๋ผ๊ฐ„๋‹จ๋‹ค..!

๊ทธ๋Ÿฌ๋‹ˆ๊น name ํƒœ๊ทธ๋ฅผ ๋ฐ”๊ฟ”์ฃผ๋ฉด๋˜๋Š” ์•„์ฃผ์•„์ฃผ ๊ฐ„๋‹จํ•œ๊ฑฐ์˜€๋‹ค๊ณ ํ•œ๋‹ค..

 

 

#๊ทผ๋ฐ, pom.xml ์ž˜๋ชป ์ˆ˜์ •ํ•˜๋ฉด ์ „์ž์ •๋ถ€ํ”„๋ ˆ์ž„์›Œํฌ ๋•œ์‹œ ... ๋” ๋จธ๋ฆฌ๊ฐ€ ์•„ํŒŒ์งˆ์ˆ˜์žˆ์œผ๋‹ˆ, ๊ท€์ฐฎ์•„์„œ ์ˆ˜์ •ํ•˜์ง€์•Š๋Š”๋‹ค.

Comments