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