Hello, friends here
       
        Recently, I use mvn clean package or something like that to my project, 
then, I found the jar file is about more than 100MB size. But I dont want some 
dependency to exist in my finally jar file. there are three dependency file in 
pom like the following. The first one is a junit dependency. the second one is 
a google.protobuf-java-format. The last is a flink with provided. My question 
is, when I use mvn clean package, which will package to my final jar file ? I 
think google.protobuf-java-format will go to my jar file. Correct ? I am not 
sure whether junit package to my jar file. Does anyone improve my mind ? 


   <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
     </dependency>


     <dependency>
            <groupId>com.googlecode.protobuf-java-format</groupId>
            <artifactId>protobuf-java-format</artifactId>
            <version>1.2</version>
        </dependency>


       <dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-scala_2.10</artifactId>
            <version>${flink.version}</version>
            <scope>provided</scope>
        </dependency>


Thanks
Minglei.

Reply via email to