aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins
diff options
context:
space:
mode:
authorBernd Eckenfels <bernd@eckenfels.net>2015-10-13 00:54:04 +0200
committerBernd Eckenfels <bernd@eckenfels.net>2015-10-13 00:54:04 +0200
commit495a7bf95fa56ec7b73fca2f2e94cc7fc61f68c2 (patch)
treea395773563c6472b8420f592fcb242c0bd294e55 /archiva-modules/plugins
parent5d5b0733de195c043ec8b1f733eb1788e1ea750c (diff)
downloadarchiva-495a7bf95fa56ec7b73fca2f2e94cc7fc61f68c2.tar.gz
archiva-495a7bf95fa56ec7b73fca2f2e94cc7fc61f68c2.zip
Remove Sonar Dead Store Issues.
Diffstat (limited to 'archiva-modules/plugins')
-rw-r--r--archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java6
-rw-r--r--archiva-modules/plugins/stage-repository-merge/src/main/java/org/apache/archiva/stagerepository/merge/Maven2RepositoryMerger.java3
2 files changed, 1 insertions, 8 deletions
diff --git a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java
index 6acf622e1..adb1a875e 100644
--- a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java
+++ b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java
@@ -280,12 +280,8 @@ public class Maven3DependencyTreeBuilder
DependencySelector depFilter = new AndDependencySelector( new ExclusionDependencySelector() );
session.setDependencySelector( depFilter );
- LocalRepository localRepo = new LocalRepository( localRepoDir );
session.setLocalRepositoryManager(
- new SimpleLocalRepositoryManager( localRepoDir ) );// system.newLocalRepositoryManager( localRepo ) );
-
- //session.setTransferListener( );
- //session.setRepositoryListener( n );
+ new SimpleLocalRepositoryManager( localRepoDir ) );
return session;
}
diff --git a/archiva-modules/plugins/stage-repository-merge/src/main/java/org/apache/archiva/stagerepository/merge/Maven2RepositoryMerger.java b/archiva-modules/plugins/stage-repository-merge/src/main/java/org/apache/archiva/stagerepository/merge/Maven2RepositoryMerger.java
index 892a461ba..7a974db3c 100644
--- a/archiva-modules/plugins/stage-repository-merge/src/main/java/org/apache/archiva/stagerepository/merge/Maven2RepositoryMerger.java
+++ b/archiva-modules/plugins/stage-repository-merge/src/main/java/org/apache/archiva/stagerepository/merge/Maven2RepositoryMerger.java
@@ -194,9 +194,6 @@ public class Maven2RepositoryMerger
copyFile( sourceArtifactFile, targetArtifactFile );
// pom file copying
- String fileName = artifactMetadata.getProject() + "-" + artifactMetadata.getVersion() + ".pom";
-
- // pom file copying
// TODO need to use path translator to get the pom file path
// String fileName = artifactMetadata.getProject() + "-" + artifactMetadata.getVersion() + ".pom";
//