pom.xml 파일

  <build>
    <plugins>
      <plugin>
	    <groupId>org.apache.maven.plugins</groupId>
	    <artifactId>maven-jar-plugin</artifactId>
	    <version>3.1.1</version>
	    <configuration>
	      <archive>
	        <manifest>
		      <addClasspath>true</addClasspath>
		      <mainClass>io.sarc.rmrf</mainClass>
		      <classpathPrefix>dependency-jars/</classpathPrefix>
	        </manifest>
	      </archive>
	    </configuration>
      </plugin>
      <plugin>
    	<groupId>org.apache.maven.plugins</groupId>
	    <artifactId>maven-dependency-plugin</artifactId>
	    <version>3.1.1</version>
	    <executions>
	      <execution>
		    <id>copy-dependencies</id>
		    <phase>package</phase>
		    <goals>
		        <goal>copy-dependencies</goal>
		    </goals>
		    <configuration>
		      <outputDirectory>
                        ${project.build.directory}/dependency-jars/
                      </outputDirectory>
		    </configuration>
	      </execution>
	    </executions>
      </plugin>
    </plugins>
  </build>