public void upload(final InputStream in,String artifact,String version,String fileName,Properties props) throws IOException {
  props.put(FILE_NAME_PROPERTY,fileName);
  props.put(VERSION_PROPERTY,version);
  props.put(ARTIFACT_PROPERTY,artifact);
  storeProperties(artifact,version,props);
  try (OutputStream out=newOutputStream(getArtifact(artifact,version,fileName))){
    IOUtils.copyLarge(in,out);
  }
  finally {
    in.close();
  }
}

public void upload ( final InputStream in , String artifact , String version , String fileName , Properties props ) throws IOException { props . put ( FILE_NAME_PROPERTY , fileName ) ; props . put ( VERSION_PROPERTY , version ) ; props . put ( ARTIFACT_PROPERTY , artifact ) ; storeProperties ( artifact , version , props ) ; try ( OutputStream out = newOutputStream ( getArtifact ( artifact , version , fileName ) ) ) { IOUtils . copyLarge ( in , out ) ; } finally { in . close ( ) ; } }
uploads artifact into the repository .
