M
M
Madi Pagani2021-11-28 06:38:43
Java
Madi Pagani, 2021-11-28 06:38:43

Maven throws an error when compiling a Spring project?

Hello everyone, such a problem created a project in spring and when compiling, it displays an error

, org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210), org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156), org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148), org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117), org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81), org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56), org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128), org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305), org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192), org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105), org.apache.maven.cli.MavenCli.execute(MavenCli.java:957), org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289), org.apache.maven.cli.MavenCli.main(MavenCli.java:193), java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method), java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77), java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.base/java.lang.reflect.Method.invoke(Method.java:568), org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282), org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225), org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406), org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347), org.codehaus.classworlds.Launcher.main(Launcher.java:47)]

here is the pom file
https://paste.ofcode.org/Re4JPiKpBAmyhLDP4db8Gv

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2021-11-28
@prince_pagani

Good afternoon!

I added the most necessary for me by the type of test websockets and react there is nothing superfluous

I have one question - what kind of project are you building, in which you connect the mysql & postgres drivers. Spring Cloud and a bunch of other dependencies. Are you sure there are no extra dependencies?
For example,
Caused by: java.lang.IllegalStateException: Devtools is not supported yet, please remove the related dependency for now.

DevTools for this version is not supported which is why an exception is thrown.
I can safely assume that even if you comment out the DevTools dependency, you will still run into a bunch of other problems, since your pom file seems to have a lot of extra stuff. Maybe. I'm wrong...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question