ArtifactRepository localRepository =
new DefaultArtifactRepository( "local", url, new DefaultRepositoryLayout() );
ArtifactFactory artifactFactory = new DefaultArtifactFactory();
DefaultArtifactHandler javaSourceArtifactHandler = new DefaultArtifactHandler( "java-source" );
setVariableValueToObject( javaSourceArtifactHandler, "extension", "jar" );
DefaultArtifactHandler javadocArtifactHandler = new DefaultArtifactHandler( "javadoc" );
setVariableValueToObject( javadocArtifactHandler, "extension", "jar" );
Map artifactHandlers = new HashMap();
artifactHandlers.put( "java-source", javaSourceArtifactHandler );
artifactHandlers.put( "javadoc", javadocArtifactHandler );