Both sides previous revisionPrevious revisionNext revision | Previous revision |
maven [2018/05/09 16:45] – [MAVEN] ledyx | maven [2021/02/07 03:15] (current) – external edit 127.0.0.1 |
---|
{{tag>build}} | {{tag>build}} |
| |
= Fat Jar 설정 = | = JDK Ver. + Fat Jar + resources 설정 = |
| |
<sxh xml ; title:pom.xml> | <sxh xml ; title:pom.xml> |
<project> | <project> |
... | ... |
| |
| <properties> |
| <maven.compiler.source>1.8</maven.compiler.source> |
| <maven.compiler.target>1.8</maven.compiler.target> |
| </properties> |
| |
<build> | <build> |
<archive> | <archive> |
<manifest> | <manifest> |
<mainClass>MAIN CLASS PATH</mainClass> | <mainClass>io.github.ledyx.Main</mainClass> |
</manifest> | </manifest> |
</archive> | </archive> |
</plugin> | </plugin> |
</plugins> | </plugins> |
| |
| <resources> |
| <resource> |
| <directory>${basedir}/src/main/resources</directory> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| </resource> |
| </resources> |
</build> | </build> |
| |
| |
... | ... |
</project> | </project> |
</sxh> | </sxh> |
| |
| <sxh shell> |
| mvn clean |
| mvn package |
| </sxh> |
| |