in src/main/java/org/apache/openejb/tools/release/cmd/SnapshotfreeBuild.java [31:63]
public static void main(final String... args) throws Exception {
// TODO Look for gpg on the path, report error if not found
final File home = new File(System.getProperty("user.home"));
final File repository = Files.file(home, ".m2", "repository", "org", "apache", "openejb");
final List<File> snapshots = Files.collect(repository, ".*SNAPSHOT.*");
for (final File snapshot : snapshots) {
if (!snapshot.isFile()) continue;
if (!snapshot.delete()) {
System.out.println("Cannot delete snapshot: " + snapshot.getAbsolutePath());
}
}
final String branch = Release.branches + Release.openejbVersionName;
final File dir = new File(Release.workdir);
Files.mkdir(dir);
Exec.cd(dir);
Exec.exec("svn", "co", branch);
Exec.cd(new File(dir + File.separator + Release.openejbVersionName));
Exec.export("MAVEN_OPTS", Release.mavenOpts);
Exec.exec("mvn",
"-Dmaven.test.skip=true",
"-DfailIfNoTests=false",
"clean",
"install"
);
}