-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
When running site:deploy in a multi module project, the files get prepended with at .// when uploading.
Which is causing the files not to be exposed via the S3 bucket.
Project structure
My project structure is like this.
pom.xml
modules/module1/pom.xml
modules/module2/pom.xml
Steps to reproduce.
- Create a maven structure like above
- Run
mvn site:site site:deploywith the s3 wagon - Open the site from the AWS console, or directly on the s3 web bucket
Log output from the wagon
When running mvn site:deploy from the parent pom
Putting child element /<checkout>/<projectname>/target/site/apidocs/deprecated-list.html to .//apidocs/deprecated-list.html
Mime type of .//apidocs/deprecated-list.html is text/html according to build-in types
Uploading file /<checkout>/<projectname>/target/site/apidocs/deprecated-list.html to key <projectname>/.//apidocs/deprecated-list.html in S3 bucket <bucketname>
Uploading: .//apidocs/deprecated-list.html to s3://<bucketname>/<projectname>/
When running mvn site:deploy directly from one of the modules, this works fine.
Putting child element /<checkout>/<projectname>/modules/model/target/site/apidocs/deprecated-list.html to modules/model/apidocs/deprecated-list.html
Mime type of modules/model/apidocs/deprecated-list.html is text/html according to build-in types
Uploading file /<checkout>/<projectname>/modules/model/target/site/apidocs/deprecated-list.html to key <projectname>/modules/model/apidocs/deprecated-list.html in S3 bucket <bucketname>
Uploading: modules/model/apidocs/deprecated-list.html to s3://<bucketname>/<projectname>/
Notice the .// in the path on the multi module site:deploy
Error messages
I get theese error messages when trying to access the files.
This get transfered to s3, so the URL contains /.// in the keys, which is causing this error when clicking on the link in the S3 console.
<Error><Code>SignatureDoesNotMatch</Code>
...
</Error>In the S3 website i get this error on all resources in the /./ folder.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>22883093DA04FFC9</RequestId>
<HostId>
X3LJmBjka/2RBwtcEFZg1i26LZxFJn7a7v8aoG3CL+FmhiKODNuOjYMINA35lmYm
</HostId>
</Error>Metadata
Metadata
Assignees
Labels
No labels