spring boot properties launcher unable to use

后端 未结 1 526
孤独总比滥情好
孤独总比滥情好 2020-12-17 05:14

i am trying to use the spring boot properties launcher


        
            org.apache.maven.plugins

        
相关标签:
1条回答
  • 2020-12-17 05:51

    The spring-boot-maven-plugin rewrites your manifest, and in particular it manages the Main-Class and Start-Class entries, so you have to configure those there (not in the jar plugin). The Main-Class in the manifest is actually controlled by the layout property of the boot plugin, e.g.

    <plugin>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-maven-plugin</artifactId>
      <version>1.0.0.RC1</version>
      <configuration>
        <mainClass>${start-class}</mainClass>
        <layout>ZIP</layout>
      </configuration>
      <executions>
        <execution>
          <goals>
            <goal>repackage</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
    

    The layout property defaults to a guess based on the archive type (JAR or WAR). For the PropertiesLauncher the layout is "ZIP".

    0 讨论(0)
提交回复
热议问题