Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
maven [2018/05/09 16:44] – 만듦 ledyxmaven [2021/02/07 03:15] (current) – external edit 127.0.0.1
Line 1: Line 1:
-MAVEN =+Maven =
  
-{{tag>Language Clojure JVM}}+{{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>
Line 16: Line 21:
                     <archive>                     <archive>
                         <manifest>                         <manifest>
-                            <mainClass>MAIN CLASS PATH</mainClass>+                            <mainClass>io.github.ledyx.Main</mainClass>
                         </manifest>                         </manifest>
                     </archive>                     </archive>
Line 34: Line 39:
             </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>
 +
maven.1525880669.txt.gz · Last modified: 2021/02/07 03:15 (external edit)