我在pom中使用了以下插件,并根据需要配置了settings.xml。我可以下载fromDir属性中提到的文件。但是,如果fromDir中有一个文件夹,它将无法下载资源。
例如:
testdir
-file1
-folder1
-file1
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>downloadFilesInShare</id>
<phase>compile</phase>
<goals>
<goal>download</goal>
</goals>
<configuration>
<serverId>${wagon.serverId}</serverId>
<url>${wagon.url}</url>
<skip>${wagon.skip}</skip>
<fromDir>${wagon.fromDir}</fromDir>
<toDir>${wagon.toDir}</toDir>
</configuration>
</execution>
</executions>
<inherited>false</inherited>
</plugin>
The error message shown is Error handling resource: smb://<path>/test directory must end with '/' -> [Help 1]
Could you anyone suggest on how to resolve this issue ?