maven - spring boot war without tomcat embedded -
i want create war file without embedded tomcat maven. here relevant part of pom
... <parent>     <groupid>org.springframework.boot</groupid>     <artifactid>spring-boot-starter-parent</artifactid>     <version>1.1.6.release</version> </parent> <dependencies>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-web</artifactid>     </dependency>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-thymeleaf</artifactid>     </dependency>     <!-- add tomcat if want run directly -->     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-tomcat</artifactid>         <scope>provided</scope>     </dependency> </dependencies> <build>     <plugins>         <plugin>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-maven-plugin</artifactid>         </plugin>     </plugins> </build> ... how ever if run mvn package war, tomcat*.jar in provided-lib folder still in lib-folder. read build-tool-plugins-maven-packaging, can't find what's wrong.
i know main idea run application, how ever our customer want's deploy on application-server.
following hint m. deinum excluded tomcat-depedency.
with following pom.xml (relevant snippet) maven clean package has result wan't get.
... <parent>     <groupid>org.springframework.boot</groupid>     <artifactid>spring-boot-starter-parent</artifactid>     <version>1.1.6.release</version> </parent> <dependencies>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-web</artifactid>         <exclusions>             <exclusion>                 <groupid>org.springframework.boot</groupid>                 <artifactid>spring-boot-starter-tomcat</artifactid>             </exclusion>         </exclusions>     </dependency>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-thymeleaf</artifactid>     </dependency>     <!-- add tomcat if want run directly -->     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-tomcat</artifactid>         <scope>provided</scope>     </dependency> </dependencies> <build>     <plugins>         <plugin>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-maven-plugin</artifactid>         </plugin>     </plugins> </build> ... 
Comments
Post a Comment