-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
Description
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-pluginlike 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>