- nexus 설치
- jenkins 설치
- Jenkins 관리 > 시스템 설정
- Maven
- Maven installations
- Name : MAVEN_HOME
- install automatically 체크
- Maven Project Configuration
- Global MAVEN_OPTS : -Xmx512m -XX:MaxPermSize=512m
- Maven installations
- Maven
- 새로운 Job
- Job 이름 : nexus
- Build a maven2/3 project 선택
- 소스 코드 관리
- subversion : https://221.150.127.106:8443/svn/hudson01/nexus : 아이디/ 비밀번호 설정
- Build
- Root POM : pom.xml
- Goals and options : clean package tomcat:undeploy tomcat:deploy
- Jenkins 관리 > 시스템 설정
- maven 설치
- setting.xml
<localRepository>C:/eGovFrameDev-2.0.1-FullVer/mavenrepository_2.0/repository</localRepository> <mirrors> <mirror> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>http://221.150.127.106:8082/nexus/content/groups/public</url> </mirror> </mirrors> <profiles> <profile> <id>nexus</id> <repositories> <repository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>nexus</activeProfile> </activeProfiles>
- pom.xml
<plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <version>1.1</version> <configuration> <url>http://221.150.127.106:8080/manager/html</url> <path>/nexus</path> <username>admin</username> <password></password> </configuration> </plugin> </plugins>
- setting.xml