You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:16:32 UTC
[sling-maven-launchpad-plugin] 20/29: removing unused code
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag maven-launchpad-plugin-2.1.2
in repository https://gitbox.apache.org/repos/asf/sling-maven-launchpad-plugin.git
commit 802751bcf4c90705c164993fd89cf17fc06e2d6d
Author: Justin Edelson <ju...@apache.org>
AuthorDate: Tue Jan 17 23:19:19 2012 +0000
removing unused code
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/maven/maven-launchpad-plugin@1232642 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 16 ------------
.../maven/projectsupport/ArtifactDefinition.java | 30 ++--------------------
2 files changed, 2 insertions(+), 44 deletions(-)
diff --git a/pom.xml b/pom.xml
index 60f01af..f7220d6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -142,22 +142,6 @@
</exclusion>
</exclusions>
</dependency>
- <!-- using utility classes from this plugin -->
- <dependency>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.3</version>
- <exclusions>
- <exclusion>
- <artifactId>maven-project</artifactId>
- <groupId>org.apache.maven</groupId>
- </exclusion>
- <exclusion>
- <artifactId>maven-artifact-manager</artifactId>
- <groupId>org.apache.maven</groupId>
- </exclusion>
- </exclusions>
- </dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
diff --git a/src/main/java/org/apache/sling/maven/projectsupport/ArtifactDefinition.java b/src/main/java/org/apache/sling/maven/projectsupport/ArtifactDefinition.java
index 6af4cb0..edb4271 100644
--- a/src/main/java/org/apache/sling/maven/projectsupport/ArtifactDefinition.java
+++ b/src/main/java/org/apache/sling/maven/projectsupport/ArtifactDefinition.java
@@ -16,12 +16,12 @@
*/
package org.apache.sling.maven.projectsupport;
-import org.apache.maven.artifact.Artifact;
+import static org.apache.sling.maven.projectsupport.BundleListUtils.*;
+
import org.apache.maven.model.Dependency;
import org.apache.sling.maven.projectsupport.bundlelist.v1_0_0.Bundle;
import org.codehaus.plexus.util.StringUtils;
import org.codehaus.plexus.util.xml.Xpp3Dom;
-import static org.apache.sling.maven.projectsupport.BundleListUtils.*;
/**
* The definition of an artifact.
@@ -48,24 +48,6 @@ public class ArtifactDefinition {
public ArtifactDefinition() {
}
-
- public ArtifactDefinition(Artifact artifact, int startLevel) {
- this.groupId = artifact.getGroupId();
- this.artifactId = artifact.getArtifactId();
- this.type = artifact.getType();
- this.version = artifact.getVersion();
- this.classifier = artifact.getClassifier();
- this.startLevel = startLevel;
- }
-
- public ArtifactDefinition(Dependency dependency, int startLevel) {
- this.groupId = dependency.getGroupId();
- this.artifactId = dependency.getArtifactId();
- this.type = dependency.getType();
- this.version = dependency.getVersion();
- this.classifier = dependency.getClassifier();
- this.startLevel = startLevel;
- }
public ArtifactDefinition(Bundle bundle, int startLevel) {
this.groupId = bundle.getGroupId();
@@ -230,14 +212,6 @@ public class ArtifactDefinition {
return dep;
}
- public static Bundle toBundle(Artifact artifact, int startLevel) {
- return new ArtifactDefinition(artifact, startLevel).toBundle();
- }
-
- public static Bundle toBundle(Dependency dependency, int startLevel) {
- return new ArtifactDefinition(dependency, startLevel).toBundle();
- }
-
public static Dependency toDependency(Bundle bundle, String scope) {
return new ArtifactDefinition(bundle, 0).toDependency(scope);
}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.