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. „Publishing Artifact to maven repository“ weiterlesen
Monat: September 2011
Access resources in a jar
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.
Creating texture images for metal plating
Colin Litster has a great example of how to create a copper plated roof in his book Blender 2.5 Materials and Textures Cookbook. The the image files of the are available from the publishers website, naturally they are copyright protected, which reduces their usefulness greatly. Furthermore the book gives good details on how to apply the images as textures in Blender, but the information on how to obtain/create the base image is sparse to non existent. Searching the web did not result in any image that would be usable. Therefore I set out to create the images from scratch.