Bukkit as a Maven Dependency/ko

From BukkitWiki
< Bukkit as a Maven Dependency
Revision as of 14:26, 25 June 2017 by Xbony2 (talk | contribs) (Undo revision 13494 by 112.98.19.201 (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

당신의 메이븐 프로젝트에 Bukkit을 dependency로 추가하려면 pom.xml에 엔트리를 추가해야합니다. Bukkit은 메이븐 중앙 저장소에 있지 않습니다, 따라서 Bukkit dependency 선언과 함께 Bukkit 저장소를 추가해야 합니다.

Maven dependency에 대해 더 자세히 알아보려면 Dependency 메커니즘 소개 글을 읽으세요

저장소 및 Dependency 엔트리

Repository Dependency
<repository>
  <id>bukkit-repo</id>
  <url>http://repo.bukkit.org/content/groups/public/</url>
</repository>
<dependency>
    <groupId>org.bukkit</groupId>
    <artifactId>bukkit</artifactId>
    <version>1.7.9-R0.1</version>
</dependency>

메이븐 프로젝트 pom.xml 설정하기

<project>
    [...]
    <repositories>
        [...]
        <!-- Bukkit 의 저장소 -->
        <repository>
          <id>bukkit-repo</id>
          <url>http://repo.bukkit.org/content/groups/public/</url>
        </repository>
    </repositories>
    [...]
    <dependencies>
       [...]
        <!-- Dependency 정보 --> 
        <dependency>
            <groupId>org.bukkit</groupId>
            <artifactId>bukkit</artifactId>
            <!-- Bukkit API 버전, 필요하면 바꾸세요 -->
            <version>1.7.9-R0.1</version>
        </dependency>
    </dependencies>
    [...]
</project>
Language   EnglishбеларускаяDeutschespañolsuomifrançaisitaliano한국어Nederlandsnorskpolskiportuguêsрусскийlietuviųčeština