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
Tag: maven-3
Cannot resolve method ‘combinations’ in ‘Sets’
I was trying to build a project in Intellij-idea with Maven and got a error saying that “Cannot resolve method ‘combinations’ in ‘Sets’ The code where the error is showing is here : The imports im using : I have guava dependency in the pom.xml, tried putting this dependency but it doesn’t work: Image with the error when i try
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
How to associate artefacts under one business version in Nexus when every module has specific version?
It is probably not a good practise in this case, because the problem would be solved by unifying the versions of all artefacts, but I am interested in a possible solution for this case. I have one git repository: artefact -> 1.0.0 second git repository: artefact -> 1.3.0 third git repository: artefact -> 2.0.0 These artefacts go into nexus release
unable to create java package in maven project imported in Intellij
I’ve imported a maven project into Intellij and added a module to the src directory. But now I discovered that I cannot add a java package to new directory as I can with other projects, i.e., whenever I right click on the newly added directory, Intellij does not give me the possibility to add a java package. It would seem
Specifying Java version in maven – differences between properties and compiler plugin
I’m not very experienced with Maven and while experimenting with multi-module project I started wondering how can I specify Java version for all my child modules in parent Maven pom. Until today I was using just: …but when researching I found that you can also specify Java version in Maven compiler plugin, like that: And then wrap this into plugin
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