ABOUT ME

-

  • MMS & EDUC 빌드
    OpenSource 2019. 3. 19. 08:54

    MMS & EDUC 빌드 방법입니다.


    먼저 둘다 자바기반이기 때문에 이클립스를 설치합니다.

    >>JDK 설치<<

    >>이클립스 설치<<


    그리고 MMS는 메이븐이 필요합니다.

    >>MAVEN 설치 방법<<


    MMS 빌드


    MMS를 먼저 다운로드 후 빌드 해야 합니다.

    >>MMS GitHub<<


    1. File -> Import -> Maven -> Exsting Maven Projects -> 다운로드한 MMS 프로젝트를 선택합니다.

    2. Project -> Clean

    3. 추가된 MMS 프로젝트 우 클릭 -> Maven -> Update Project 

    4. MMS 프로젝트 우 클릭 -> Run As -> Mave clean

    5. MMS 프로젝트 우 클릭 -> Run As -> Mave install


    아래와 같은 에러가 발생합니다.

    [ERROR] Failed to execute goal on project MC_MMS: Could not resolve dependencies for project kr.ac.kaist.MMSServer:MC_MMS:jar:0.8.0-SNAPSHOT: Could not find artifact net.etri:net.etri.pkilib:jar:1.4 in central (https://repo.maven.apache.org/maven2) -> [Help 1]

    [ERROR] 

    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

    [ERROR] 

    [ERROR] For more information about the errors and possible solutions, please read the following articles:

    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


    MC_MMS -> MMSServer -> pom.xml을 수정합니다.

    <dependency>

    <groupId>net.etri</groupId>

    <artifactId>net.etri.pkilib</artifactId>

    </dependency>

    위 부분을 주석 처리합니다.


    그리고 MMSServer Project만 따로 Import 합니다.

    File -> Import -> General -> Existing Projects into Workspace -> MMS에 포함된 MMSServer 프로젝트를 선택합니다.

    MMSService로 프로젝트가 추가됩니다.

    MMSService를 우 클릭 -> Propertiese -> java Build Path -> Libraries -> Add External JARs -> MMSServer/External Jars에 있는 jar을 다 넣어줍니다. (원래 추가되어있던 jar들은 지우셔도 됩니다.)


    다시 위에 2, 3, 4, 5를 해봅니다.


    아래와 같은 에러가 발생할 경우

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project MC_MMS: Compilation failure

    [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

    [ERROR] -> [Help 1]

    [ERROR] 

    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

    [ERROR] 

    [ERROR] For more information about the errors and possible solutions, please read the following articles:

    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

    Window -> Preferences -> Java -> Installed JREs -> Add -> Standard VM -> JDK 경로를 선택합니다.

    그리고 추가된 JDK로 변경 후 위에 2, 3, 4, 5를 합니다.


    에러가 사라지지 않는다면 User/.m2/repository/org/apache의 maven 폴더를 지우고 다시 해봅니다.



    EDUC 빌드


    EDUC에서 MMSClient를 사용하기 때문에 Import 해줘야 합니다.

    1. File -> Import -> General -> Existing Projects into Workspace -> 위에서 사용한 MMS의 MMSClient를 추가합니다.

    2. import sun.misc.BASE64Encoder;에러 워닝으로 변경

    Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference -> Warning으로 변경


    다음으로 EDUC를 다운로드 후 빌드 해야 합니다.

    >>EDUC GitHub<<


    EDUC에는 .project파일이 없기 때문에 프로젝트를 하나 생성합니다.


    1. File -> New -> Java Project로 생성합니다.

    2. 생성된 프로젝트의 src 우 클릭 -> Import -> General -> File System -> 다운로드한 EDUC의 src를 선택합니다.

    3. 생성된 프로젝트 우 클릭 -> Properties -> Java Build Path -> Libraries -> Classpath -> Add External JARs -> EDUS/Lib에 있는 jar을 다 넣어줍니다.

    4. 오류가 있는 부분으로 가서 Fix project setup 해줍니다.

    5. EDUC의 Res 폴더를 복사해서 이클립스에 생성된 프로젝트에 붙여넣기 합니다.


    실행 시 ENC Download Update Client-EDUC가 실행되면 완료

    'OpenSource' 카테고리의 다른 글

    javaFMI 빌드  (0) 2020.01.21
    C++ FMU Builder 빌드  (0) 2020.01.07
    DACCOSIM 빌드  (0) 2020.01.07

    댓글

Designed by Tistory.