Skip to content

Fixes for Maven POM, and a modularization patch #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e27b57d
Conform ampersand-error reporting to HTML spec
sideshowbarker Dec 14, 2015
82ef614
Make consecutive hyphens in comments a non-error
sideshowbarker Jun 10, 2016
9706ad0
Correct error for EOF in “in template” state
sideshowbarker Jul 19, 2016
00ca1aa
Support “generate all implied end tags thoroughly”
sideshowbarker May 18, 2017
f761305
Mozilla bug 1650066 fixup - Avoid calling errListUnclosedStartTags in…
hsivonen Jul 2, 2020
5dbe041
Stay in the COMMENT_LESSTHAN state, annotate fall-throughs.
sideshowbarker Jul 2, 2020
3aa0900
Limit ambiguous-ampersand wasteful buffering
sideshowbarker Jul 2, 2020
b453d95
POM: add an automatic module name entry to MANIFEST.MF.
carlosame Apr 18, 2020
7675682
Update xom dependency to 1.3.5+ in pom.xml
sideshowbarker Jul 4, 2020
2bc081c
Remove support for RPM packages from pom.xml
sideshowbarker Jul 4, 2020
2d67fe3
Remove support for OSGi bundles from pom.xml
sideshowbarker Jul 4, 2020
18a7948
Remove com.sun.tools dependency from pom.xml
sideshowbarker Jul 4, 2020
cfb616c
Update source and target values to 1.7 in pom.xml
sideshowbarker Jul 4, 2020
369fa88
Remove ruby-gcj
sideshowbarker Jul 4, 2020
58f05e7
Add .mailmap
sideshowbarker Jul 28, 2020
c37ed3b
Add .settings/ to .gitignore
sideshowbarker Jul 28, 2020
19d2492
Update comment re: named-charref spec-code clash
sideshowbarker Aug 3, 2020
2447729
Flush w/ emitOrAppendCharRefBuf, not ad-hoc code
sideshowbarker Aug 3, 2020
a3d911d
Don't consume char at AMBIGUOUS_AMPERSAND start
sideshowbarker Aug 3, 2020
61325c3
Fix AMBIGUOUS_AMPERSAND state
sideshowbarker Aug 5, 2020
d205660
Fix broken maven build due to maven-antrun-plugin being unable to loc…
carlosame Jul 5, 2020
7722be4
General cleanup of the POM file, prerequisite for modularization
carlosame Jul 5, 2020
8570585
Maven POM: update dependency version for jsontools.
carlosame Jul 5, 2020
2ad928a
Maven POM: update the 'scm' information
carlosame Jul 5, 2020
4e33cbc
Modularize the library, modifying the POM and adding a module-info
carlosame Jul 5, 2020
b047f93
Maven POM: Use <doclint>none</doclint> for javadoc
sideshowbarker Jul 6, 2020
cf8e4a4
Maven POM: Use https URLs
sideshowbarker Jul 6, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.classpath
.project
.settings/
eclipse-classes
classes
dist
Expand Down
7 changes: 7 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Henri Sivonen <hsivonen@hsivonen.fi> hsivonen <none@none>
Henri Sivonen <hsivonen@hsivonen.fi> unknown <none@none>
Henri Sivonen <hsivonen@hsivonen.fi> html5-readonly <none@none>
Henri Sivonen <hsivonen@hsivonen.fi> convert-repo <none@none>
Michael[tm] Smith <mike@w3.org> Michael(tm) Smith <mike@w3.org>
Michael[tm] Smith <mike@w3.org> sideshowbarker <none@none>
Sam Ruby <rubys@intertwingly.net> rubys <none@none>
180 changes: 93 additions & 87 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,78 +24,110 @@
<modelVersion>4.0.0</modelVersion>
<groupId>nu.validator.htmlparser</groupId>
<artifactId>htmlparser</artifactId>
<packaging>bundle</packaging>
<version>1.4</version>
<name>htmlparser</name>
<url>http://about.validator.nu/htmlparser/</url>
<url>https://about.validator.nu/htmlparser/</url>
<description>The Validator.nu HTML Parser is an implementation of the HTML5 parsing algorithm in Java for applications. The parser is designed to work as a drop-in replacement for the XML parser in applications that already support XHTML 1.x content with an XML parser and use SAX, DOM or XOM to interface with the parser.</description>
<!--
Usage notes for this POM:

To build without signing, run:
mvn clean source:jar javadoc:jar repository:bundle-create
(enter 0 <return> when prompted)
To build without signing, run (with JDK 12 or higher):
mvn clean package

