public void storeProperties(String artifact,String version,Properties props) throws IOException {
  Path propertiesFile=getPropertiesFile(artifact,version);
  Path dir=propertiesFile.getParent();
  if (!Files.exists(dir)) {
    Files.createDirectories(dir);
  }
  try (OutputStream out=new BufferedOutputStream(newOutputStream(propertiesFile))){
    props.store(out,null);
  }
 }

public void storeProperties ( String artifact , String version , Properties props ) throws IOException { Path propertiesFile = getPropertiesFile ( artifact , version ) ; Path dir = propertiesFile . getParent ( ) ; if ( ! Files . exists ( dir ) ) { Files . createDirectories ( dir ) ; } try ( OutputStream out = new BufferedOutputStream ( newOutputStream ( propertiesFile ) ) ) { props . store ( out , null ) ; } }
stores the properties of the artifact .
