Home » Tag Archives: Apache Maven (page 6)

Tag Archives: Apache Maven

Spring JPA Data + Hibernate + MySQL + Maven

spring-data-logo

Development of web-applications with the help of Spring MVC implies creation of several logical layers of architecture. One of the layers is a DAO (Repository) layer. It is responsible for communication with a database. If you developed the DAO layer at least once, you should know that it involves a lot of boilerplate code. A Spring Data take a part ...

Read More »

Accessing An Artifact’s Maven And SCM Versions At Runtime

apache-maven-logo

You can easily tell Maven to include the version of the artifact and its Git/SVN/… revision in the JAR manifest file and then access that information at runtime via getClass().getPackage.getImplementationVersion(). (All credit goes to Markus Krüger and other colleagues.) Include Maven artifact version in the manifest (Note: You will actually not want to use it, if you also want to ...

Read More »

Running Solr with Maven

apache-solr-logo

Running Solr with Maven Solr is an open source search server which is built by using the indexing and search capabilities of Lucene Core, and it can be used for implementing scalable search engines with almost any programming language. Even though Solr has many advantages, setting up a a development environment is not one of them. This blog entry describes ...

Read More »

Spring Security with Maven

apache-maven-logo

1. Overview This article will explain how to setup Spring Security with Maven and will go over specific use-cases of using Spring Security dependencies. The latest Spring Security releases can be found on Maven Central. This is a followup to the previous Spring with Maven article, so for non-security Spring dependencies, that’s the place to start.       2. ...

Read More »

Maven Release to Nexus

apache-maven-logo

1. Overview In the previous article of this series, we set up a deployment process with Maven to Nexus. In this article, we’ll configure the Release Process with Maven – both in the pom of the project as well as in a Jenkins job. 2. Repository in the pom In order for Maven to be able to release to a ...

Read More »

Maven Deploy to Nexus

apache-maven-logo

1. Overview In a previous article, I discussed how a Maven project can locally install a third party jar that has not yet been deployed on Maven central (or on any of the other large and publicly hosted repositories). That solution should only be applied in small projects where installing, running and maintaining a full Nexus server may be overkill. ...

Read More »

When Maven Dependency Plugin Lies

apache-maven-logo

Problem: We had an integration test which creates a spring ClassPathXmlApplicationContext and while doing so the test blew up with a NoSuchMethodError. It turned out that we had conflicting versions of dependencies on Spring artifacts. This in itself is not an unusual problem – such problems are addressed with the maven dependency plugin using the verbose option. However, what do you do ...

Read More »

Install local jar with Maven

apache-maven-logo

1. The Problem and the options Maven is a very versatile tool and its available public repositories are second to none. However there will always be an artifact that is either not hosted anywhere, or the repository where it is hosted is risky to depend on, as it may not be up when you need it. When that happens, there ...

Read More »

Spring with Maven

spring-interview-questions-answers

1. Overview This tutorial will discuss how to setup Spring with Maven and will go over specific usecases of using Spring dependencies. The latest Spring releases can be found on Maven Central. 2. Basic Maven Spring Dependencies Spring was designed to be modular and flexible – the basic Spring container can be used in a variety of scenarios, without including ...

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