1. ${user.home}/.m2/settings.xml 작성
- 사설 저장소 username, password 입력
<servers>
<server>
<id>releases</id>
<username>{username}</username>
<password>{password}</password>
</server>
<server>
<id>snapshots</id>
<username>{username}</username>
<password>{password}</password>
</server>
</servers>
2. archetype/pom.xml 작성
<distributionManagement>
<repository>
<id>releases</id>
<url>http://{사설 저장소 도메인}/nexus/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>http://{사설 저장소 도메인}/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
3. 빌드
- Run AS > Maven Build > Goals : deploy
4. 배포 확인
- 사설 저장소 archetype-catalog.xml 및 배포 확인