I’m writing a daemon for getting servers stats for some game. In compilation I’ve get a message: cannot access org.apache.commons.pool2.impl.GenericObjectPoolConfig class file for org.apache.commons.pool2.impl.GenericObjectPoolConfig not found At this line of code: Answer Add the required librarie…
Tag: maven
How do I tell Spring Boot which main class to use for the executable jar?
My project has more than one class with a main method. How do I tell the Spring Boot Maven plugin which of the classes it should use as the main class? Answer Add your start class in your pom: or
Maven ignores local repository
I’m trying to use jackson at a json project. And Maven is ignoring my local repository (where I have the library already set, from a previous project) and downloading from codehaus repo. The catch is that my workplace has blocked access to external repos, so I must use local repository for this. How do …
How to work around the stricter Java 8 Javadoc when using Maven
You’ll quickly realize that JDK8 is a lot more strict (by default) when it comes to Javadoc. (link – see last bullet point) If you never generate any Javadoc then of course you’ll not experience any problems but things like Maven release process and possibly your CI builds will suddenly fail…
Failed to start service jboss.persistenceunit: org.hibernate.service.UnknownServiceException
I would like to ask if somebody could help to resolve this problem because I’m stuck with it and I don’t know where the problem could be. Until now I developed my application under Glassfish Server 4. Now I deceided to change my server for WildFly and I edited some configs to be able to run it on …
Plugin org.apache.maven.plugins:maven-compiler-plugin or one of its dependencies could not be resolved
I’m having some issues to configure properly my eclipse to work with maven. I create a new project, this one is correctly build with maven in command line (mvn install), but in Eclipse I got this error: CoreException: Could not get the value for parameter compilerId for plugin execution default-compile:…
How to configure Maven shade plugin in a multi-module project?
I have been trying to get jar using Maven Shade Plugin, but I still don’t get a success. This is my project structure: Module1 (pom.xml): Module2 (pom.xml): MainModule (pom.xml): According this code I get 2 jar-files (Module1-version.jar and Module2-version.jar). But it is not what I want. I wish to get…
Unable to Build using MAVEN with ERROR – Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
I have been trying to build a code using maven. But I am stuck with an error. The code is available on this github repo. google-play-crawler My system configurations as shown by maven is followning: Following is the Maven trace for the error: Here is the pom.xml. Answer Your Maven is reading Java version as 1…
Failed to load Main-Class manifest attribute while running java -jar
I have successfully built my Spring MVC project with mvn clean package by following this tutorial. Now I am trying to run the service with: But I get this error: Failed to load Main-Class manifest attribute from target/gs-serving-web-content-0.1.0.jar Am I missing something? Answer If you are working with Spr…
SEVERE: Context [/example] startup failed due to previous errors
I’m new at Java EE + Spring + Hibernate + Maven combination. Trying to make a simple project with tomcat 6.0. Our project just fine, no problem with debugging. But when i’m trying to run the server, it gives me “Error listenerStart” all the time. I searched all around the web for 3 day…