Exporting war in release mode using Spring Tool Suite STS?

I am using the Spring Tool Suite for the Spring MVC project. I can not find the export option of my war in release mode. Does eclipse do this by default when exporting a war?

Eclipse may use the default debugging mode, but it will automatically change mode when exporting a war.

I know that the release version is optimized, so I would like to know how to export my war to this version.

+7
java eclipse spring-mvc release war
source share
1 answer

There are no Debug / Release modes during the eclipse during jars / wars export. There are Java compiler settings, but they remain the same no matter how you export your jars.

If you want to control the build settings depending on the selected build profile, it is better to use some kind of build mechanism, such as Apache Maven or Gradle, where you can define several build profiles and then change them during build.

+3
source share

All Articles