블로그 이미지

Rurony's Training Gym

Rurony의 트레이닝 도장! by Rurony


Aptana ExtJs + JQuery Code assist 방법

1. Aptana Studio 설치
1) Aptana Studio 설치 URL :  http://www.aptana.com/products/studio3/download
2) Eclipse Plug-in Version 3.0.5 설치
Available Software Sites URL : http://download.aptana.com/studio3/plugin/install

2. Aptana Studio JavaScript Library Support
http://wiki.appcelerator.org/display/tis/JavaScript+Library+Support#JavaScriptLibrarySupport-ExtJS%2FSencha%28
(지원되는 JavaScript Library의 정보 및 사용법을 제공하고 있으며, 그중 ExtJS, JQuery 사용법 정리)

3. ExtJS Code Assist 방법
1) ExtJS 3.3.0 sdocml 파일 다운로드 : https://raw.github.com/aptana/sencha.ruble/master/support/ext-js-3.3.0.sdocml

2) ExtJS를 사용할 프로젝트의 루트 경로에 위치 시킴
(ExtJS 4는 아직 공식 지원 안하는 것 같음... 방법 있으면 알려주세요 ^^;;)

4. JQuery Code Assist 방법

1) Eclipse의 Commands --> Bundle Development --> Update User Bundles --> JQuery를 선택한 후 OK 버튼을 클릭하여 설치

2) JQuery를 사용할 프로젝트 우클릭 Properties --> Project Build Path 에서 사용할 JQeury version 선택


4) Aptana Studio 3.0.5 version 이하일 경우
Top

Nexus : Maven 사내 저장소 활용

1. Nexus 설치
1) http://nexus.sonatype.org/ 에서 최신 버전 다운로드
2) Tomcat에 War 배포
3) 접속 확인 : 초기 관리자 (id : admin, pw : admin123)

2. Nexus Repository를 사용하기 위한 설정
1) setting.xml
~~
<mirrors>
    <mirror>
        <id>nexus</id>
        <mirrorOf>*</mirrorOf>
        <url>http://localhost:7000/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>
~~

3.  Proxy Repository 추가
1) Repositories 메뉴 --> Add --> Proxy Repository
 
2) Repository ID, Repository Name, Remote Storage Location  입력 후 Save 버튼 클릭으로 완료
 
3) Public Repositories에 등록한 Proxy Repository 추가 
 
4. 3rd party Repository 추가
1) Repositories 메뉴 --> 3rd party repository 선택 --> Artifact Upload 탭 선택 후 업로드
2) POM 파일이 있다면 GAV Definition의 From POM 선택 후 해당  POM 파일 선택 :
    - groupId, artifactId, version은 POM 파일의 내용으로 자동 결정
3) POM 파일이 없다면 GAV Definition의 GAV Parameters 선택 후 해당  Artifact 파일 선택 :
    - groupId, artifactId, version 직접 입력
4) Select Artifact(s) to Upload... 버튼 선택후 해당 파일 선택
5) Add Artifact 버튼을 클릭하여 추가
6) Upload Artifact(s) 버튼을 클릭하여 완료 
7) 등록된 Artifact의 dependency 정보를 사용하여 사용할 프로젝트에서 dependency를 추가 하여 사용.
 
5. 개발 라이브러리 배포
1) Users 메뉴 --> deployment 사용자 우클릭 후 PASSWORD 변경

2) setting.xml
~~
<servers>
    <!-- Nexus deploy user setting -->
    <server>
        <id>nexus-deployment</id>
        <username>deployment</username>
     <password>********</password>
    </server>
</servers>
~~
3) pom.xml : snapshot 또는 release 버전에 맞게 해당 Repository에 Deploy : deploy 페이즈 실행 시 배포
<distributionManagement>
<repository>
<id>nexus-deployment</id>
<name>Nexus Repository</name>
<url>http://localhost:7000/nexus/content/repositories/snapshots/</url>
</repository>
</distributionManagement>
 
Top

Mac Subversion+apache 사용하기

1. Subversion 설치
1) Mac에는 Subversion이 기본적으로 설치되어 있다.

2) CollabNet Subversion 설치 (Version Up 하거나 혹시 없다면?)

- http://www.open.collab.net/kr/downloads/community/ 에서 OS 버전에 맞는 pkg 파일을 다운로드 한다. (Readme 페이지를 보면 설치 및 삭제관련 내용이 잘 정리되어 있다.)

- 다운받은 pkg 파일을 실행하여 설치한다.

- 설치가 완료되면 PATH를 잡아준다.
export PATH=/opt/subversion/bin:$PATH

- Subversion 설치를 확인한다. 

2. Subversion 저장소 만들기
1) Root 저장소 만들기
mkdir ~/SVN_Repository
2) Root 저장소에 Project 저장소 만들기
svnadmin create  svntestproject


3. HTTP를 통한 접근 (Apache)
1) 시스템 환경설정 -> 공유 -> 웹 공유 를 선택하면 Apache Server가 구동 된다.
 
2)  /etc/apache2/extra 폴더 하위에 httpd-subversion.conf 를 생성 후 다음과 같이 작성한다.

LoadModule dav_svn_module     libexec/apache2/mod_dav_svn.so
LoadModule authz_svn_module   libexec/apache2/mod_authz_svn.so

<Location /svn>
   DAV svn
   #SVNPath /Users/rurony/SVN_Repository
   SVNParentPath /Users/rurony/SVN_Repository
   SVNListParentPath On

   # How to authenticate a user
   AuthType Basic
   AuthName "Subversion repository"
   AuthUserFile /private/etc/apache2/subversion.auth

   # Only authenticated users may access
   Require valid-user
</Location>
 3)  /etc/apache2/httpd.conf에 다음의 내용을 작성한다.
Include /private/etc/apache2/extra/httpd-subversion.conf
 4) 접근 사용자 생성
- sudo htpasswd -cm /etc/apache2/subversion.auth testuser 
  : 사용자 생성 및 authentication 생성
- sudo htpasswd -m /etc/apache2/subversion.auth anyone
  : 사용자 추가

5) Apache 재기동 후 http://localhost/svn 으로 접속 하면 인증화면을 볼 수 있다.

 6) ID/PW를 입력하면 생성된 Subversion 저장소의 리스트를 볼 수 있다.
 
※ 접근 에러가 발생하면 SVN Root 저장소의 소유권을 Apache 웹서버 권한 USER로 변경.
※ Mac OS X 용 CollabNet Subversion Edge는 아직 없는 것 같음? (설치방법 아시면 알려 주세요 ^^)
※ Subversion client로는 eclipse svn plugin (subclipse or subversive) 사용, Share Project 접근 에러 시 해당 프로젝트 퍼미션 변경.
Top

prev 1 2 3 4 5 6 ··· 8 next