Plugin 'com.vaadin:vaadin-maven-plugin:24.4.6' not found

1.I generated my project through spring initializr (Spring Web, Spring for Apache Kafka, Lombok, Vaadin)

Project: Maven
Language: Java
Spring Boot: 3.3.2
Packaging: Jar
Java: 21

2.I launched it in IDEA

3.An error appears in the pom file that the plugin was not found

I tried clearing the IDEA cache, restarting the computer, but nothing helps. How to solve the problem?
P.S Also, I tried doing “clean” in maven

My pom.xml file

<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>3.3.2</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.petnetwork</groupId>
	<artifactId>vaporPool</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>vaporPool</name>
	<description>VaporPool network</description>
	<url/>
	<licenses>
		<license/>
	</licenses>
	<developers>
		<developer/>
	</developers>
	<scm>
		<connection/>
		<developerConnection/>
		<tag/>
		<url/>
	</scm>
	<properties>
		<java.version>21</java.version>
		<vaadin.version>24.4.6</vaadin.version>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
		<dependency>
			<groupId>com.vaadin</groupId>
			<artifactId>vaadin-spring-boot-starter</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.kafka</groupId>
			<artifactId>spring-kafka</artifactId>
		</dependency>

		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</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.kafka</groupId>
			<artifactId>spring-kafka-test</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>com.vaadin</groupId>
				<artifactId>vaadin-bom</artifactId>
				<version>${vaadin.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<configuration>
					<excludes>
						<exclude>
							<groupId>org.projectlombok</groupId>
							<artifactId>lombok</artifactId>
						</exclude>
					</excludes>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<profiles>
		<profile>
			<id>production</id>
			<dependencies>
				<dependency>
					<groupId>com.vaadin</groupId>
					<artifactId>vaadin-core</artifactId>
					<exclusions>
						<exclusion>
							<groupId>com.vaadin</groupId>
							<artifactId>vaadin-dev</artifactId>
						</exclusion>
					</exclusions>
				</dependency>

			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>com.vaadin</groupId>
						<artifactId>vaadin-maven-plugin</artifactId>
						<version>${vaadin.version}</version>
						<executions>
							<execution>
								<id>frontend</id>
								<phase>compile</phase>
								<goals>
									<goal>prepare-frontend</goal>
									<goal>build-frontend</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

</project>


Help pls :pray:

I looked at all similar questions on the Vaadin network, none of the solutions helped me. And I’m surprised that no one has complained about such a problem yet. Am I the only one with this?

What’s the complete output running mvn package -Pproduction from the command line?

I can’t run maven from the command line, it’s not installed locally

Running the package command through the maven plugin in IDEA gives this result

C:\Users\vadim\.jdks\graalvm-jdk-21.0.4\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\vaporPool -Djansi.passthrough=true -Dmaven.home=C:\Users\vadim\.m2\wrapper\dists\apache-maven-3.9.7-bin\3k9n615lchs6mp84v355m633uo\apache-maven-3.9.7 -Dclassworlds.conf=C:\Users\vadim\.m2\wrapper\dists\apache-maven-3.9.7-bin\3k9n615lchs6mp84v355m633uo\apache-maven-3.9.7\bin\m2.conf "-Dmaven.ext.class.path=D:\IntelliJ IDEA Community Edition 2023.3.4\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\IntelliJ IDEA Community Edition 2023.3.4\lib\idea_rt.jar=60297:D:\IntelliJ IDEA Community Edition 2023.3.4\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath C:\Users\vadim\.m2\wrapper\dists\apache-maven-3.9.7-bin\3k9n615lchs6mp84v355m633uo\apache-maven-3.9.7\boot\plexus-classworlds-2.8.0.jar;C:\Users\vadim\.m2\wrapper\dists\apache-maven-3.9.7-bin\3k9n615lchs6mp84v355m633uo\apache-maven-3.9.7\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2023.3.7 package
[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------------< com.petnetwork:vaporPool >----------------------
[INFO] Building vaporPool 0.0.1-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ vaporPool ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO] Copying 0 resource from src\main\resources to target\classes
[INFO] 
[INFO] --- compiler:3.13.0:compile (default-compile) @ vaporPool ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 1 source file with javac [debug parameters release 21] to target\classes
[INFO] Annotation processing is enabled because one or more processors were found
  on the class path. A future release of javac may disable annotation processing
  unless at least one processor is specified by name (-processor), or a search
  path is specified (--processor-path, --processor-module-path), or annotation
  processing is enabled explicitly (-proc:only, -proc:full).
  Use -Xlint:-options to suppress this message.
  Use -proc:none to disable annotation processing.
[INFO] 
[INFO] --- resources:3.3.1:testResources (default-testResources) @ vaporPool ---
[INFO] skip non existing resourceDirectory D:\vaporPool\src\test\resources
[INFO] 
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ vaporPool ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 1 source file with javac [debug parameters release 21] to target\test-classes
[INFO] Annotation processing is enabled because one or more processors were found
  on the class path. A future release of javac may disable annotation processing
  unless at least one processor is specified by name (-processor), or a search
  path is specified (--processor-path, --processor-module-path), or annotation
  processing is enabled explicitly (-proc:only, -proc:full).
  Use -Xlint:-options to suppress this message.
  Use -proc:none to disable annotation processing.
[INFO] 
[INFO] --- surefire:3.2.5:test (default-test) @ vaporPool ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
авг. 02, 2024 5:33:54 PM org.junit.platform.launcher.core.LauncherConfigurationParameters loadClasspathResource
WARNING: Discovered 2 'junit-platform.properties' configuration files in the classpath; only the first will be used.
авг. 02, 2024 5:33:54 PM org.junit.platform.launcher.core.LauncherConfigurationParameters loadClasspathResource
WARNING: Discovered 2 'junit-platform.properties' configuration files in the classpath; only the first will be used.
авг. 02, 2024 5:33:54 PM org.junit.platform.launcher.core.LauncherConfigurationParameters loadClasspathResource
WARNING: Discovered 2 'junit-platform.properties' configuration files in the classpath; only the first will be used.
[INFO] Running com.petnetwork.vaporPool.VaporPoolApplicationTests
17:33:54.638 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.petnetwork.vaporPool.VaporPoolApplicationTests]: VaporPoolApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
17:33:54.717 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.petnetwork.vaporPool.VaporPoolApplication for test class com.petnetwork.vaporPool.VaporPoolApplicationTests

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::                (v3.3.2)

