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:04:41 UTC
[sling-maven-plugin] 01/01: SLING-11535 Deprecate OBR related goals
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch feature/deprecate-obr-goals
in repository https://gitbox.apache.org/repos/asf/sling-maven-plugin.git
commit 9a2e561e337fb18e26fc78550ac6c386eea1f4d6
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Fri Aug 12 16:04:35 2022 +0200
SLING-11535 Deprecate OBR related goals
---
.../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 {