[Git][java-team/libhtmlparser-java][master] 5 commits: Add maven POM to the package.

Andreas B. Mundt (@andi) gitlab at salsa.debian.org
Mon Jul 17 18:05:37 BST 2023



Andreas B. Mundt pushed to branch master at Debian Java Maintainers / libhtmlparser-java


Commits:
7ee5473a by Andreas B. Mundt at 2023-07-17T18:44:31+02:00
Add maven POM to the package.

- - - - -
73c959d8 by Andreas B. Mundt at 2023-07-17T18:47:34+02:00
Update debhelper compatibility level and Standards-Version. No changes needed.

- - - - -
f2cb81d6 by Andreas B. Mundt at 2023-07-17T18:49:03+02:00
Add 'Rules-Requires-Root: no' to control file.

- - - - -
e38337ee by Andreas B. Mundt at 2023-07-17T18:50:29+02:00
Update watch file.

- - - - -
2d32c4ed by Andreas B. Mundt at 2023-07-17T18:50:59+02:00
Fix packaging links.

- - - - -


7 changed files:

- − debian/compat
- debian/control
- − debian/libhtmlparser-java.jlibs
- + debian/libhtmlparser-java.poms
- + debian/pom.xml
- debian/rules
- debian/watch


Changes:

=====================================
debian/compat deleted
=====================================
@@ -1 +0,0 @@
-11


=====================================
debian/control
=====================================
@@ -4,14 +4,16 @@ Priority: optional
 Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
 Uploaders:
  Tiago Saboga <tiagosaboga at gmail.com>
+Rules-Requires-Root: no
 Build-Depends:
  ant,
- debhelper (>= 11),
+ debhelper-compat (= 13),
  default-jdk,
- javahelper
-Standards-Version: 4.1.4
-Vcs-Git: https://anonscm.debian.org/git/pkg-java/libhtmlparser-java.git
-Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/libhtmlparser-java.git
+ javahelper,
+ maven-repo-helper
+Standards-Version: 4.6.2
+Vcs-Git: https://salsa.debian.org/java-team/libhtmlparser-java.git
+Vcs-Browser: https://salsa.debian.org/java-team/libhtmlparser-java
 Homepage: http://htmlparser.sourceforge.net
 
 Package: libhtmlparser-java


=====================================
debian/libhtmlparser-java.jlibs deleted
=====================================
@@ -1 +0,0 @@
-src/lib/libhtmlparser.jar


=====================================
debian/libhtmlparser-java.poms
=====================================
@@ -0,0 +1 @@
+debian/pom.xml --no-parent --java-lib --artifact=src/lib/libhtmlparser.jar --usj-name=libhtmlparser --usj-version=1.6.20060610


