DBILITY

maven jar build main (startup) class setting ( jar 시작클래스 지정) 본문

java/basic

maven jar build main (startup) class setting ( jar 시작클래스 지정)

DBILITY 2016. 11. 12. 14:32
반응형

hadoop command line에 main class를 지정하지 않고 실행할 수 있습니다.
물론, hadoop뿐만 아니라, executable jar에도 적용됩니다.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <version>2.3.2</version>
    <configuration>
        <archive>
            <manifest>
                <mainClass>com.dbility.hadoop.multioutput.AsaDelayDriver</mainClass>
            </manifest>
        </archive>
    </configuration>
    <executions>
        <execution>
            <id>default-jar</id>
            <phase>package</phase>
            <goals>
                <goal>jar</goal>
            </goals>
        </execution>
    </executions>
</plugin>

 

반응형

'java > basic' 카테고리의 다른 글

java for loop  (0) 2017.10.18
maven build Using platform encoding (UTF-8 actually) to copy filtered....  (0) 2017.10.17
svn admin command (명령)  (0) 2016.11.02
java swing file open  (0) 2016.10.28
maven jar build시 meta-inf 제거  (0) 2016.10.21
Comments