Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-677

AddMojo doesn't support adding a directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Auto Closed
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: maven-plugin
    • Labels:
      None

      Description

      It's impossible to add a directory using scm:add goal.
      I have the following (simplified) folder structure under SCM:

      <project_root>/pom.xml
      <project_root>/folder1/file1.txt

      When I try to add a new folder 'folder2' into the working copy using command

      mvn scm:add -Dincludes=folder2

      I get an error:

      Cannot run add command : Exception while executing SCM command. You must provide at least one file/directory to add

      If I specify trailing slash for 'includes', i.e.

      mvn scm:add -Dincludes=folder2/

      I get an error like

      [ERROR] Provider message:
      [ERROR] The svn command failed.
      [ERROR] Command output:
      [ERROR] svn: 'folder2' is not a working copy

      Seems the problem is that ScmFileSet filters out all directories leaving only files

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              olexandra Olexandra
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: