Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <!-- Project from https://start.vaadin.com/project/9341ce37-5519-4679-9e05-365c2e9c9caf -->
- <groupId>com.myexample.application</groupId>
- <artifactId>myexample</artifactId>
- <name>myexample</name>
- <version>1.0.0</version>
- <packaging>jar</packaging>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <java.version>17</java.version>
- <vaadin.version>24.3.11</vaadin.version>
- <tomcat.version>10.1.23</tomcat.version>
- </properties>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>3.2.5</version>
- <relativePath /> <!-- lookup parent from repository -->
- </parent>
- <repositories>
- <repository>
- <id>Vaadin Directory</id>
- <url>https://maven.vaadin.com/vaadin-addons</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- </repositories>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>com.vaadin</groupId>
- <artifactId>vaadin-bom</artifactId>
- <version>${vaadin.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>com.vaadin</groupId>
- <!-- Replace artifactId with vaadin-core to use only free components -->
- <artifactId>vaadin</artifactId>
- <exclusions>
- <exclusion>
- <groupId>com.vaadin</groupId>
- <artifactId>vaadin-dev</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.vaadin</groupId>
- <artifactId>vaadin-spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.parttio</groupId>
- <artifactId>line-awesome</artifactId>
- <version>2.0.0</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-validation</artifactId>
- </dependency>
- <!-- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <optional>true</optional>
- </dependency> -->
- <!-- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency> -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- </dependency>
- <!-- <dependency>
- <groupId>com.vaadin</groupId>
- <artifactId>vaadin-testbench-junit5</artifactId>
- <scope>test</scope>
- </dependency> -->
- </dependencies>
- <build>
- <defaultGoal>spring-boot:run</defaultGoal>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <!-- Production mode is activated using -Pproduction -->
- <id>production</id>
- <properties>
- <vaadin.productionMode>true</vaadin.productionMode>
- </properties>
- <dependencies>
- <!-- Exclude development dependencies from production -->
- <dependency>
- <groupId>com.vaadin</groupId>
- <artifactId>vaadin</artifactId>
- <exclusions>
- <exclusion>
- <groupId>com.vaadin</groupId>
- <artifactId>vaadin-dev-server</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>com.vaadin</groupId>
- <artifactId>vaadin-maven-plugin</artifactId>
- <version>${vaadin.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>build-frontend</goal>
- </goals>
- <phase>compile</phase>
- </execution>
- </executions>
- <configuration>
- <!-- To always force an optimized production bundle build set this configuration to 'true' -->
- <!-- To possibly use the pre-compiled production bundle remove or set to 'false' -->
- <forceProductionBuild>true</forceProductionBuild>
- <frontendHotdeploy>false</frontendHotdeploy>
- <!-- To have reproducible build by running 'npm ci' -->
- <ciBuild>true</ciBuild>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <addClasspath>true</addClasspath>
- <classpathPrefix>target/classes/</classpathPrefix>
- <mainClass>com.myexample.application.Application</mainClass>
- </manifest>
- </archive>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement