Maven deploy to Sonatype Nexus "401 Premission Denied" workaround

My current infrastructure has an instance of Jenkins as the Continuous Integration server and Sonatype Nexus as the repository manager. The POMs for my project and the settings.xml file for maven are configured so that Jenkins can automatically deploy SNAPSHOTs to the Nexus repository but the problem arose when I had a build that went to production and I needed to deploy that pre-built artifact to Nexus’ RELEASE repository. This was easier that going back and checking out the correct versions of the many dependencies.

Configuring Eclipse source directories with maven

When you generate a Java project using maven and then import it into Eclipse, often you want to add extra directories that are treated as source directories. This guide will show you how to do it. First lets look at (a snippet of) the Super POM to see what we get by default: <build> <sourceDirectory>src/main/java</sourceDirectory> <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory> <testSourceDirectory>src/test/java</testSourceDirectory> <resources> <resource> <directory>src/main/resources</directory> </resource> </resources> </build> We can override what we get from here which is probably what you’ll do most of the time; adding another resource directory.

Removing 10 minute screen timeout for Ubuntu Server

The problem My situation is that I run an Ubuntu Server for normal server-like tasks; web server, file server, etc. I decided to install XMBC on it so I could make it into a HTPC because after all, it already had all my media stored on it. Installing XMBC meant that I also had to install Xserver and along with that install, I scored some defaults for screen saver timeout and monitor timeout (all set to 10 minutes) and this really sucks when you’re watching a movie and even 10 minutes the display would turn off unless you gave some input (keyboard, mouse, remote).

Blacklisting a module on Ubuntu Server 11.10 Oneiric Ocelot

This assumes you have vim (the command line text editor) installed. If not, you can use vi or any command line text editor in its place. Change to the modprobe directory: cd /etc/modprobe We need to create a new blacklist file to store our blacklistings in. If there are already other files in this directory, you can reuse one of them but for the sake of separating configuration you’ve made from the out-of-the-box setup, we’ll create a new file.

XenServer 5.6.1 FP1: Mounting a guest VM's hard drive (VDI) on the host

Back story This is a problem that I ran up against because I was running the host machine as a bare host and all the functionality that I needed was in the guest machine. The purpose of this was to insulate myself from changes in hardware and to be able to easily backup the entire server (the guest) so it could be restored from image. This meant that occasionally I’d need to access files on the guest machine’s “hard drive” but it wasn’t running so methods that require networking were out.

Page 7 of 7