Closed gehel closed 12 years ago
It looks like it is trying to upload to the repository: serene-collector/collector-webapp
Is that the correct repository?
I'm not really sure ... As this is a module, it should be uploaded in a subdirectory. But this might not make sense for an upload to a git branch. Or I might just not have it configured correctly ...
Can you paste your configuration of the site plugin from your POM file?
The configuration in the parent pom is :
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.5</version>
<configuration>
<message>Creating site for ${project.version}</message>
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>site</phase>
</execution>
</executions>
</plugin>
The configuration in the child module is :
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.5</version>
<configuration>
<message>Creating site for ${project.version}</message>
<path>collector-webapp</path>
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>site</phase>
</execution>
</executions>
</plugin>
I also tried without configuring <path/>
in the module, and also with no configuration at all in the module. In all those cases, I get the same error.
And what is the repository that you want to create the site for?
The target repository is determined by either the repositoryName
and repositoryOwner
fields in the plugin configuration or from trying to parse the <url>
element of the project or the <scm>
URLs and extracting the repository from those.
Defining the target repository is discussed in the Core Configuration section of the README.
I saw that, but did not really understand how to use those properties to configure correctly. Most of what I read let me think that a maven multimodule project with git is not a configuration that is ready for prime time. I'll try to put together a example project showing what doesnt work in my case.
Thank you a lot for all your help sofar !
For a multimodule project the main question is whether you want all the sites generated for the modules to be in the same repository's gh-pages
branch under different paths, or have each module's site in its own repository's gh-pages
branch.
Hope this helps.
Again, thanks a lot for your help !
By using the repositoryName
and repositoryOwner
parameter, I can get my site deployed where I want. As maven deploys first the parent site, then each module's site, I had to add the <merge>true</merge>
parameter to the modules so that each site doesnt replace the previous one.
You are welcome, I will close this issue.
Please let me know if you have any other problems or questions.
In a multi-module project, the parent project's site is uploaded without problem, but the child project fails with "Error creating blob: Not Found (404)". I'm a bit at lost as to what the problem is. When running
mvn -e -X site
I get the following output :