0
When im trying to build my application to upload my project to azure I have the next errors and debugging it with "mvn -e -X -Pproduction -DskipTests clean package":
[ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:22.0.0:build-frontend (default) on project cinema: Could not execute build-frontend goal: Error occured during goal execution: Type [unknown] not presentPlease run Maven with the -e switch (or Gradle with the --stacktrace switch), to learn the full stack trace. org/springframework/context/ApplicationEventPublisherAware: org.springframework.context.ApplicationEventPublisherAware -> [Help 1]
Caused by: org.apache.maven.plugin.MojoFailureException: Could not execute build-frontend goal
Caused by: com.vaadin.flow.server.ExecutionFailedException: Error occured during goal execution: Type [unknown] not presentPlease run Maven with the -e switch (or Gradle with the --stacktrace switch), to learn the full stack trace.
Caused by: java.lang.TypeNotPresentException: Type [unknown] not present
Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationEventPublisherAware
<?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>
<!-- Vaadin project from https://start.vaadin.com/project/1e82b309-3fef-4d97-b376-4d9e20b1dd3e -->
<groupId>com.cinema.application</groupId>
<artifactId>cinema</artifactId>
<name>Project base for Spring Boot and Vaadin Flow</name>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<java.version>8</java.version>
<vaadin.version>22.0.0</vaadin.version>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.4</version>
</parent>
<repositories>
<!-- The order of definitions matters. Explicitly defining central here to make sure it has the highest priority. -->
<!-- Main Maven repository -->
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>vaadin-prereleases</id>
<url>
https://maven.vaadin.com/vaadin-prereleases/
</url>
</repository>
<!-- Repository used by many Vaadin add-ons -->
<repository>
<id>Vaadin Directory</id>
<url>https://maven.vaadin.com/vaadin-addons</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<!-- The order of definitions matters. Explicitly defining central here to make sure it has the highest priority. -->
<pluginRepository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>vaadin-prereleases</id>
<url>
https://maven.vaadin.com/vaadin-prereleases/
</url>
</pluginRepository>
</pluginRepositories>
<dependencyManagement>
<dependencies>
this is how my pom.xml looks like, I think im not missing any dependency or anything, have spent all day trying to figure out what's going on here, thanks.
any idea how could I handle those problems?