Skip to content

Commit e78ef46

Browse files
committed
Modernize Github Pages publishing configuration
1 parent 04649e1 commit e78ef46

File tree

1 file changed

+15
-25
lines changed

1 file changed

+15
-25
lines changed

pom.xml

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
4444
</snapshotRepository>
4545
<site>
46+
<name>GitHub Pages</name>
4647
<id>github-pages-site</id>
47-
<name>Deployment through GitHub's site deployment plugin</name>
48-
<url>site/${project.version}</url>
48+
<url>scm:git:[email protected]:gresrun/jesque.git</url>
4949
</site>
5050
</distributionManagement>
5151
<developers>
@@ -207,40 +207,26 @@
207207
</links>
208208
</configuration>
209209
</plugin>
210+
<plugin>
211+
<groupId>org.apache.maven.plugins</groupId>
212+
<artifactId>maven-project-info-reports-plugin</artifactId>
213+
<version>3.6.1</version>
214+
</plugin>
210215
<plugin>
211216
<groupId>org.apache.maven.plugins</groupId>
212217
<artifactId>maven-site-plugin</artifactId>
213218
<version>3.12.1</version>
214-
<dependencies>
215-
<dependency>
216-
<!-- Allows markdown syntax for site generation. To use it place files below src/site/markdown/[filename].md -->
217-
<groupId>org.apache.maven.doxia</groupId>
218-
<artifactId>doxia-module-markdown</artifactId>
219-
<version>2.0.0</version>
220-
</dependency>
221-
</dependencies>
222219
<configuration>
223220
<skipDeploy>true</skipDeploy>
224221
</configuration>
225222
</plugin>
226223
<plugin>
227-
<groupId>com.github.github</groupId>
228-
<artifactId>site-maven-plugin</artifactId>
229-
<version>0.12</version>
224+
<groupId>org.apache.maven.plugins</groupId>
225+
<artifactId>maven-scm-publish-plugin</artifactId>
226+
<version>3.3.0</version>
230227
<configuration>
231-
<message>Creating site for ${project.artifactId}, ${project.version}</message>
232-
<path>${project.distributionManagement.site.url}</path>
233-
<merge>true</merge>
228+
<scmBranch>gh-pages</scmBranch>
234229
</configuration>
235-
<executions>
236-
<execution>
237-
<id>github-site</id>
238-
<goals>
239-
<goal>site</goal>
240-
</goals>
241-
<phase>site-deploy</phase>
242-
</execution>
243-
</executions>
244230
</plugin>
245231
<plugin>
246232
<groupId>org.sonatype.central</groupId>
@@ -312,6 +298,10 @@
312298
<groupId>org.apache.maven.plugins</groupId>
313299
<artifactId>maven-javadoc-plugin</artifactId>
314300
</plugin>
301+
<plugin>
302+
<groupId>org.apache.maven.plugins</groupId>
303+
<artifactId>maven-project-info-reports-plugin</artifactId>
304+
</plugin>
315305
</plugins>
316306
</reporting>
317307
</project>

0 commit comments

Comments
 (0)