DBILITY

maven jar packaging specific class excluding ( java 클래스 제외 ) 본문

java/basic

maven jar packaging specific class excluding ( java 클래스 제외 )

DBILITY 2016. 10. 3. 10:10
반응형

 

pom.xml의 build섹션에 추가, exclude부분을 수정하고, build한다.

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-jar-plugin</artifactId>
  <version>2.3.2</version>
  <configuration>
  <excludes>
    <exclude>**/departureDelayRunner.class</exclude>
  </excludes>
  </configuration>
  <executions>
    <execution>
      <id>default-jar</id>
      <phase>package</phase>
      <goals>
        <goal>jar</goal>
      </goals>
    </execution>
  </executions>
</plugin>
반응형

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

java swing file open  (0) 2016.10.28
maven jar build시 meta-inf 제거  (0) 2016.10.21
java spring atomikos Connection Pool Exhausted Exception  (0) 2016.09.23
maven build scp copy  (0) 2016.09.20
javamail gmail smtp error  (0) 2016.09.20
Comments