Skip to content
Advertisement

Tag: maven

cannot access org.apache.commons.pool2.impl.GenericObjectPoolConfig class file for org.apache.commons.pool2.impl.GenericObjectPoolConfig not found

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 libraries to the classpath for commons-pool v2.0 The Apache Commons Pool open source software library provides an object-pooling API and a number of object pool

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 I force Maven to look first

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 where they worked just fine with JDK7. Anything that

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: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not

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 1 jar file (MainModule-version.jar), which would contain the other (Module1

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 Spring Boot this will solve your problem: Reference Guide | Spring Boot

Advertisement