summaryrefslogtreecommitdiffstats
path: root/archiva-cli
diff options
context:
space:
mode:
Diffstat (limited to 'archiva-cli')
-rw-r--r--archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java b/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java
index 7fc1a2c37..f0ef555ce 100644
--- a/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java
+++ b/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java
@@ -164,7 +164,7 @@ public class ArchivaCli
throws ConsumerException, MalformedURLException
{
ManagedRepository repo = new ManagedRepository();
- repo.setId( "cliRepo" );
+ repo.setId( new File( path ).getName() );
repo.setName( "Archiva CLI Provided Repo" );
repo.setLocation( path );