You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2022/08/12 14:09:39 UTC

[sling-maven-plugin] branch master updated: SLING-11535 Deprecate OBR related goals (#12)

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-maven-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 4a5a961  SLING-11535 Deprecate OBR related goals (#12)
4a5a961 is described below

commit 4a5a9619572c437d8208447a0f713d55fae59136
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Fri Aug 12 16:09:35 2022 +0200

    SLING-11535 Deprecate OBR related goals (#12)
---
 .../org/apache/sling/maven/bundlesupport/AbstractBundleDeployMojo.java  | 1 +
 .../java/org/apache/sling/maven/bundlesupport/BundleDeployFileMojo.java | 2 ++
 .../java/org/apache/sling/maven/bundlesupport/BundleDeployMojo.java     | 2 ++
 3 files changed, 5 insertions(+)

diff --git a/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleDeployMojo.java b/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleDeployMojo.java
index 52baa64..3476d9b 100644
--- a/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleDeployMojo.java
+++ b/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleDeployMojo.java
@@ -37,6 +37,7 @@ import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugins.annotations.Parameter;
 
+@Deprecated
 abstract class AbstractBundleDeployMojo extends AbstractBundleRequestMojo {
 
     /**
diff --git a/src/main/java/org/apache/sling/maven/bundlesupport/BundleDeployFileMojo.java b/src/main/java/org/apache/sling/maven/bundlesupport/BundleDeployFileMojo.java
index 5d5722a..da787e4 100644
--- a/src/main/java/org/apache/sling/maven/bundlesupport/BundleDeployFileMojo.java
+++ b/src/main/java/org/apache/sling/maven/bundlesupport/BundleDeployFileMojo.java
@@ -30,7 +30,9 @@ import org.apache.maven.plugins.annotations.Parameter;
  * to an OSGi Bundle Repository accepting the bundle. The plugin uses
  * a <em>multipart/format-data</em> POST request to just post the file to
  * the URL configured in the <code>obr</code> property. 
+ * @deprecated Use the OBR goals from the <a href="https://felix.apache.org/documentation/_attachments/components/bundle-plugin/index.html">maven-bundle-plugin</a> instead.
  */
+@Deprecated
 @Mojo(name="deploy-file", requiresProject= false)
 public class BundleDeployFileMojo extends AbstractBundleDeployMojo {
 
diff --git a/src/main/java/org/apache/sling/maven/bundlesupport/BundleDeployMojo.java b/src/main/java/org/apache/sling/maven/bundlesupport/BundleDeployMojo.java
index 5265209..221ccc2 100644
--- a/src/main/java/org/apache/sling/maven/bundlesupport/BundleDeployMojo.java
+++ b/src/main/java/org/apache/sling/maven/bundlesupport/BundleDeployMojo.java
@@ -32,7 +32,9 @@ import org.apache.maven.project.MavenProject;
  * This method posts the bundle built by maven to the OSGi Bundle Repository.
  * The plugin uses a <em>multipart/format-data</em> POST request to just post the file to
  * the URL configured in the <code>obr</code> property.
+ * @deprecated Use the OBR goals from the <a href="https://felix.apache.org/documentation/_attachments/components/bundle-plugin/index.html">maven-bundle-plugin</a> instead.
  */
+@Deprecated
 @Mojo(name = "deploy", defaultPhase = LifecyclePhase.DEPLOY)
 public class BundleDeployMojo extends AbstractBundleDeployMojo {