我有一些xml文件,我想将它们上传到我的域名。我能做到的唯一方法是通过端点。我已经配置了maven wagon插件,如下所示
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0</version>
<goals>
<goal>upload</goal>
</goals>
<configuration>
<fromDir>target</fromDir>
<includes>*jssp.xml</includes>
<url> http://mydomain/endpoint?__sessiontoken=admin/admin</url>
</configuration>
</plugin>
我有这个
Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0:upload (default-cli) on project AdobeCampaignUploader: Error handling resource: Access denied to: http://mydomain/endpoint?__sessiontoken=admin/admin/file.xml
如何正确地将此文件发布到远程位置?