Skip to content

Commit b52d5e1

Browse files
author
DABURON Vincent
committed
Version 1.8, Change the maven plugin and configuration to publish to maven central in pom.xml.
1 parent d57c90b commit b52d5e1

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The maven groupId, artifactId and version, this plugin is in the **Maven Central
5454
```xml
5555
<groupId>io.github.vdaburon</groupId>
5656
<artifactId>create-html-for-files-in-directory</artifactId>
57-
<version>1.7</version>
57+
<version>1.8</version>
5858
```
5959
Just include the plugin in your `pom.xml` and execute `mvn verify` <br>
6060
or individual launch `mvn -Dimage_width=950 -Dadd_toc=false exec:java@create_html_page_for_files_in_directory`
@@ -70,7 +70,7 @@ or individual launch `mvn -Dimage_width=950 -Dadd_toc=false exec:java@create_htm
7070
<dependency>
7171
<groupId>io.github.vdaburon</groupId>
7272
<artifactId>create-html-for-files-in-directory</artifactId>
73-
<version>1.7</version>
73+
<version>1.8</version>
7474
</dependency>
7575
</dependencies>
7676

@@ -134,6 +134,8 @@ and this plugin [csv-report-to-html](https://github.com/vdaburon/JMReportCsvToHt
134134
See the LICENSE file Apache 2 [https://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0)
135135

136136
## Versions
137+
Version 1.8 date 2025-07-16, Change the maven plugin and configuration to publish to maven central in pom.xml.
138+
137139
Version 1.7 date 2025-07-11, Add extensions ".txt" and ".htm", ".htm" file is not include like ".html" file but like log file with a link a href. It's a solution to open another html page with a link.
138140

139141
Version 1.6 date 2025-04-29, Compute relative path for result page to a parent directory, e.g: directory with file : "c:/dir/image" and result to parent directory "../index.html" links in index.html to relative sub directory "image/"

pom.xml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.vdaburon</groupId>
88
<artifactId>create-html-for-files-in-directory</artifactId>
9-
<version>1.7</version>
9+
<version>1.8</version>
1010
<packaging>jar</packaging>
1111
<name>Create html page for files in directory</name>
1212
<description>A tool that creates an html page for files in the directory to display graphics and link files</description>
@@ -141,19 +141,22 @@
141141
</execution>
142142
</executions>
143143
</plugin>
144+
145+
144146
<plugin>
145147
<!-- deploy jar in maven central or stagging only : mvn clean deploy
146-
if autoReleaseAfterClose == true then release in maven central;
147-
if autoReleaseAfterClose == false then release in stagging only not maven central
148+
if autoReleaseAfterClose == true then release in maven central;
149+
if autoReleaseAfterClose == false then release in stagging only not maven central
148150
-->
149-
<groupId>org.sonatype.plugins</groupId>
150-
<artifactId>nexus-staging-maven-plugin</artifactId>
151-
<version>1.7.0</version>
151+
<groupId>org.sonatype.central</groupId>
152+
<artifactId>central-publishing-maven-plugin</artifactId>
153+
<version>0.8.0</version>
152154
<extensions>true</extensions>
153155
<configuration>
154-
<serverId>ossrh</serverId>
155-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
156-
<autoReleaseAfterClose>${mavenCentralAutoReleaseAfterClose}</autoReleaseAfterClose>
156+
<publishingServerId>central_publishing</publishingServerId>
157+
<centralBaseUrl>https://central.sonatype.com</centralBaseUrl>
158+
<waitUntil>published</waitUntil>
159+
<autoPublish>${mavenCentralAutoReleaseAfterClose}</autoPublish>
157160
</configuration>
158161
</plugin>
159162
</plugins>

0 commit comments

Comments
 (0)