Brian’s Stuff

Stuff I don’t want to forget (again!)

Tag archive for ‘maven’

Déjà Vu – Using the Maven Assembly Plugin correctly

If you want to create an archive (.zip, .tar.gz, etc.) file as part of a Maven 2 build you need to use the Assembly Plug-in. Furthermore, if you want to install it into your local repository or deploy it to a remote repository you will need the assistance of the Builder Helper Plug-in. But if [...]

Using self-signed certificates to protect an Archiva repository

I have deployed a Maven repository using Archiva and protect it using user name and password authentication. I don’t really have much intellectual property worth protecting (yet!) but I decided that I really should be protecting the transport layer using SSL anyway. Being cheap I also decided to use a self signed certificate so I [...]

Testing @Configurable using the Maven Surefire plugin

I am using the @Configurable annotation to inject dependencies using AspectJ load time weaving and I still want to be able to unit test my code using the Maven Surefire plugin. The following plugin configuration ensures the spring-agent dependency downloaded to my local Maven repository and configures the command line for the JVM. <plugin> <groupId>org.apache.maven.plugins</groupId> [...]

LDAP Maven Plugin 1.0 Released

The LDAP Maven Plugin is a plugin for the Maven 2 build automation tools that allows LDIF data to be uploaded to a LDAP directory server in preparation for test case execution. The plugin also provides goals to download the contents of the repository in either LDIF or DSML format for verification after test cases [...]

Switching to SLF4J

After years of fanatical devotion I have decided to cast aside Jakarta Commons Logging (JCL) in favour of Simple Logging Facade for Java (SLF4J).