=====================================
debian/pom.xml
=====================================
@@ -0,0 +1,338 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.htmlparser</groupId>
+  <artifactId>htmlparser</artifactId>
+  <name>HTML Parser</name>
+  <version>1.6</version>
+  <description>HTML Parser is a Java library used to parse HTML in either a linear or nested fashion. Primarily used for transformation or extraction, it features filters, visitors, custom tags and easy to use JavaBeans. It is a fast, robust and well tested package.</description>
+  <url>http://htmlparser.org</url>
+  <issueManagement>
+    <system>SourceForge Tracker</system>
+    <url>http://sourceforge.net/tracker/?group_id=24399</url>
+  </issueManagement>
+  <scm>
+    <connection>scm:svn:https://svn.sourceforge.net/svnroot/htmlparser</connection>
+    <developerConnection>scm:svn:https://svn.sourceforge.net/svnroot/htmlparser</developerConnection>
+    <url>http://svn.sourceforge.net/viewcvs.cgi/htmlparser/</url>
+  </scm>
+  <inceptionYear>2001</inceptionYear>
+  <mailingLists>
+    <mailingList>
+      <name>htmlparser-announce</name>
+      <subscribe>http://lists.sourceforge.net/mailman/listinfo/htmlparser-announce</subscribe>
+      <unsubscribe>http://lists.sourceforge.net/mailman/listinfo/htmlparser-announce</unsubscribe>
+      <archive>http://sourceforge.net/mailarchive/forum.php?forum_id=2024</archive>
+    </mailingList>
+    <mailingList>
+      <name>htmlparser-developer</name>
+      <subscribe>http://lists.sourceforge.net/mailman/listinfo/htmlparser-developer</subscribe>
+      <unsubscribe>http://lists.sourceforge.net/mailman/listinfo/htmlparser-developer</unsubscribe>
+      <post>htmlparser-developer at sourceforge.org</post>
+      <archive>http://sourceforge.net/mailarchive/forum.php?forum_id=2025</archive>
+    </mailingList>
+    <mailingList>
+      <name>htmlparser-user</name>
+      <subscribe>http://lists.sourceforge.net/mailman/listinfo/htmlparser-user</subscribe>
+      <unsubscribe>http://lists.sourceforge.net/mailman/listinfo/htmlparser-user</unsubscribe>
+      <post>htmlparser-user at sourceforge.org</post>
+      <archive>http://sourceforge.net/mailarchive/forum.php?forum_id=2023</archive>
+    </mailingList>
+    <mailingList>
+      <name>htmlparser-cvs</name>
+      <subscribe>http://lists.sourceforge.net/mailman/listinfo/htmlparser-cvs</subscribe>
+      <unsubscribe>http://lists.sourceforge.net/mailman/listinfo/htmlparser-cvs</unsubscribe>
+      <archive>http://sourceforge.net/mailarchive/forum.php?forum_id=33210</archive>
+    </mailingList>
+  </mailingLists>
+  <developers>
+    <developer>
+      <id>derrickoswald</id>
+      <name>Derrick Oswald</name>
+      <email>http://sourceforge.net/sendmessage.php?touser=605407</email>
+      <url>http://sourceforge.net/users/derrickoswald</url>
+      <organization>Autodesk</organization>
+      <organizationUrl>http://www.autodesk.com</organizationUrl>
+      <roles>
+        <role>Project Admin</role>
+      </roles>
+      <timezone>-5</timezone>
+      <properties/>
+    </developer>
+    <developer>
+      <id>somik</id>
+      <name>Somik Raha</name>
+      <email>http://sourceforge.net/sendmessage.php?touser=187944</email>
+      <url>http://sourceforge.net/users/somik/</url>
+      <organization>Industrial Logic Inc.</organization>
+      <organizationUrl>http://www.industriallogic.com</organizationUrl>
+      <roles>
+        <role>Project Admin</role>
+      </roles>
+      <timezone>-8</timezone>
+      <properties/>
+    </developer>
+    <developer>
+      <id>ian_macfarlane</id>
+      <name>Ian Macfarlane</name>
+      <email>http://sourceforge.net/sendmessage.php?touser=1367545</email>
+      <url>http://www.ianmacfarlane.com/</url>
+      <roles>
+        <role>Developer</role>
+      </roles>
+      <timezone>-5</timezone>
+      <properties/>
+    </developer>
+    <developer>
+      <id>dwalters128</id>
+      <name>David Walters</name>
+      <email>http://sourceforge.net/sendmessage.php?touser=957342</email>
+      <url>http://sourceforge.net/users/dwalters128/</url>
+      <roles>
+        <role>Developer</role>
+      </roles>
+      <timezone>-5</timezone>
+      <properties/>
+    </developer>
+  </developers>
+  <contributors>
+    <contributor>
+      <name>Ivan Shi</name>
+      <email>http://sourceforge.net/sendmessage.php?touser=1537105</email>
+    </contributor>
+    <contributor>
+      <name>Antonio Petrelli</name>
+      <email>http://sourceforge.net/sendmessage.php?touser=348219</email>
+    </contributor>
+    <contributor>
+      <name>Yuta Okamoto</name>
+      <email>http://sourceforge.net/sendmessage.php?touser=1586822</email>
+    </contributor>
+    <contributor>
+      <name>Rafique</name>
+      <email>http://sourceforge.net/sendmessage.php?touser=876446</email>
+    </contributor>
+    <contributor>
+      <name>RabeRalf</name>
+      <email>http://sourceforge.net/sendmessage.php?touser=1433119</email>
+    </contributor>
+  </contributors>
+  <licenses>
+    <license>
+      <name>Common Public License</name>
+      <url>http://opensource.org/licenses/cpl1.0.txt</url>
+      <distribution>repo</distribution>
+      <comments>The HTML Parser code is licensed under the Common Public License.</comments>
+    </license>
+  </licenses>
+<!--
+  <modules>
+    <module>lexer</module>
+    <module>parser</module>
+    <module>filterbuilder</module>
+    <module>sitecapturer</module>
+    <module>thumbelina</module>
+  </modules>
+-->
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-project-info-reports-plugin</artifactId>
+        <reportSets>
+          <reportSet>
+            <reports>
+<!--
+Dependencies is severely broken:
+              <report>dependencies</report>
+-->
+              <report>project-team</report>
+              <report>mailing-list</report>
+              <report>issue-tracking</report>
+              <report>license</report>
+              <report>scm</report>
+            </reports>
+          </reportSet>
+        </reportSets>
+      </plugin>
+    </plugins>
+  </reporting>
+  <build>
+    <extensions>
+      <extension>
+        <groupId>org.apache.maven.wagon</groupId>
+         <artifactId>wagon-ssh-external</artifactId>
+         <version>1.0-beta-1</version>
+      </extension>
+    </extensions>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-site-plugin</artifactId>
+        <configuration>
+          <locales>en</locales>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <inherited>false</inherited>
+        <executions>
+          <execution>
+            <phase>deploy</phase>
+            <configuration>
+              <tasks>
+                <tstamp>
+                  <format property="TODAY" pattern="yyyyMMdd" locale="en"/>
+                  <format property="TODAY_STRING" pattern="MMM dd, yyyy"/>
+                </tstamp>
+                <mkdir dir="target/classes"/>
+                <javac fork="yes" srcdir="src/main/java:parser/src/main/java:lexer/src/main/java" includes="HtmlTaglet.java" destdir="target/classes" classpath="${java.home}/../lib/tools.jar"/>
+                <mkdir dir="target/site/javadoc"/>
+                <property name="javadoc.doctitle" value="HTML Parser 2.0"/>
+                <property name="javadoc.header" value="<A HREF="http://htmlparser.sourceforge.net" target="_top">HTML Parser Home Page</A>"/>
+                <property name="javadoc.footer" value="&copy; 2006 Derrick Oswald<div align="right">${TODAY_STRING}</div>"/>
+                <property name="javadoc.bottom" value="<table width='100%'><tr><td>HTML Parser is an open source library released under
+                  <a HREF="http://opensource.org/licenses/cpl1.0.txt" target="_top">Common Public License</a>.</td><td align='right'>
+                  <a HREF="http://sourceforge.net/projects/htmlparser" target="_top">
+                  <img src="http://sourceforge.net/sflogo.php?group_id=24399&type=1" width="88" height="31" border="0" alt="SourceForge.net"></a></td></tr></table>"/>
+                <javadoc packagenames="org.htmlparser.*"
+                       sourcepath="lexer/src/main/java:parser/src/main/java:filterbuilder/src/main/java:sitecapturer/src/main/java:thumbelina/src/main/java"
+                       classpath="src/main/resources"
+                       defaultexcludes="yes"
+                       excludepackagenames="org.htmlparser.tests.*"
+                       destdir="target/site/javadoc"
+                       author="true"
+                       version="true"
+                       use="true"
+                       windowtitle="HTML Parser 2.0"
+                       stylesheetfile="src/main/resources/stylesheet.css"
+                       overview="src/main/java/doc-files/overview.html">
+                  <doctitle>${javadoc.doctitle}</doctitle>
+                  <header>${javadoc.header}</header>
+                  <bottom>${javadoc.bottom}</bottom>
+                  <footer>${javadoc.footer}</footer>
+                  <taglet name="HtmlTaglet" path="target/classes"/>
+                  <group title="Main Package" packages="org.htmlparser"/>
+                  <group title="Example Applications" packages="org.htmlparser.parserapplications,org.htmlparser.lexerapplications.tabby,org.htmlparser.lexerapplications.thumbelina,org.htmlparser.parserapplications.filterbuilder*"/>
+                  <group title="Nodes" packages="org.htmlparser.nodes,org.htmlparser.tags"/>
+                  <group title="Lexer" packages="org.htmlparser.lexer"/>
+                  <group title="Scanners" packages="org.htmlparser.scanners"/>
+                  <group title="Beans" packages="org.htmlparser.beans"/>
+                  <group title="Patterns" packages="org.htmlparser.visitors,org.htmlparser.nodeDecorators,org.htmlparser.filters"/>
+                  <group title="Http" packages="org.htmlparser.http"/>
+                  <group title="Sax" packages="org.htmlparser.sax"/>
+                  <group title="Utility" packages="org.htmlparser.util*"/>
+                  <link href="http://java.sun.com/j2se/1.4.2/docs/api/"/>
+                  <link href="http://www.saxproject.org/apidoc/"/>
+                </javadoc>
+                <copy file="src/main/resources/inherit.gif" tofile="target/site/javadoc/resources/inherit.gif" overwrite="true"/>
+                <delete dir="target/classes"/>
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+          <descriptors>
+            <descriptor>src/main/assembly/binaries.xml</descriptor>
+            <descriptor>src/main/assembly/sources.xml</descriptor>
+            <descriptor>src/main/assembly/documentation.xml</descriptor>
+          </descriptors>
+          <outputDirectory>target</outputDirectory>
+          <workDirectory>target/assembly/work</workDirectory>
+        </configuration>
+      </plugin>
+<!--
+NOTE: This is not used since there is no way to javadoc multiple modules...
+
+The maven-javadoc-plugin is completely broken for aggregator artifacts.
+If you try this you will get a message like:
+  "Not executing Javadoc as the project is not a Java classpath-capable package"
+and if you set the artifact type to be jar or something classpath-capable you get:
+  "Aggregator projects require 'pom' as packaging"
+
+Also, there doesn't appear to be a way to incorporate the current date and the overview functionality doesn't work.
+
+So we revert back to the antrun plugin to get this functionality, see above.
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <configuration>
+          <doctitle>${project.name} ${project.version}</doctitle>
+          <header><A HREF="http://htmlparser.sourceforge.net">${project.name} Home Page</A></header>
+          <bottom><table width="100%"><tr><td>HTML Parser is an open source library released under <a HREF="http://opensource.org/licenses/cpl1.0.txt" target="_top">Common Public License</a>.</td><td align="right"><a HREF="http://sourceforge.net/projects/htmlparser" target="_top"><img src="http://sourceforge.net/sflogo.php?group_id=24399&type=1" width="88" height="31" border="0" alt="SourceForge.net"></a></td></tr></table></bottom>
+there must be a current date variable, and a current year
+- the comma is stripped out of a hard coded date
+
+          <footer>&copy; 2006 Derrick Oswald<div align="right">April 1, 2006</div></footer>
+          <destDir>${project.build.directory}/site/javadoc/</destDir>
+          <windowtitle>${project.name} ${project.version}</windowtitle>
+          <stylesheetfile>${basedir}/src/main/resources/stylesheet.css</stylesheetfile>
+overview is broken...
+          <overview>C:/Data Files/Personal/htmlparser/src/main/java/doc-files/overview.html</overview>
+          <groups>
+              <group>Main Package org.htmlparser</group>
+              <group title="Example Applications">org.htmlparser.parserapplications,org.htmlparser.lexerapplications.tabby,org.htmlparser.lexerapplications.thumbelina,org.htmlparser.parserapplications.filterbuilder*</group>
+              <group title="Nodes">org.htmlparser.nodes,org.htmlparser.tags</group>
+              <group title="Lexer">org.htmlparser.lexer</group>
+              <group title="Scanners">org.htmlparser.scanners</group>
+              <group title="Beans">org.htmlparser.beans</group>
+              <group title="Patterns">org.htmlparser.visitors,org.htmlparser.nodeDecorators,org.htmlparser.filters</group>
+              <group title="Http">org.htmlparser.http</group>
+              <group title="Sax">org.htmlparser.sax</group>
+              <group title="Utility">org.htmlparser.util*</group>
+          </groups>
+          <links>
+              <link>http://java.sun.com/j2se/1.4.2/docs/api/</link>
+              <link>http://www.saxproject.org/apidoc/</link>
+          </links>
+          <tagletpath>${basedir}/src/main/resources</tagletpath>
+          <taglet>HtmlTaglet</taglet>
+          <additionalparam>-sourcepath ..\parser\src\main\java</additionalparam>
+          <additionalparam>-sourcepath ..\lexer\src\main\java</additionalparam>
+        </configuration>
+      </plugin>
+-->
+    </plugins>
+  </build>
+  <distributionManagement>
+    <!-- use the following if you're not using a snapshot version. -->
+    <!-- repository>
+      <id>sourceforge-repository</id>
+      <name>Sourceforge</name>
+      <url>scpexe://shell.sourceforge.net/home/groups/h/ht/htmlparser/htdocs/m2-repo</url>
+    </repository -->
+    <!-- use the following if you ARE using a snapshot version. -->
+    <snapshotRepository>
+      <id>sourceforge-snapshot-repository</id>
+      <name>Sourceforge SNAPSHOT</name>
+      <url>scpexe://shell.sourceforge.net/home/groups/h/ht/htmlparser/htdocs/m2-snapshot-repo</url>
+    </snapshotRepository>
+  </distributionManagement>
+  <profiles>
+    <profile>
+      <id>default-tools.jar</id>
+      <activation>
+        <property>
+          <name>java.vendor</name>
+          <value>Sun Microsystems Inc.</value>
+        </property>
+      </activation>
+      <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>
+    </profile>
+  </profiles>
+</project>


