Map<String, String> inputMetadata = new HashMap<String, String>( 3 );
inputMetadata.put( "buildNumber", "1" );
inputMetadata.put( "author", "alecharp" );
inputMetadata.put( "jenkins_version", "1.486" );
MetadataAddRequest metadataAddRequest = new MetadataAddRequest();
metadataAddRequest.setGroupId( "commons-cli" );
metadataAddRequest.setArtifactId( "commons-cli" );
metadataAddRequest.setVersion( "1.0" );
metadataAddRequest.setMetadatas( inputMetadata );
browseService.importMetadata( metadataAddRequest, testRepoId );
Map<String, String> metadatas =
toMap( browseService.getMetadatas( "commons-cli", "commons-cli", "1.0", testRepoId ) );