diff --git a/archiva-modules/plugins/stage-repository-merge/pom.xml b/archiva-modules/plugins/stage-repository-merge/pom.xml index 4c0ee37a2..6532835c4 100644 --- a/archiva-modules/plugins/stage-repository-merge/pom.xml +++ b/archiva-modules/plugins/stage-repository-merge/pom.xml @@ -67,7 +67,7 @@ org.slf4j - slf4j-jdk14 + slf4j-log4j12 test 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 ab7bd991c..5558c4d26 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 @@ -148,6 +148,8 @@ public class Maven2RepositoryMerger File targetArtifactFile = new File( targetRepoPath, artifactPath ); + log.debug( "artifactPath {}", artifactPath ); + int lastIndex = artifactPath.lastIndexOf( File.separatorChar ); File targetFile = new File( targetRepoPath, artifactPath.substring( 0, lastIndex ) ); diff --git a/archiva-modules/plugins/stage-repository-merge/src/test/resources/log4j.xml b/archiva-modules/plugins/stage-repository-merge/src/test/resources/log4j.xml new file mode 100644 index 000000000..c07e3a4e7 --- /dev/null +++ b/archiva-modules/plugins/stage-repository-merge/src/test/resources/log4j.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + +