Since some time I set up new Java projects with Maven. Additionally I migrated some old ones to Maven. The main issue was dependency handling and building. No more manual writting/copying of Ant build.xml’s. This works well as long you need libraries/artefacts that can be found in maven repository and/or the ones not available are your own. In the latter case they reside in your local repository and are accessible by other projects. Up until now this worked well since such dependencies only existed inside one project and could be resolved. However in the OpenSource world there comes a time where this is no longer possible. This happened, when I wanted to use ch.sahits.sahitsUtils in my game project OpenPatrician. The logical conclusion was to publish the artefact to a maven repository. This however proved a little more difficult. (weiterlesen …)
Archiv für September 2011
Normally you would not even have to bother with this; imagine you have an application that uses a FilenameFilter to retrieve some resource from within your project. Say you want to load all image files in a specific location that conform to “/images/imagePrefix*_imageSuffix.png”. To create a FilenameFilter to retrieve a list of all file names that conform to that pattern is not that difficult. So you have an application that runs happily ever after … until you create a jar file from your project.