Maven error in eclipse (pom.xml) : Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4

You need just to follow those steps: Right Click on your project: Run (As) -> Maven clean Right Click on your project: Run (As) -> Maven install After which, if the build fails when you do Maven Install, it means there is no web.xml file under WEB-INF or some problem associated with it. it really … Read more

How to show scala doc from Java Editor in Eclipse?

When using maven convention, a library is bundled as ‘group.artifact.version.jar’ for binary, ‘group.artifact.version-sources.jar’ for source code and ‘group.artifact.version-javadoc.jar’ for docs. If you don’t see the javadoc, then it means that the ‘-javadoc.jar’ for that artifact is not pulled to local, in your case for the akka artifact. If you right click on the library, you … Read more

Embedding resources (images, sound bits, etc) into a Java project then use those resources

Just put those resources in the source/package structure and use ClassLoader#getResource() or getResourceAsStream() to obtain them as URL or InputStream from the classpath by the full qualified package path. ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream input = classLoader.getResourceAsStream(“/image.gif”); // … Or if it is in the same package as the current class, you can also obtain … Read more