티스토리 뷰

Spark & Scala

scala maven build

구티맨 2020. 2. 14. 15:53

scala 를 maven 으로 package 할 때, dependencies 를 빼고 jar를 만들게 된다.

dependency를 다 포함하여 jar를 만드려면, 아래 플러그인을 추가하면 된다.

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>2.2-beta-5</version>
        <configuration>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
        </configuration>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

'Spark & Scala' 카테고리의 다른 글

[ Spark & Scala ] File, Folder 삭제  (0) 2020.04.06
GCP Exception - Invalid signature file  (0) 2020.02.17
GCP noSuchMethodError 해결  (0) 2020.02.14
Spark 개발 프로젝트( IntelliJ, Scala, Maven )  (0) 2020.02.12
spark-submit 이란  (0) 2020.02.12
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함