January 2007

Introducing Maven Enterprise

Quite recently, a maven enterprise project was committed in the apache sandbox which is an alternative to Mergere Maestro.

The two projects glues together components such as Maven, Archiva and Continuum. The blog entry announcing maven enterprise is available here.

Configuring Apache directory listing for your Maven repository

If you have a very simple maven repository somewhere, you'll probably noticed that directory listing is not user-friendly by default. Indeed, by default, apache displays files in a directory with a fixed size column width. As a result, artifacts are not always visible, which is nasty.

If you have this problem, check the documentation for the autoindex mod and in particular the IndexOptions directive. The NameWidth parameter control the width of the file name column in directory listing.

This config will solve the issue:

CODE:
  1. # IndexOptions: Controls the appearance of server-
  2. # generated directory listings.
  3. #
  4. IndexOptions FancyIndexing VersionSort NameWidth=*

Deploying a maven archetype on your corporate repository

The maven archetype is a very interesting functionality if you need to create skeleton project very easily. They are used to create a maven project from scratch. What if you create your own archetype that is not available on the default / central repository?

Hopefully you can pass the remoteRepositories parameter on command line to specify the URL of your corporate repository, something like:

CODE:
  1. mvn archetype:create -DarchetypeGroupId=archetypeGroupId
  2.          -DarchetypeArtifactId=archetypeArtifactId       
  3.          -DarchetypeVersion=archetypeVersion
  4.          -DgroupId=com.mycompany
  5.          -DartifactId=new-project
  6.          -DremoteRepositories=http://repo.mycompany.com

Finally I have my del key

Still poking around with my brand new mac and I quickly found out that I have no del key. What a bad joke! Hopefully there's tons of plugins around that can fix that.

DoubleCommand allows to remap your keyboard. A good way to deal with this is to map SHIFT - backspace to the del key. That way, backspace is a backward delete and shift backspace a forward delete. Cool :)

And if it does not work in your terminal, just read this blog entry to make it work.