65.1.2. 示例

指定start-class

  1. <spring-boot:exejar destfile="target/my-application.jar"
  2. classes="target/classes" start-class="com.foo.MyApplication">
  3. <resources>
  4. <fileset dir="src/main/resources" />
  5. </resources>
  6. <lib>
  7. <fileset dir="lib" />
  8. </lib>
  9. </spring-boot:exejar>

探测start-class

  1. <exejar destfile="target/my-application.jar" classes="target/classes">
  2. <lib>
  3. <fileset dir="lib" />
  4. </lib>
  5. </exejar>