HTML to XHTML Maven Plugin

A maven plugin converting HTML file to XHTML file

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.cosium.html
ArtifactId

ArtifactId

html-to-xhtml-maven-plugin
Last Version

Last Version

1.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

HTML to XHTML Maven Plugin
A maven plugin converting HTML file to XHTML file
Project URL

Project URL

https://github.com/cosium/html-to-xhtml-maven-plugin
Project Organization

Project Organization

Cosium
Source Code Management

Source Code Management

https://github.com/Cosium/html-to-xhtml-maven-plugin

Download html-to-xhtml-maven-plugin

How to add to project

<plugin>
    <groupId>com.cosium.html</groupId>
    <artifactId>html-to-xhtml-maven-plugin</artifactId>
    <version>1.2</version>
</plugin>

Dependencies

compile (6)

Group / Artifact Type Version
org.jsoup : jsoup jar 1.13.1
commons-io : commons-io jar 2.6
org.apache.commons : commons-lang3 jar 3.9
org.apache.maven : maven-core jar 3.3.9
org.apache.maven : maven-plugin-api jar 3.3.9
org.codehaus.plexus : plexus-utils jar 3.2.1

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.3

test (3)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter jar 5.6.2
org.assertj : assertj-core jar 3.8.0
ch.qos.logback : logback-classic jar 1.2.3

Project Modules

There are no modules declared in this project.

Maven Central Latest CI

HTML To XHTML Maven Plugin

<build>
  <plugins>
    <plugin>
      <groupId>com.cosium.html</groupId>
      <artifactId>html-to-xhtml-maven-plugin</artifactId>
      <version>${html-to-xhtml-maven-plugin.version}</version>
      <executions>
        <!-- On Maven generate-resources phase, convert ${project.basedir}/example.html to  ${project.build.outputDirectory}/example.xhtml -->
        <execution>
          <id>convert-html-to-xhtml</id>
          <goals>
            <goal>html-to-xhtml</goal>
          </goals>
        </execution>
      </executions>
      <configuration>
        <conversions>
          <conversion>
            <htmlInputFilePath>${project.basedir}/example.html</htmlInputFilePath>
            <xhtmlOutputFilePath>${project.build.outputDirectory}/example.xhtml</xhtmlOutputFilePath>
            <!--Optional-->
            <encoding>UTF-8</encoding>
            <tagElementToWrapDocumentIn>div</tagElementToWrapDocumentIn>
          </conversion>
        </conversions>
      </configuration>
    </plugin>
  </plugins>
</build>
com.cosium.html

Versions

Version
1.2
1.1
1.0