I am using eclipse as IDE. When I right click on the project and then click maven update my java version change to 1.5. Here is what I did so far, I followed all the steps listed here http://qussay.com/2013/09/13/solving-dynamic-web-module-3-0-requires-java-1-6-or-newer-in-maven-projects/ I changed “Jav…
Tag: maven
NoClassDefFoundError: org/apache/commons/lang3/StringUtils
I’m trying to run the sample project with this library and I get the following error: I’ve added commons-lang-2.6.jar & commons-lang3-3.1-sources.jar in libs and classpath Main class: I have referred to the following links: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils …
“Could not find acceptable representation” using spring-boot-starter-web
I am trying to use spring-boot-starter-web to create a rest service serving up JSON representations of Java objects. From what I understand this boot-starter-web jar is supposed to handle the conversion to JSON through Jackson automatically but I am instead getting this error. My Controller is this… My …
Lombok and Maven
I’m trying to use Lombok with Maven and VRaptor on IntelliJ but it doesn’t work. I already read some info in stackoverflow but none solved my problem, i already enabled the Annotation Processor in Intellij but still nothing. I tryied to compile it from command-line too (Windows) and didn’t w…
Maven: No sources to compile
I am following the ‘Build Java Projects with Maven’ (https://spring.io/guides/gs/maven/#scratch) and when I run ‘mvn compile’ from /Users/Misha/Desktop/src/main/java/hello, I get this prompt: I have the two java files and the xml file in the hello directory, and I am assuming that I sh…
HTTP Status 500 – Handler processing failed; nested exception is java.lang.NoClassDefFoundError:
I’m trying to integrate external jar file into my project. (mambu-models-V3.8.10.jar) But I receive such error message: root cause: Here is my POM xml: http://maven.apache.org/maven-v4_0_0.xsd”> 4.0.0 com.springapp kapiv2 war 1.0-SNAPSHOT kapi There are a lot of results in google if you search …
JDK8 – Error “class file for javax.interceptor.InterceptorBinding not found” when trying to generate javadoc using Maven javadoc plugin
I am using JDK8 (tried it on my Eclipse workspace with Win x64 u25 JDK + on Linux launched by Jenkins – jdk-8u20-linux-x64, same problem for both). I have multi-module Maven project (I am launching Maven goal “javadoc:aggregate” from a main module with packaging type “pom”). Pom …
Maven Hangs Downloading Inside a Docker Container
I have a gitlab with gitlab ci and a runner all running fine in a CoreOs Machine. All 3 services are running using the following dockerfiles service files and build script: Build Script: CI service: CI-runner service: Ci runner dockerfile: Ci dockerfile is unmodified version of sameersbn/gitlab-ci:5.2.0. when…
Maven child module does not exist
I’m new to Maven. I checked out from SVN a project from a customer with the following structure: the pom.xml right below ‘projectName` (the pom at the top) is building the three modules But when executing mvn clean install from folder projectNameit gives the following error The question is: Should…
java.lang.NoClassDefFoundError: javax/json/Json
I have a simple Java project where I would like to build a Json string. For this, I use javax.json: The project is build with maven, and in the pom I have added these dependencies: Compilation is ok. When I execute the code using that command: The main is in MyClass. I get: on the call to Json.createObjectBui…