You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/04 16:01:56 UTC
sling-site git commit: SLING-7178 - Allow publishing the Sling site
using Maven
Repository: sling-site
Updated Branches:
refs/heads/master aa2ed8cae -> d4868c9b4
SLING-7178 - Allow publishing the Sling site using Maven
Basic setup, working on a separate branch until it's refined a bit more.
Project: http://git-wip-us.apache.org/repos/asf/sling-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/sling-site/commit/d4868c9b
Tree: http://git-wip-us.apache.org/repos/asf/sling-site/tree/d4868c9b
Diff: http://git-wip-us.apache.org/repos/asf/sling-site/diff/d4868c9b
Branch: refs/heads/master
Commit: d4868c9b4299f716d6f682f010e16073b8ea850f
Parents: aa2ed8c
Author: Robert Munteanu <ro...@apache.org>
Authored: Wed Oct 4 18:59:02 2017 +0300
Committer: Robert Munteanu <ro...@apache.org>
Committed: Wed Oct 4 19:01:33 2017 +0300
----------------------------------------------------------------------
pom.xml | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/sling-site/blob/d4868c9b/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index b36c0b3..b413786 100644
--- a/pom.xml
+++ b/pom.xml
@@ -98,7 +98,46 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-publish-plugin</artifactId>
+ <version>1.1</version>
+ <extensions>true</extensions>
+ <configuration>
+ <content>target/${artifactId}-${version}</content>
+ <checkinComment>Automatic publish of sling site</checkinComment>
+ <pubScmUrl>scm:git:https://git-wip-us.apache.org/repos/asf/sling-site.git</pubScmUrl>
+ <scmBranch>asf-site-staging</scmBranch>
+ </configuration>
+ </plugin>
</plugins>
</build>
+ <!-- TODO
+ - removed files: res/css/codehilite.css, README.md, .gitignore (needed?)
+ - many line endings changed
+ -->
+ <profiles>
+ <profile>
+ <id>publish-site</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-publish-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>publish-site</id>
+ <phase>package</phase>
+ <goals>
+ <goal>publish-scm</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
</project>