You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2017/10/11 11:06:06 UTC
[sling-site] 03/03: Require a commit message for publishing the
website
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git
commit 0ae13a048178fa68c50870a4054e81048517f054
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Wed Oct 11 13:05:52 2017 +0200
Require a commit message for publishing the website
---
README.md | 2 +-
pom.xml | 24 +++++++++++++++++++++++-
2 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 4370479..cb8de74 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ Clone this repository and run the below commands or equivalent:
mvn clean package
# deploy the site
- mvn clean package -Ppublish-site
+ mvn clean package -Ppublish-site -Dmsg="<describe your changes>"
The [ASF's gitpubsub mechanism](https://blogs.apache.org/infra/entry/git_based_websites_available) then synchronizes that content to http://sling.apache.org , usually within a few seconds.
diff --git a/pom.xml b/pom.xml
index 4f92da5..74e22d5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -105,11 +105,33 @@
<extensions>true</extensions>
<configuration>
<content>target/${project.artifactId}-${project.version}</content>
- <checkinComment>Automatic publish of sling site</checkinComment>
+ <checkinComment>${msg}</checkinComment>
<pubScmUrl>scm:git:https://gitbox.apache.org/repos/asf/sling-site.git</pubScmUrl>
<scmBranch>asf-site</scmBranch>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>3.0.0-M1</version>
+ <executions>
+ <execution>
+ <id>enforce-property</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireProperty>
+ <property>msg</property>
+ <message>Please specify a commit message for publishing the website (-Dmsg="...")</message>
+ </requireProperty>
+ </rules>
+ <fail>true</fail>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.