To build and sign, run:
mvn clean source:jar javadoc:jar package gpg:sign repository:bundle-create
(enter 0 <return> when prompted)
mvn clean package gpg:sign

This POM file is used for creating the bundle for distribution via the
This POM file is used for creating the artifacts for distribution via the
Maven Central Repository. It is not used as part of the normal development
process of the parser and the maintainer of the parser (Henri Sivonen)
isn't experienced in POM tweaking. If you need this POM to do something
that it currently does not do or do something better, you need to write
the changes you need yourself and contribute a patch via
http://bugzilla.validator.nu/
https://github.com/validator/htmlparser
-->
<developers>
<developer>
<id>hsivonen</id>
<name>Henri Sivonen</name>
<email>hsivonen@iki.fi</email>
<url>http://hsivonen.iki.fi/</url>
<url>https://hsivonen.iki.fi/</url>
</developer>
</developers>
<licenses>
<license>
<name>The MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<url>https://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
<license>
<name>The (New) BSD License</name>
<url>http://www.opensource.org/licenses/bsd-license.php</url>
<url>https://www.opensource.org/licenses/bsd-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:hg:http://hg.mozilla.org/projects/htmlparser/</connection>
<url>http://hg.mozilla.org/projects/htmlparser/</url>
<connection>scm:git:https://github.com/validator/htmlparser.git</connection>
<url>https://github.com/validator/htmlparser</url>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<sourceDirectory>${project.build.directory}/src</sourceDirectory>
<testSourceDirectory>${basedir}/test-src</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
<version>3.8.1</version>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<release>11</release>
</configuration>
</execution>
<execution>
<id>base-compile</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<source>1.7</source>
<target>1.7</target>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
</configuration>
</execution>
<execution>
<id>default-testCompile</id>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
<version>3.0.0</version>
<executions>
<execution>
<id>intitialize-sources</id>
Expand All @@ -121,6 +153,7 @@
</goals>
<configuration>
<target>
<property name="build.compiler" value="extJavac"/>
<property name="translator.sources" value="${basedir}/translator-src"/>
<property name="translator.classes" value="${project.build.directory}/translator-classes"/>
<mkdir dir="${translator.classes}"/>
Expand All @@ -139,82 +172,60 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<skip>true</skip>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
<instructions>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-SymbolicName>nu.validator.htmlparser</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
<_removeheaders>Built-By,Bnd-LastModified</_removeheaders>
</instructions>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<release>1</release>
<copyright>The MIT License</copyright>
<group>Development/Java</group>
<workarea>/var/tmp/${project.build.finalName}</workarea>
<defineStatements>
<defineStatement>_javadir ${rpm.java.dir}</defineStatement>
<defineStatement>_javadocdir ${rpm.javadoc.dir}</defineStatement>
</defineStatements>
<mappings>
<mapping>
<directory>${rpm.java.dir}</directory>
<filemode>644</filemode>
<username>root</username>
<groupname>root</groupname>
<sources>
<source>
<location>${project.build.directory}/${project.build.finalName}.jar</location>
</source>
</sources>
</mapping>
<mapping>
<directory>${rpm.javadoc.dir}/${project.build.finalName}</directory>
<filemode>644</filemode>
<username>root</username>
<groupname>root</groupname>
<sources>
<source>
<location>${project.build.directory}/apidocs</location>
</source>
</sources>
</mapping>
</mappings>
<install>%__ln_s ${project.build.finalName}.jar %{buildroot}%{_javadir}/${project.name}.jar</install>
<source>7</source>
<quiet>true</quiet>
<doclint>none</doclint>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j</artifactId>
<version>4.0.1</version>
<!--
A module name was set for version 64.1 (see
https://unicode-org.atlassian.net/browse/ICU-20192) but
only 64.2 (and later) is available from Maven Central.
See also https://github.com/unicode-org/icu/pull/193
-->
<version>[64.2,)</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>xom</groupId>
<artifactId>xom</artifactId>
<version>1.1</version>
<version>[1.3.5,)</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
Expand All @@ -228,13 +239,8 @@
<dependency>
<groupId>com.sdicons.jsontools</groupId>
<artifactId>jsontools-core</artifactId>
<version>1.4</version>
<version>1.7</version>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<rpm.java.dir>/usr/share/java</rpm.java.dir>
<rpm.javadoc.dir>/usr/share/javadoc</rpm.javadoc.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
36 changes: 0 additions & 36 deletions ruby-gcj/DomUtils.java

This file was deleted.

65 changes: 0 additions & 65 deletions ruby-gcj/README

This file was deleted.

Loading