Skip to content
Advertisement

Tag: maven-3

Maven error: Could not find or load main class And Unable to Edit System Variables

I have Maven installed, and it was working fine yesterday, however now it is displaying the infamous (Maven error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher) error… In other solutions, it seems that the system variable needs to be edited from M2_HOME to M3_HOME. Yet, I am unable to edit my system environment variables (also pictured). Any suggestions for

Can’t run Maven 3.6.3 on JDK7

According to the Maven release history, it should be possible to run any recent version of Maven (at the time of writing anyway) on JDK 7. However, when I try to do so on my Ubuntu 21.04 machine, I get an error: java.lang.UnsupportedClassVersionError: com/google/inject/Module : Unsupported major.minor version 52.0. It happens even while running mvn without any parameters in a

java.lang.ClassNotFoundException: org.eclipse.jetty.Server

I am trying to run a maven project when I run mvn install everything is ok I got build success qnd when I tried to lunch the project I got the following exception: and when I run mvn dependency:tree I got the following results: and this is my pom.xml file : so any idea how to fix this problem !!!!

Maven build fails ONLY when run with jenkins

I have a Java project that is committed to GitHub. The project consists of 3 modules. I have configured the Jenkins Workflow Multibranch Pipeline plugin to build the 3 modules. Maven builds the first 2 modules with no problem. But on the third module I get the following error: I have red that there may be a problem with the

Maven spring boot run debug with arguments

Usually I’m running my Spring Boot application with command: I want to set custom port to debug, so I can connect from eclipse. When I add arguments from example https://docs.spring.io/spring-boot/docs/1.1.2.RELEASE/maven-plugin/examples/run-debug.html it works but other arguments like server.port or path.to.config.dir are no longer recognized and I get exception like: Question: How I can run with all arguments? Answer The behavior and

MuTect install: GATK-protected: maven: Java-compile-error

I’m trying to install mutect, and as directed in the README.md, I’ve git cloned gatk-protected and tried to do ‘mvn -Ddisable.queue install’. But I get the following issue. I’ve java 1.7 and maven 3.3.3. I followed the readme file present here. Could anyone please help in resolving the issue? Answer The README.md for mutect instructs to git reset –hard 3.1

Advertisement