protected File createArtifactJarFile(Class<?> cls, Manifest manifest) throws IOException {
return createArtifactJarFile(cls, cls.getSimpleName(),
String.format("1.0.%d-SNAPSHOT", System.currentTimeMillis()), manifest);
}
protected File createArtifactJarFile(Class<?> cls, String name,
<BUG>String version, Manifest manifest) throws IOException {
File tmpJarFolder = TMP_FOLDER.newFolder();
LocationFactory locationFactory = new LocalLocationFactory(tmpJarFolder);
Location deploymentJar = AppJarHelper.createDeploymentJar(locationFactory, cls, manifest);
File appJarFile = new File(tmpJarFolder, String.format("%s-%s.jar", name, version));
</BUG>
try {

protected File createArtifactJarFile(Class<?> cls, Manifest manifest) throws IOException {
return createArtifactJarFile(cls, cls.getSimpleName(),
String.format("1.0.%d-SNAPSHOT", System.currentTimeMillis()), manifest);
}
protected File createArtifactJarFile(Class<?> cls, String name,
String version, Manifest manifest) throws IOException {
Location deploymentJar = ARTIFACT_CACHE.getUnchecked(new ArtifactJarInfo(cls, manifest));
File appJarFile = new File(TMP_FOLDER.newFolder(), String.format("%s-%s.jar", name, version));
try {
