Home » Tag Archives: Apache Maven

Tag Archives: Apache Maven

Geb Gems: Running Geb Spock tests with Maven

apache-maven-logo

Geb is framework which makes it easy to create functional tests for your application. Since you can use Groovy, Spock and the elegance of the JQuery selector, you can setup solid functional test very easy. In this blogpost we will make a simple test which will test a functional part of the JDriven website. We will start our test with configuring the ...

Read More »

Creating a DSL for AWT’s Robot

apache-maven-logo

The Java SDK ships with the class java.awt.Robot that allows the automation of keyboard and mouse input as well as the creation of screen captures. When you want to write a small test application that simulates user input or you just want to automate the input of some recurring text, this features comes in handy. But you do not want ...

Read More »

Automatic promotion of artifacts to Maven Central from Gradle

apache-maven-logo

Quick tutorial how to promote/release artifacts in a Gradle project to Maven Central, without clicking in the Nexus GUI with Gradle Nexus Staging Plugin. Introduction Maven Central (aka The Central Repository) is (probably) the world’s largest set of open source artifacts used by Java and JVM-based projects. It was founded by the creators of Apache Maven and it has been ...

Read More »

Prevent ‘No plugin found’ in multi-module maven

apache-maven-logo

Defining a maven plugin on a submodule in a multi-module maven project can give us a ‘No plugin found’ error. Especially if we have a multi-module project and we want to apply a maven plugin in only one specific module this error occur pretty often. Let’s say we have a multi-module root pom which looks like this.       ...

Read More »

Java EE7 and Maven project for newbies – part 8

java-interview-questions-answers

Part #1, Part #2, Part #3, Part #4, Part #5, Part #6, Part #7  Part #8 It’s been a long time since my last post, for this series of  tutorials. Its time to resume and add new features on our simple project. As I have mentioned in previous posts, this series of posts is targeting mostly Maven and JavaEE7 newcomers, ...

Read More »

Setup Local Nexus Repository and Deploying WAR File from Maven

apache-maven-logo

Maven Central serves as the central repository manager where binary artifacts are uploaded by different teams/companies/individuals and shared with rest of the world. Much like github, and other source code repositories, which are very effective for source code control, these repository managers also act as a deployment destination for your own generated binary artifacts. Setting up a local repository manager has several ...

Read More »

Maven Tip: All about executable jars

apache-maven-logo

Maven Tip: All about executable jars An executable jar is an extremely useful artefact when it comes to distributing your code.  It means that, as long as Java is installed on the client machine, on Windows and Mac at least, your users can just double click the jar and program will launch. Alternatively on the command line the program can ...

Read More »

Separating Integration Tests from Unit Tests Using Maven Failsafe & JUnit @Category

apache-maven-logo

Why Unit Tests Should Run Separately From Integration Tests TDD at the Unit Testing level is fairly straight-forward, since classes in unit testing either do not have complex dependencies, or you mock-out the dependencies with a mocking framework (ex. Mockito). However, TDD quickly becomes difficult when we get to Integration Testing. Integration Testing is basically testing a component with some or all ...

Read More »

Caching Strategy Reminder for Maven-Based Docker Builds

apache-maven-logo

My local development feedback loop between code change and runnable container was annoyingly long on a Maven-based project I was recently working on. I wanted to speed things up. The scenario was something like this:             touch/change some source code docker build maven downloads the world maven compiles my project docker run touch/change some source ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close