//
archives

Java

This tag is associated with 11 posts

Override becomes overload! – something to watch out with Java Generics

Recently I was working on this large project originally written in Java 1.4. In this particular effort we were refactoring parts of the project while moving the source code to Java 6 (introducing Generics) as well as using some of the new libraries available. Everything was going smooth (a little too smooth maybe), until we … Continue reading

Infix SF.net Maven Repository (Plugin)

So I have a couple of projects over at Sourceforge.net; no, not a top 10 project, but a couple of small Java utilities. Choosing Convention over Configuration, all these projects are built with Apache Maven. Now, Maven projects use Maven repositories for getting their repositories as well as deploying their artifacts. This can be a … Continue reading

Reporting Plugin dependencies for Maven 3.x builds

Maven 3 has been out for a bit, and of course with some changes. Other than changing versions of plug-ins and extensions, I think the biggest change has been in the way site reporting plugins are configured. Maven 3 no longer uses /project/reporting/plugins/plugin to configure report plugins. It uses /project/build/plugins/plugin[groupId=”org.apache.maven.plugins” and artifactId=”maven-site-plugin”]/configuration/reportPlugins/plugin or /project/build/pluginManagement/plugins/plugin[groupId=”org.apache.maven.plugins” and … Continue reading

SSH/SFTP unit testing using JUnit

Working on the sfnet-mvnrepo-plugin in Infix there was a need to unit test piece of code which connected to a SFTP site and parsed the directory tree. The easy option of course was to use a specific server with SSH/SFTP enabled, but didn’t want the tests to depend on external environment or resources. So the … Continue reading

Infix is born!

Last week we registered a new project over at SourceForge – MindTree Infix. The project will be a collection of maven plug-ins and skins. So far, we have only set up the ‘infrastructure’, a basic skin and a few pages on the website – http://mvn-infix.sourceforge.net/. Infix does not have to start from the scratch – … Continue reading

About Random Musings

Random Musings is a collection of my personal thoughts, opinions, views and anything else that I find interesting. The views posted here are mine and may not necessarily reflect the views of MindTree Limited (my employer).