|
7 | 7 | <groupId>com.xdev-software</groupId> |
8 | 8 | <artifactId>vaadin-addon-template-demo</artifactId> |
9 | 9 | <version>1.0.0-SNAPSHOT</version> |
10 | | - <packaging>war</packaging> |
| 10 | + <packaging>jar</packaging> |
11 | 11 |
|
12 | 12 | <inceptionYear>2022</inceptionYear> |
13 | 13 |
|
|
32 | 32 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
33 | 33 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
34 | 34 |
|
| 35 | + <mainClass>software.xdev.vaadin.Application</mainClass> |
| 36 | + |
35 | 37 | <!-- Dependency-Versions --> |
36 | 38 | <vaadin.version>23.3.4</vaadin.version> |
37 | | - </properties> |
38 | 39 |
|
| 40 | + <org.springframework.boot.version>2.7.7</org.springframework.boot.version> |
| 41 | + </properties> |
39 | 42 |
|
40 | 43 | <dependencyManagement> |
41 | 44 | <dependencies> |
|
46 | 49 | <scope>import</scope> |
47 | 50 | <version>${vaadin.version}</version> |
48 | 51 | </dependency> |
| 52 | + |
| 53 | + <!-- Spring Boot --> |
| 54 | + <!-- This bom provides versions for ~500 dependencies --> |
| 55 | + <!-- Nearly at the end so that it doesn't accidentally overwrite other versions --> |
| 56 | + <dependency> |
| 57 | + <groupId>org.springframework.boot</groupId> |
| 58 | + <artifactId>spring-boot-dependencies</artifactId> |
| 59 | + <version>${org.springframework.boot.version}</version> |
| 60 | + <type>pom</type> |
| 61 | + <scope>import</scope> |
| 62 | + </dependency> |
49 | 63 | </dependencies> |
50 | 64 | </dependencyManagement> |
51 | 65 |
|
|
63 | 77 | <groupId>org.slf4j</groupId> |
64 | 78 | <artifactId>slf4j-simple</artifactId> |
65 | 79 | </dependency> |
| 80 | + <!-- Spring --> |
| 81 | + <dependency> |
| 82 | + <groupId>com.vaadin</groupId> |
| 83 | + <artifactId>vaadin-spring-boot-starter</artifactId> |
| 84 | + </dependency> |
| 85 | + <dependency> |
| 86 | + <groupId>org.springframework.boot</groupId> |
| 87 | + <artifactId>spring-boot-devtools</artifactId> |
| 88 | + <optional>true</optional> |
| 89 | + </dependency> |
66 | 90 | </dependencies> |
67 | 91 |
|
68 | 92 | <build> |
69 | 93 | <finalName>${project.artifactId}</finalName> |
| 94 | + |
| 95 | + <pluginManagement> |
| 96 | + <plugins> |
| 97 | + <plugin> |
| 98 | + <groupId>org.springframework.boot</groupId> |
| 99 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 100 | + <version>${org.springframework.boot.version}</version> |
| 101 | + </plugin> |
| 102 | + </plugins> |
| 103 | + </pluginManagement> |
70 | 104 |
|
71 | 105 | <plugins> |
72 | | - <!-- Jetty plugin for easy testing without a server --> |
73 | | - <plugin> |
74 | | - <groupId>org.eclipse.jetty</groupId> |
75 | | - <artifactId>jetty-maven-plugin</artifactId> |
76 | | - <version>10.0.13</version> |
77 | | - <configuration> |
78 | | - <scan>1</scan> |
79 | | - </configuration> |
80 | | - </plugin> |
81 | 106 | <plugin> |
82 | 107 | <groupId>com.vaadin</groupId> |
83 | 108 | <artifactId>vaadin-maven-plugin</artifactId> |
|
101 | 126 | </compilerArgs> |
102 | 127 | </configuration> |
103 | 128 | </plugin> |
104 | | - <plugin> |
105 | | - <groupId>org.apache.maven.plugins</groupId> |
106 | | - <artifactId>maven-war-plugin</artifactId> |
107 | | - <version>3.3.2</version> |
108 | | - <configuration> |
109 | | - <failOnMissingWebXml>false</failOnMissingWebXml> |
110 | | - </configuration> |
111 | | - </plugin> |
112 | 129 | </plugins> |
113 | 130 | </build> |
114 | 131 |
|
|
140 | 157 | </execution> |
141 | 158 | </executions> |
142 | 159 | </plugin> |
| 160 | + <plugin> |
| 161 | + <groupId>org.springframework.boot</groupId> |
| 162 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 163 | + <configuration> |
| 164 | + <mainClass>${mainClass}</mainClass> |
| 165 | + <fork>true</fork> |
| 166 | + </configuration> |
| 167 | + <executions> |
| 168 | + <execution> |
| 169 | + <id>repackage</id> |
| 170 | + <goals> |
| 171 | + <goal>repackage</goal> |
| 172 | + </goals> |
| 173 | + <phase>package</phase> |
| 174 | + </execution> |
| 175 | + </executions> |
| 176 | + </plugin> |
143 | 177 | </plugins> |
144 | 178 | </build> |
145 | 179 | </profile> |
|
0 commit comments