Skip to content

Commit a9ceddb

Browse files
authored
Merge pull request #78 from hboutemy/scm-publish
use scm-publish plugin to deploy site to gh-pages
2 parents 8824843 + de1c836 commit a9ceddb

File tree

2 files changed

+30
-26
lines changed

2 files changed

+30
-26
lines changed

jansi-website/pom.xml

+23-8
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@
3434
<netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
3535
</properties>
3636

37+
<distributionManagement>
38+
<site>
39+
<id>jansi-gh-pages</id>
40+
<url>scm:git:https://github.com/fusesource/jansi.git</url>
41+
</site>
42+
</distributionManagement>
43+
3744
<dependencies>
3845

3946
<dependency>
@@ -142,8 +149,6 @@
142149

143150
<configuration>
144151
<webappDirectory>${basedir}/src</webappDirectory>
145-
<remoteServerId>website.fusesource.org</remoteServerId>
146-
<remoteServerUrl>dav:http://fusesource.com/forge/dav/${forge-project-id}/versions/${project.version}/website/</remoteServerUrl>
147152
</configuration>
148153

149154
<executions>
@@ -154,15 +159,26 @@
154159
</goals>
155160
<phase>package</phase>
156161
</execution>
162+
</executions>
163+
</plugin>
164+
165+
<plugin>
166+
<groupId>org.apache.maven.plugins</groupId>
167+
<artifactId>maven-scm-publish-plugin</artifactId>
168+
<version>1.1</version>
169+
<configuration>
170+
<scmBranch>gh-pages</scmBranch>
171+
<content>${project.build.directory}/sitegen</content>
172+
</configuration>
173+
<executions>
157174
<execution>
158-
<id>deploy</id>
175+
<id>gh-pages</id>
159176
<goals>
160-
<goal>deploy</goal>
177+
<goal>publish-scm</goal>
161178
</goals>
162-
<phase>deploy</phase>
163-
</execution>
179+
<phase>install</phase>
180+
</execution>
164181
</executions>
165-
166182
</plugin>
167183

168184
<plugin>
@@ -187,7 +203,6 @@
187203
</systemProperties>
188204
<scanIntervalSeconds>0</scanIntervalSeconds>
189205
</configuration>
190-
191206
</plugin>
192207

193208
<plugin>

jansi-website/src/community/site.page

+7-18
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ How the website works
4444
also built using Maven so, you would
4545

4646
cd ${project_id}-website
47-
mvn install
47+
mvn package
4848

4949
If you want to edit the files in your text editor and be able to
5050
immediately see the site re-rendered in a browser then use
@@ -62,22 +62,11 @@ How the website works
6262
.right
6363
:markdown
6464

65-
The site is automatically deployed by the CI builds, so you can
66-
simply wait for the changes to be automatically pushed to the project
67-
site.
68-
69-
You can manually deploy the site using Maven:
65+
# The site is automatically deployed by the CI builds, so you can
66+
# simply wait for the changes to be automatically pushed to the project
67+
# site.
7068

71-
mvn deploy
72-
73-
Since deployment to our webserver requires proper authorization,
74-
you will need to add an entry to your ~/.m2/settings.xml file simlilar
75-
to:
69+
The site is deployed through GitHub gh-pages branch: you can deploy the site using Maven:
7670

77-
{pygmentize:: xml}
78-
<server>
79-
<id>${project_id}-website</id>
80-
<username>xxxx</username>
81-
<password>xxxxx</password>
82-
</server>
83-
{pygmentize}
71+
mvn install
72+

0 commit comments

Comments
 (0)