=====================================
debian/rules
=====================================
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@ --buildsystem=ant --with javahelper
+	dh $@ --buildsystem=ant --with javahelper,maven_repo_helper
 
 override_dh_auto_build:
 	dh_auto_build -- -f src/build.xml -Dant.build.javac.target=1.7 jarparser javadoc filterbuilder thumbelina
@@ -9,3 +9,6 @@ override_dh_auto_build:
 
 override_dh_auto_clean:
 	dh_auto_clean -- -f src/build.xml
+
+get-orig-pom:
+	wget -O debian/pom.xml https://repo1.maven.org/maven2/org/htmlparser/htmlparser/1.6/htmlparser-1.6.pom


=====================================
debian/watch
=====================================
@@ -1,6 +1,9 @@
-version=3
-opts=uversionmangle=s/(\d+)\.(\d)(\d)\.(\d+)/$1.$2.$3.$4/,\
-dversionmangle=s/\.dfsg\d$// \
-  http://sf.net/htmlparser/htmlparser(\d+)_(\d+)_?(\d*)\.zip
+version=4
+# qa.debian.org runs a redirector which allows a simpler form of URL
+# for SourceForge based projects. The format below will automatically
+# be rewritten to use the redirector.
+opts="dversionmangle=s/\.dfsg\d*$//, \
+uversionmangle=s/_/./g" \
+http://sf.net/htmlparser/htmlparser(1_6_\d\S+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
 
 # <http://downloads.sourceforge.net/htmlparser/htmlparser1_6_20060610.zip



View it on GitLab: https://salsa.debian.org/java-team/libhtmlparser-java/-/compare/f28b02cab0682eac8c8c542e396fa18fe3d652ac...2d32c4ed97e6e8e194138642922b653d559ba03a

-- 
View it on GitLab: https://salsa.debian.org/java-team/libhtmlparser-java/-/compare/f28b02cab0682eac8c8c542e396fa18fe3d652ac...2d32c4ed97e6e8e194138642922b653d559ba03a
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20230717/2768657f/attachment.htm>


More information about the pkg-java-commits mailing list