Skip to content

Make site deployment consistent  #116

@khmarbaise

Description

@khmarbaise

Currently we make a difference between mono module project and non mono module projects.
We should make it consistent and only use one way to go.
This means from my point of view:

  • Use configuration for maven-scm-publish-plugin like this:
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-scm-publish-plugin</artifactId>
  <version>3.0.0</version>
  <configuration>
    <pubScmUrl>${project.scm.developerConnection}</pubScmUrl>
    <scmBranch>gh-pages</scmBranch>
    <content>${project.build.directory}/staging</content>
  </configuration>
..
</plugin>
  • Also we should use configuration during the release like this:
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-release-plugin</artifactId>
  <version>2.5.3</version>
  <configuration>
    <arguments>${arguments}</arguments>
    <goals>deploy site site:stage scm-publish:publish-scm</goals>
    <autoVersionSubmodules>true</autoVersionSubmodules>
   </configuration>
</plugin>
  • This would result in having always the same path to go no differences

Consequences

  • every project has to define a property like this: <scmpublish.content>target/staging/${project.artifactId}</scmpublish.content>
  • every project has to define the distributionManagement like this:
  <distributionManagement>
    <site>
      <id>github</id>
      <url>scm:git:ssh://[email protected]/mojohaus/<repository>.git</url>
    </site>
  </distributionManagement>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions