pom.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>java-mcli</artifactId>
  7. <groupId>com.malk</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>mjava</artifactId>
  12. <description>mjava framework</description>
  13. <properties>
  14. <maven.compiler.source>8</maven.compiler.source>
  15. <maven.compiler.target>8</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. </dependencies>
  19. <build>
  20. <plugins>
  21. <plugin>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-maven-plugin</artifactId>
  24. <version>2.1.1.RELEASE</version>
  25. <configuration>
  26. <includeSystemScope>true</includeSystemScope>
  27. <!-- 如果没有该配置,devtools不会生效: 打包时关闭 -->
  28. <fork>false</fork>
  29. <!-- 避免中文乱码 -->
  30. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  31. </configuration>
  32. <!-- 允许生成可运行jar: 发布作为基础包提供, 注释 executions 再执行 install 到本地 maven. 若开启即可作为独立 jar 运行 -->
  33. <executions>
  34. <execution>
  35. <goals>
  36. <!-- <goal>repackage</goal>-->
  37. </goals>
  38. </execution>
  39. </executions>
  40. </plugin>
  41. </plugins>
  42. <finalName>${project.artifactId}</finalName>
  43. </build>
  44. </project>