Terms of Service | Privacy Policy | Cookie Policy

...
 
Commits (8)
......@@ -33,7 +33,7 @@ pages:
refs:
- master
script:
- mvn $MAVEN_CLI_OPTS $MVN_PROFILE site post-site
- mvn $MAVEN_CLI_OPTS $MVN_PROFILE compile site post-site
- mv target/staging public
artifacts:
paths:
......
......@@ -37,6 +37,7 @@
<install-plugin.version>3.0.0-M1</install-plugin.version>
<jacoco-plugin.version>0.8.3</jacoco-plugin.version>
<jar-plugin.version>3.1.1</jar-plugin.version>
<quality-profile.version>0.1.0-SNAPSHOT</quality-profile.version>
<release-plugin.version>2.5.3</release-plugin.version>
<resources-plugin.version>3.1.0</resources-plugin.version>
<site-plugin.version>3.7.1</site-plugin.version>
......@@ -44,14 +45,17 @@
<!-- Reporting Plugins -->
<changes-plugin.version>2.12.1</changes-plugin.version>
<checkstyle-plugin.version>3.1.1</checkstyle-plugin.version>
<dependency-check-plugin.version>5.2.2</dependency-check-plugin.version>
<fluido-skin.version>1.6</fluido-skin.version>
<javadoc-plugin.version>3.0.1</javadoc-plugin.version>
<javadoc-plugin.version>3.1.1</javadoc-plugin.version>
<jxr-plugin.version>3.0.0</jxr-plugin.version>
<pmd-plugin.version>3.11.0</pmd-plugin.version>
<project-info-reports-plugin.version>3.0.0</project-info-reports-plugin.version>
<spotbugs-plugin.version>3.1.12.2</spotbugs-plugin.version>
<surefire-report-plugin.version>3.0.0-M3</surefire-report-plugin.version>
<taglist-plugin.version>2.4</taglist-plugin.version>
<versions-plugin.version>2.7</versions-plugin.version>
</properties>
<developers>
......@@ -141,6 +145,13 @@
</dependencyManagement>
<build>
<extensions>
<extension>
<groupId>org.sw4j</groupId>
<artifactId>quality-profile</artifactId>
<version>${quality-profile.version}</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
......@@ -302,8 +313,8 @@
<configuration>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
<webAccessUrl>https://git.sw4j.net/sw4j-org/p12breaker</webAccessUrl>
<developerConnection>scm:git:ssh://git@git.sw4j.net:sw4j-org/p12breaker.git</developerConnection>
<webAccessUrl>${project.scm.url}</webAccessUrl>
<developerConnection>${project.scm.developerConnection}</developerConnection>
</configuration>
<reportSets>
<reportSet>
......@@ -346,6 +357,209 @@
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changes-plugin</artifactId>
<version>${changes-plugin.version}</version>
<reportSets>
<reportSet>
<reports>
<report>changes-report</report>
</reports>
</reportSet>
</reportSets>
<configuration>
<addActionDate>true</addActionDate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc-plugin.version}</version>
<configuration>
<tags>
<tag>
<name>BROKEN</name>
<placement>a</placement>
<head>BROKEN:</head>
</tag>
<tag>
<name>FIXME</name>
<placement>a</placement>
<head>FIXME:</head>
</tag>
<tag>
<name>TODO</name>
<placement>a</placement>
<head>TODO:</head>
</tag>
<tag>
<name>todo</name>
<placement>a</placement>
<head>TODO:</head>
</tag>
</tags>
</configuration>
<reportSets>
<reportSet>
<id>non-aggregate</id>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>${surefire-report-plugin.version}</version>
<configuration>
<alwaysGenerateSurefireReport>false</alwaysGenerateSurefireReport>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-plugin.version}</version>
<reportSets>
<reportSet>
<reports>
<report>report</report>
<report>report-integration</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs-plugin.version}</version>
<configuration>
<threshold>Low</threshold>
<effort>Max</effort>
<includeFilterFile>org/sw4j/quality-profile/spotbugs/spotbugs-3.1.1.xml</includeFilterFile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle-plugin.version}</version>
<configuration>
<configLocation>org/sw4j/quality-profile/checkstyle/checkstyle-8.29.xml</configLocation>
<excludes>**/module-info.java</excludes>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>checkstyle</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${pmd-plugin.version}</version>
<configuration>
<configLocation>org/sw4j/quality-profile/pmd/pmd-3.7.xml</configLocation>
<skipEmptyReport>false</skipEmptyReport>
<!--<targetJdk>${pmd-plugin.targetJdk}</targetJdk>-->
</configuration>
<reportSets>
<reportSet>
<reports>
<report>pmd</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>${jxr-plugin.version}</version>
<configuration>
<linkJavadoc>true</linkJavadoc>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>jxr</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<version>${taglist-plugin.version}</version>
<configuration>
<tagListOptions>
<tagClasses>
<tagClass>
<displayName>Work To Do</displayName>
<tags>
<tag>
<matchString>@?(TODO|todo)</matchString>
<matchType>regEx</matchType>
</tag>
</tags>
</tagClass>
<tagClass>
<displayName>This code is broken</displayName>
<tags>
<tag>
<matchString>@?BROKEN</matchString>
<matchType>regEx</matchType>
</tag>
</tags>
</tagClass>
<tagClass>
<displayName>Fixes to make</displayName>
<tags>
<tag>
<matchString>@?FIXME</matchString>
<matchType>regEx</matchType>
</tag>
</tags>
</tagClass>
</tagClasses>
</tagListOptions>
<skipTestSources>true</skipTestSources>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-plugin.version}</version>
<configuration>
<rulesUri>classpath:///org/sw4j/quality-profile/versions/rules-2.5.xml</rulesUri>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>dependency-updates-report</report>
<report>plugin-updates-report</report>
<report>property-updates-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>${dependency-check-plugin.version}</version>
<configuration>
<suppressionFile>src/dependency-check/suppression.xml</suppressionFile>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>check</report>
<report>aggregate</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ html-crawler is a library to help crawling websites.
~ Copyright (C) 2020 Uwe Plonus
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<document
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns='http://maven.apache.org/changes/1.0.0'
xsi:schemaLocation='http://maven.apache.org/changes/1.0.0 https://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd'>
<body>
<release version="0.1.0" description="Initial release">
<action dev="uweplonus" type="add" date="2020-02-29">
Initial setup of the project.
</action>
</release>
</body>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ html-crawler is a library to help crawling websites.
~ Copyright (C) 2020 Uwe Plonus
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<suppressions xmlns="https://www.owasp.org/index.php/OWASP_Dependency_Check_Suppression">
<!--<suppress base="true|false">
<notes><![CDATA[Reason]]></notes>
one of
<filePath regex="true|false" caseSensitive="true|false">or sha1 or gav</filePath>
<sha1>or filePath or gav</sha1>
<gav regex="true|false" caseSensitive="true|false">org\.example:example.*</gav>
any combination
<cpe regex="true|false" caseSensitive="true|false">cpe:/a:example:example:x.y.z</cpe>
<cve>CVE-1999-1234</cve>
<cwe>123</cwe>
<cvssBelow></cvssBelow>
</suppress>-->
</suppressions>
......@@ -20,34 +20,36 @@ package org.sw4j.tool.html.crawler;
public class ExternalReferenceEvent {
private final Type type;
private final String elementName;
private final LinkType linkType;
private final String link;
public ExternalReferenceEvent(final Type type, final String link) {
this.type = type;
private final RelationType relation;
public ExternalReferenceEvent(final String elementName, final LinkType linkType, final String link,
final RelationType relation) {
this.elementName = elementName;
this.linkType = linkType;
this.link = link;
this.relation = relation;
}
public String getElementName() {
return elementName;
}
public Type getType() {
return type;
public LinkType getLinkType() {
return linkType;
}
public String getLink() {
return link;
}
public enum Type {
REDIRECT,
LINK,
IMAGE,
SCRIPT,
STYLESHEET,
OTHER,
;
public RelationType getRelation() {
return relation;
}
}
......@@ -20,6 +20,6 @@ package org.sw4j.tool.html.crawler;
public interface ExternalReferenceListener {
void externalLink(ExternalReferenceEvent event);
void link(ExternalReferenceEvent event);
}
/*
* html-crawler is a library to help crawling websites.
* Copyright (C) 2020 Uwe Plonus
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.sw4j.tool.html.crawler;
public enum LinkType {
HYPERLINK,
EXTERNAL_RESOURCE,
FORM_SUBMISSION,
;
}
/*
* html-crawler is a library to help crawling websites.
* Copyright (C) 2020 Uwe Plonus
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.sw4j.tool.html.crawler;
public enum RelationType {
ALTERNATE,
AUTHOR,
CANONICAL,
DNS_PREFETCH,
HELP,
ICON,
LICENSE,
MODULEPRELOAD,
NEXT,
PINGBACK,
PRECONNECT,
PREFETCH,
PRELOAD,
PRERENDER,
PREV,
SEARCH,
STYLESHEET,
ALTERNATE_STYLESHEET,
;
}
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ html-crawler is a library to help crawling websites.
~ Copyright (C) 2020 Uwe Plonus
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<project xmlns='http://maven.apache.org/DECORATION/1.6.0'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://maven.apache.org/DECORATION/1.6.0 http://maven.apache.org/xsd/decoration-1.6.0.xsd'
name="Random Barcode Generator">
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>${fluido-skin.version}</version>
</skin>
<body>
<menu name="User Documentation">
<item href="index.html" name="Introduction"/>
</menu>
<menu ref="reports"/>
</body>
</project>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body></body>
</html>
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="style.css">
<link rel="alternate stylesheet" href="altstyle.css" title="Alt">
<head>
<title></title>
</head>
<body></body>
</html>
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="style.css">
<head>
<title></title>
</head>
<body></body>
</html>