Archive

Archive for August, 2009

Books Summaries – Data Structures & Algorithms, Design Patterns, Java

August 28, 2009 Leave a comment

When preparing for Google and Microsoft interviews two years ago (that was a crazy month!) – I made summaries of some books and materials I was reading:

Advertisements

Maven plugin dependencies

August 16, 2009 Leave a comment

One day I’ve realized that if not specified explicitly – I end up working with some pretty outdated Maven components when compiling Mojos.  Here’s an explicit list one needs to do a basic Mojo development (links follow to APIs and Maven repositories):

<dependency>
    <groupId>org.codehaus.plexus</groupId>
    <artifactId>plexus-container-default</artifactId>
    <version>1.1.0</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>org.codehaus.plexus</groupId>
    <artifactId>plexus-utils</artifactId>
    <version>1.5.15</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>org.apache.maven</groupId>
    <artifactId>maven-plugin-api</artifactId>
    <version>2.2.1</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>org.apache.maven</groupId>
    <artifactId>maven-project</artifactId>
    <version>2.2.1</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>org.apache.maven</groupId>
    <artifactId>maven-model</artifactId>
    <version>2.2.1</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>org.apache.maven</groupId>
    <artifactId>maven-core</artifactId>
    <version>2.2.1</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>org.apache.maven.shared</groupId>
    <artifactId>file-management</artifactId>
    <version>1.2.1</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>org.apache.maven.shared</groupId>
    <artifactId>maven-filtering</artifactId>
    <version>1.0-beta-2</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>org.codehaus.groovy</groupId>
    <artifactId>groovy-all</artifactId>
    <version>1.6.4</version>
    <scope>compile</scope>
</dependency>
Categories: Maven Tags: , ,

Creating a ${folder} on disk

August 16, 2009 Leave a comment

Never thought I’ll ever do that .. is it a sign of what ? Becoming more pragmatic or more lazy ?..

Some script running on the old system (that is about to be nuked very soon) was failing due to ${apache-tomcat} folder missing. Yeah, I’ve introduced a Maven property to store the Tomcat version and it wasn’t filtered there.

When I’ve started to figure out a proper way to add the <filtering> code a sudden idea just stroke me – what if I just create this ${apache-tomcat} folder ?

You need “ant/${apache-ant}/lib/ant.jar” ? You get it!

If Ant can create those folders (which it frequently does when some property goes undefined – I’ve just wrote recently how much I’m allergic to things going wrong silently) – why can’t I do the same if this system is going caput very soon anyway?

So I did and it worked. Oh, well ..

Categories: Maven Tags: ,