2024-08-02T17:33:55.041+03:00  INFO 1812 --- [vaporPool] [           main] c.p.vaporPool.VaporPoolApplicationTests  : Starting VaporPoolApplicationTests using Java 21.0.4 with PID 1812 (started by vadim in D:\vaporPool)
2024-08-02T17:33:55.043+03:00  INFO 1812 --- [vaporPool] [           main] c.p.vaporPool.VaporPoolApplicationTests  : No active profile set, falling back to 1 default profile: "default"
2024-08-02T17:33:56.461+03:00  INFO 1812 --- [vaporPool] [           main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereHandler com.vaadin.hilla.push.PushEndpoint mapped to context-path: /HILLA/push
2024-08-02T17:33:56.462+03:00  INFO 1812 --- [vaporPool] [           main] org.atmosphere.cpr.AtmosphereFramework   : Installed the following AtmosphereInterceptor mapped to AtmosphereHandler com.vaadin.hilla.push.PushEndpoint
2024-08-02T17:33:56.462+03:00  INFO 1812 --- [vaporPool] [           main] org.atmosphere.cpr.AtmosphereFramework   : 	org.atmosphere.interceptor.AtmosphereResourceLifecycleInterceptor : Atmosphere LifeCycle
2024-08-02T17:33:56.462+03:00  INFO 1812 --- [vaporPool] [           main] org.atmosphere.cpr.AtmosphereFramework   : 	org.atmosphere.client.TrackMessageSizeInterceptor :  Track Message Size Interceptor using |
2024-08-02T17:33:56.462+03:00  INFO 1812 --- [vaporPool] [           main] org.atmosphere.cpr.AtmosphereFramework   : 	org.atmosphere.interceptor.SuspendTrackerInterceptor : UUID Tracking Interceptor
2024-08-02T17:33:56.573+03:00  INFO 1812 --- [vaporPool] [           main] c.p.vaporPool.VaporPoolApplicationTests  : Started VaporPoolApplicationTests in 1.738 seconds (process running for 2.572)
WARNING: A Java agent has been loaded dynamically (C:\Users\vadim\.m2\repository\net\bytebuddy\byte-buddy-agent\1.14.18\byte-buddy-agent-1.14.18.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.615 s -- in com.petnetwork.vaporPool.VaporPoolApplicationTests
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- jar:3.4.2:jar (default-jar) @ vaporPool ---
[INFO] Building jar: D:\vaporPool\target\vaporPool-0.0.1-SNAPSHOT.jar
[INFO] 
[INFO] --- spring-boot:3.3.2:repackage (repackage) @ vaporPool ---
[INFO] Replacing main artifact D:\vaporPool\target\vaporPool-0.0.1-SNAPSHOT.jar with repackaged archive, adding nested dependencies in BOOT-INF/.
[INFO] The original artifact has been renamed to D:\vaporPool\target\vaporPool-0.0.1-SNAPSHOT.jar.original
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  8.193 s
[INFO] Finished at: 2024-08-02T17:33:57+03:00
[INFO] ------------------------------------------------------------------------

Process finished with exit code 0

Please, re-run the command activating the production profile, so that the vaadin-maven-plugin will be executed

I don’t understand. Which team is represented here?

Okay, i think i’m understand

Thanks! Your decision helped, the dependency was located. But when executing package, the error changed to the following:

C:\Users\vadim\.jdks\graalvm-jdk-21.0.4\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\vaporPool -Djansi.passthrough=true -Dmaven.home=C:\Users\vadim\.m2\wrapper\dists\apache-maven-3.9.7-bin\3k9n615lchs6mp84v355m633uo\apache-maven-3.9.7 -Dclassworlds.conf=C:\Users\vadim\.m2\wrapper\dists\apache-maven-3.9.7-bin\3k9n615lchs6mp84v355m633uo\apache-maven-3.9.7\bin\m2.conf "-Dmaven.ext.class.path=D:\IntelliJ IDEA Community Edition 2023.3.4\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\IntelliJ IDEA Community Edition 2023.3.4\lib\idea_rt.jar=60837:D:\IntelliJ IDEA Community Edition 2023.3.4\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath C:\Users\vadim\.m2\wrapper\dists\apache-maven-3.9.7-bin\3k9n615lchs6mp84v355m633uo\apache-maven-3.9.7\boot\plexus-classworlds-2.8.0.jar;C:\Users\vadim\.m2\wrapper\dists\apache-maven-3.9.7-bin\3k9n615lchs6mp84v355m633uo\apache-maven-3.9.7\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2023.3.7 compile -P production
[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------------< com.petnetwork:vaporPool >----------------------
[INFO] Building vaporPool 0.0.1-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ vaporPool ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO] Copying 0 resource from src\main\resources to target\classes
[INFO] 
[INFO] --- compiler:3.13.0:compile (default-compile) @ vaporPool ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 1 source file with javac [debug parameters release 21] to target\classes
[INFO] Annotation processing is enabled because one or more processors were found
  on the class path. A future release of javac may disable annotation processing
  unless at least one processor is specified by name (-processor), or a search
  path is specified (--processor-path, --processor-module-path), or annotation
  processing is enabled explicitly (-proc:only, -proc:full).
  Use -Xlint:-options to suppress this message.
  Use -proc:none to disable annotation processing.
[INFO] 
[INFO] >>> vaadin:24.4.6:prepare-frontend (frontend) > :configure @ vaporPool >>>
[INFO] 
[INFO] --- vaadin:24.4.6:configure (configure) @ vaporPool ---
[INFO] Reflections took 684 ms to scan 148 urls, producing 6251 keys and 35886 values
[INFO] 
[INFO] <<< vaadin:24.4.6:prepare-frontend (frontend) < :configure @ vaporPool <<<
[INFO] 
[INFO] 
[INFO] --- vaadin:24.4.6:prepare-frontend (frontend) @ vaporPool ---
[INFO] Reflections took 363 ms to scan 148 urls, producing 6251 keys and 35886 values
[INFO] Couldn't find node.exe. Installing Node and npm to C:\Users\vadim\.vaadin.
[INFO] Installing node version v20.15.0
[INFO] Unpacking C:\Users\vadim\.vaadin\node-v20.15.0-win-x64.zip (14692821 bytes) into C:\Users\vadim\.vaadin\node\tmp
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.369 s
[INFO] Finished at: 2024-08-02T17:45:54+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:24.4.6:prepare-frontend (frontend) on project vaporPool: Could not execute prepare-frontend goal.: Failed to install Node: Could not extract the Node archive: Could not extract archive: 'C:\Users\vadim\.vaadin\node-v20.15.0-win-x64.zip': zip END header not found -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Process finished with exit code 1

The error disappeared when I unchecked profiles-production. Is this normal behavior?

It looks like there was a failure downloading and unzipping node. Try to delete C:\Users\vadim.vaadin\node-v20.15.0-win-x64.zip (if present) and rerun the command.
If it happens again, try to verify that the downloaded file is not corrupted

If you disable the production profile, the plugin is not executed, since you do not have it configured in the main build section .

It worked, the file is node-v20.15.0-win-x64.zip rebooted and the build went through without errors. Thank you so much for your help!