Running Sonatype Nexus in Tomcat 7.0, Tomcat blocking PUT requests

I was previously running Nexus 1.8 on OSX and uploading jars for releases without any issues. The OSX box died, so I moved to a FreeBSD server. Since Nexus doesn’t have binaries for FreeBSD, I decided to run it in my Tomcat container. Now, I have set up Nexus 1.9 in Tomcat 7.0 on FreeBSD. … Read more

Modifying Maven POM to Get File Locally

My mvn build is trying to grab the following file from an online repository. http://BAD_WEBSITE/repositories/smpsnapshots/org/jboss/aop/jboss-aop/ 2.0.0-SNAPSHOT/maven-metadata.xml However, that URL no longer exists. I have the maven-metadata.xml file saved locally, but how can I modify my POM file to get the file locally? Here’s where my config file specifies this bad URL to find the file. … Read more

Install Neo4j via Maven

Neo4j says I can install Neo4j via Maven by adding it to my build: <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j</artifactId> <version>1.8.1</version> </dependency> But do I need a build? If so, what should my pom.xml look like? I tried with this: <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>com.webcom.app</groupId> <artifactId>webcom</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>webcom</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> … Read more

apt/maven/npm checksum failure on amazon ec2

I’m recently encountering multiple download checksum failures when booting ec2 machine. This manifests itself with sporadic failures of apt, maven and npm installs. In one case that the pom checksum failed, I found a Fastly Debug message in the file. Notes: I’m using the standard ubuntu 12.04 ec2 image with a user-data script and running … Read more

WebApp won’t compile in CentOS 7 server, but does compile in Windows

I am getting a “resource marked as read-only” error when I try to compile a war file on a CentOS 7 installation. But the same eclipse project does not throw any compilation error on Windows after I zip the project up, transfer it to windows, and then import it into eclipse in windows. I have … Read more

How to configure jenkins on ec2 to run whenever there’s a new build in my project repository

I wanna set a jenkins CI for the first time in a linux EC2 (I’m working from windows). My jobs are in maven. The thing is: how do I set jenkins to detect whenever there’s a new build in my remote ec2 repo, how do I connect them both? I tried to look up online … Read more

How to manage publishing maven settings.xml with artifact repository, mirror and proxy details to CI servers?

Is there an automated process I can rely on, as an organisation’s artifact repository / proxy manager, to publish configuration updates to dependent continous integration servers and developers? For instance, if for some reason, I have to create or move a repository / proxy URL, is there any way to update Jenkins or TeamCity or … Read more