Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi module site deploy #2

Open
JesperTerkelsen opened this issue Dec 12, 2012 · 1 comment
Open

Multi module site deploy #2

JesperTerkelsen opened this issue Dec 12, 2012 · 1 comment

Comments

@JesperTerkelsen
Copy link

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.

  1. Create a maven structure like above
  2. Run mvn site:site site:deploy with the s3 wagon
  3. 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>
@jiaqi
Copy link
Collaborator

jiaqi commented Jan 24, 2013

I couldn't recreate the problem with my other multi-project "doorman"

Putting child element /Users/jguo/Projects/CG/doorman/target/site/apidocs/allclasses-frame.html to apidocs/allclasses-frame.html
Mime type of apidocs/allclasses-frame.html is text/html according to build-in types
Uploading file /Users/jguo/Projects/CG/doorman/target/site/apidocs/allclasses-frame.html to key projects/doorman/apidocs/allclasses-frame.html in S3 bucket www.cyclopsgroup.org
Uploading: apidocs/allclasses-frame.html to s3://www.cyclopsgroup.org/projects/doorman

Can you please tell me a little more about your package, what is the log before "Putting child element "(the line with "which is a noop"), can I see the full log. And what does the tag looks like in your pom? Is there a way I can check out your package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants