|
26 | 26 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
27 | 27 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
28 | 28 |
|
29 | | - <mainClass>software.xdev.Application</mainClass> |
| 29 | + <mainClass>software.xdev.vaadin.Application</mainClass> |
| 30 | + |
| 31 | + <!-- Dependency-Versions --> |
| 32 | + <vaadin.version>24.4.11</vaadin.version> |
| 33 | + |
| 34 | + <org.springframework.boot.version>3.3.3</org.springframework.boot.version> |
30 | 35 | </properties> |
31 | 36 |
|
| 37 | + <dependencyManagement> |
| 38 | + <dependencies> |
| 39 | + <dependency> |
| 40 | + <groupId>com.vaadin</groupId> |
| 41 | + <artifactId>vaadin-bom</artifactId> |
| 42 | + <type>pom</type> |
| 43 | + <scope>import</scope> |
| 44 | + <version>${vaadin.version}</version> |
| 45 | + </dependency> |
| 46 | + |
| 47 | + <!-- Spring Boot --> |
| 48 | + <!-- This bom provides versions for ~500 dependencies --> |
| 49 | + <!-- Nearly at the end so that it doesn't accidentally overwrite other versions --> |
| 50 | + <dependency> |
| 51 | + <groupId>org.springframework.boot</groupId> |
| 52 | + <artifactId>spring-boot-dependencies</artifactId> |
| 53 | + <version>${org.springframework.boot.version}</version> |
| 54 | + <type>pom</type> |
| 55 | + <scope>import</scope> |
| 56 | + </dependency> |
| 57 | + </dependencies> |
| 58 | + </dependencyManagement> |
| 59 | + |
32 | 60 | <dependencies> |
| 61 | + <dependency> |
| 62 | + <groupId>com.vaadin</groupId> |
| 63 | + <artifactId>vaadin-core</artifactId> |
| 64 | + </dependency> |
33 | 65 | <dependency> |
34 | 66 | <groupId>software.xdev</groupId> |
35 | 67 | <artifactId>template-placeholder</artifactId> |
36 | 68 | <version>${project.version}</version> |
37 | 69 | </dependency> |
| 70 | + |
| 71 | + <!-- Spring --> |
| 72 | + <dependency> |
| 73 | + <groupId>com.vaadin</groupId> |
| 74 | + <artifactId>vaadin-spring-boot-starter</artifactId> |
| 75 | + </dependency> |
| 76 | + <!-- Temporarily excluded by Vaadin due to "security vulnerability" --> |
| 77 | + <dependency> |
| 78 | + <groupId>org.yaml</groupId> |
| 79 | + <artifactId>snakeyaml</artifactId> |
| 80 | + </dependency> |
| 81 | + <dependency> |
| 82 | + <groupId>org.springframework.boot</groupId> |
| 83 | + <artifactId>spring-boot-devtools</artifactId> |
| 84 | + <optional>true</optional> |
| 85 | + </dependency> |
38 | 86 | </dependencies> |
39 | 87 |
|
40 | 88 | <build> |
41 | 89 | <finalName>${project.artifactId}</finalName> |
| 90 | + |
| 91 | + <pluginManagement> |
| 92 | + <plugins> |
| 93 | + <plugin> |
| 94 | + <groupId>org.springframework.boot</groupId> |
| 95 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 96 | + <version>${org.springframework.boot.version}</version> |
| 97 | + </plugin> |
| 98 | + </plugins> |
| 99 | + </pluginManagement> |
42 | 100 |
|
43 | 101 | <plugins> |
| 102 | + <plugin> |
| 103 | + <groupId>com.vaadin</groupId> |
| 104 | + <artifactId>vaadin-maven-plugin</artifactId> |
| 105 | + <version>${vaadin.version}</version> |
| 106 | + <executions> |
| 107 | + <execution> |
| 108 | + <goals> |
| 109 | + <goal>prepare-frontend</goal> |
| 110 | + </goals> |
| 111 | + </execution> |
| 112 | + </executions> |
| 113 | + </plugin> |
44 | 114 | <plugin> |
45 | 115 | <groupId>org.apache.maven.plugins</groupId> |
46 | 116 | <artifactId>maven-compiler-plugin</artifactId> |
|
52 | 122 | </compilerArgs> |
53 | 123 | </configuration> |
54 | 124 | </plugin> |
55 | | - <plugin> |
56 | | - <groupId>org.apache.maven.plugins</groupId> |
57 | | - <artifactId>maven-assembly-plugin</artifactId> |
58 | | - <version>3.7.1</version> |
59 | | - <configuration> |
60 | | - <archive> |
61 | | - <manifest> |
62 | | - <mainClass>${mainClass}</mainClass> |
63 | | - </manifest> |
64 | | - <manifestEntries> |
65 | | - <Multi-Release>true</Multi-Release> |
66 | | - </manifestEntries> |
67 | | - </archive> |
68 | | - <descriptorRefs> |
69 | | - <descriptorRef>jar-with-dependencies</descriptorRef> |
70 | | - </descriptorRefs> |
71 | | - <appendAssemblyId>false</appendAssemblyId> |
72 | | - </configuration> |
73 | | - <executions> |
74 | | - <execution> |
75 | | - <id>make-assembly</id> <!-- this is used for inheritance merges --> |
76 | | - <phase>package</phase> <!-- bind to the packaging phase --> |
77 | | - <goals> |
78 | | - <goal>single</goal> |
79 | | - </goals> |
80 | | - </execution> |
81 | | - </executions> |
82 | | - </plugin> |
83 | 125 | </plugins> |
84 | 126 | </build> |
| 127 | + |
| 128 | + <profiles> |
| 129 | + <profile> |
| 130 | + <id>production</id> |
| 131 | + <dependencies> |
| 132 | + <!-- Exclude development dependencies from production --> |
| 133 | + <dependency> |
| 134 | + <groupId>com.vaadin</groupId> |
| 135 | + <artifactId>vaadin-core</artifactId> |
| 136 | + <exclusions> |
| 137 | + <exclusion> |
| 138 | + <groupId>com.vaadin</groupId> |
| 139 | + <artifactId>vaadin-dev</artifactId> |
| 140 | + </exclusion> |
| 141 | + </exclusions> |
| 142 | + </dependency> |
| 143 | + </dependencies> |
| 144 | + <build> |
| 145 | + <plugins> |
| 146 | + <plugin> |
| 147 | + <groupId>com.vaadin</groupId> |
| 148 | + <artifactId>vaadin-maven-plugin</artifactId> |
| 149 | + <version>${vaadin.version}</version> |
| 150 | + <executions> |
| 151 | + <execution> |
| 152 | + <goals> |
| 153 | + <goal>prepare-frontend</goal> |
| 154 | + <goal>build-frontend</goal> |
| 155 | + </goals> |
| 156 | + </execution> |
| 157 | + </executions> |
| 158 | + </plugin> |
| 159 | + <plugin> |
| 160 | + <groupId>org.springframework.boot</groupId> |
| 161 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 162 | + <configuration> |
| 163 | + <mainClass>${mainClass}</mainClass> |
| 164 | + </configuration> |
| 165 | + <executions> |
| 166 | + <execution> |
| 167 | + <id>repackage</id> |
| 168 | + <goals> |
| 169 | + <goal>repackage</goal> |
| 170 | + </goals> |
| 171 | + <phase>package</phase> |
| 172 | + </execution> |
| 173 | + </executions> |
| 174 | + </plugin> |
| 175 | + </plugins> |
| 176 | + </build> |
| 177 | + </profile> |
| 178 | + </profiles> |
85 | 179 | </project> |
0 commit comments