You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2018/01/07 18:21:52 UTC
[08/26] commons-release-plugin git commit: Staging other mojos for
use.
Staging other mojos for use.
Project: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/commit/9923a5a3
Tree: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/tree/9923a5a3
Diff: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/diff/9923a5a3
Branch: refs/heads/master
Commit: 9923a5a39a03d70dcefb2b76cdfbef5b294dfabf
Parents: a0b4bc2
Author: Rob Tompkins <ch...@gmail.com>
Authored: Mon Jan 1 11:46:55 2018 -0500
Committer: Rob Tompkins <ch...@gmail.com>
Committed: Mon Jan 1 11:46:55 2018 -0500
----------------------------------------------------------------------
.../CommonsDistributionDetatchmentMojo.java | 3 +-
.../mojos/CommonsDistributionStagingMojo.java | 13 +++++-
.../scm/AssemblyPublicationScmProvider.java | 45 --------------------
.../release/plugin/scm/package-info.java | 17 --------
4 files changed, 13 insertions(+), 65 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/9923a5a3/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetatchmentMojo.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetatchmentMojo.java b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetatchmentMojo.java
index 7cfdb1d..4df4579 100644
--- a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetatchmentMojo.java
+++ b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetatchmentMojo.java
@@ -29,7 +29,6 @@ import org.codehaus.plexus.util.FileUtils;
import java.io.File;
import java.io.FileInputStream;
-import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
@@ -46,7 +45,7 @@ import java.util.Set;
* @author chtompki
* @since 1.0
*/
-@Mojo( name = "detatch-assemblies", defaultPhase = LifecyclePhase.VERIFY, threadSafe = true)
+@Mojo( name = "detatch-distributions", defaultPhase = LifecyclePhase.VERIFY, threadSafe = true)
public class CommonsDistributionDetatchmentMojo extends AbstractMojo {
/**
http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/9923a5a3/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
index 7f9ec67..b4741f2 100644
--- a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
+++ b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
@@ -1,14 +1,25 @@
package org.apache.commons.release.plugin.mojos;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import java.io.File;
-public class CommonsDistributionStagingMojo {
+@Mojo( name = "stage-distributions", defaultPhase = LifecyclePhase.DEPLOY, threadSafe = true)
+public class CommonsDistributionStagingMojo extends AbstractMojo {
@Parameter( defaultValue = "${project.build.directory}/commons-release-plugin", alias = "outputDirectory" )
private File workingDirectory;
@Parameter ( required = true )
private String distScmStagingUrl;
+
+ @Override
+ public void execute() throws MojoExecutionException, MojoFailureException {
+
+ }
}
http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/9923a5a3/src/main/java/org/apache/commons/release/plugin/scm/AssemblyPublicationScmProvider.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/release/plugin/scm/AssemblyPublicationScmProvider.java b/src/main/java/org/apache/commons/release/plugin/scm/AssemblyPublicationScmProvider.java
deleted file mode 100644
index 3f942cb..0000000
--- a/src/main/java/org/apache/commons/release/plugin/scm/AssemblyPublicationScmProvider.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.commons.release.plugin.scm;
-
-import org.apache.maven.scm.ScmFileSet;
-
-import java.io.File;
-
-/**
- * @author chtompki
- * @since 1.0
- */
-public class AssemblyPublicationScmProvider {
-
- private static final String SCM_CHECKOUT_SUBDIRECTORY = "pub-scm";
-
- public static void prepareScmCheckoutDirectory(File pluginWorkingDirectory) {
- StringBuilder pubScmPath = new StringBuilder(pluginWorkingDirectory.getAbsolutePath());
- pubScmPath.append("/");
- pubScmPath.append(SCM_CHECKOUT_SUBDIRECTORY);
- File pubScmDirectory = new File(pubScmPath.toString());
- if (!pubScmDirectory.exists()) {
- pubScmDirectory.mkdirs();
- }
- }
-
- public void checkoutPubScmStagingUrl(String pubScmStagingUrl, File pluginWorkingDirectory) {
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/9923a5a3/src/main/java/org/apache/commons/release/plugin/scm/package-info.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/release/plugin/scm/package-info.java b/src/main/java/org/apache/commons/release/plugin/scm/package-info.java
deleted file mode 100644
index 8767dfc..0000000
--- a/src/main/java/org/apache/commons/release/plugin/scm/package-info.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.commons.release.plugin.scm;
\ No newline at end of file