maven 프로젝트에 jar파일을 어떻게 추가시켜요?

조회수 2612회

아직 Maven 레파지토리가 아닌 jar 파일을 어떻게 다이렉트로 제 프로젝트 라이브러리 소스폴더에 추가시킬까요?

1 답변

  • 좋아요

    0

    싫어요
    채택 취소하기

    이런 식으로 Maver 레파지토리에서 JAR파일을 설치하세요.

     mvn install:install-file
    -Dfile=<path-to-file>
    -DgroupId=<group-id>
    -DartifactId=<artifact-id>
    -Dversion=<version>
    -Dpackaging=<packaging>
    -DgeneratePom=true
    
    Where: <path-to-file>  the path to the file to load
       <group-id>      the group that the file should be registered under
       <artifact-id>   the artifact name for the file
       <version>       the version of the file
       <packaging>     the packaging of the file e.g. jar
    

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)