Skip to content

Commit fca1a1c

Browse files
author
thomas loubrieu
committed
add configuration for gh-pages maven site
1 parent ef23c92 commit fca1a1c

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,31 @@ Go through this file line-by-line and replace the template values with your own.
204204
<artifactId>maven-site-plugin</artifactId>
205205
<version>3.9.1</version>
206206
</plugin>
207+
<plugin>
208+
<groupId>org.apache.maven.plugins</groupId>
209+
<artifactId>maven-scm-publish-plugin</artifactId>
210+
<version>3.1.0</version> <!-- or latest version -->
211+
<configuration>
212+
<pubScmUrl>${project.scm.developerConnection}</pubScmUrl>
213+
<scmBranch>gh-pages</scmBranch>
214+
</configuration>
215+
</plugin>
216+
<plugin>
217+
<groupId>com.github.github</groupId>
218+
<artifactId>site-maven-plugin</artifactId>
219+
<version>0.11</version>
220+
<configuration>
221+
<message>Creating site for ${project.version}</message>
222+
</configuration>
223+
<executions>
224+
<execution>
225+
<goals>
226+
<goal>site</goal>
227+
</goals>
228+
<phase>site</phase>
229+
</execution>
230+
</executions>
231+
</plugin>
207232
<plugin>
208233
<groupId>org.apache.maven.plugins</groupId>
209234
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)