{"id":18354515,"url":"https://github.com/validator/maven-plugin","last_synced_at":"2025-04-06T12:31:49.400Z","repository":{"id":57738204,"uuid":"293731228","full_name":"validator/maven-plugin","owner":"validator","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-23T07:01:35.000Z","size":25,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-21T23:51:12.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/validator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-08T07:15:41.000Z","updated_at":"2024-06-20T10:36:56.000Z","dependencies_parsed_at":"2022-08-24T11:40:15.167Z","dependency_job_id":null,"html_url":"https://github.com/validator/maven-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validator%2Fmaven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validator%2Fmaven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validator%2Fmaven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validator%2Fmaven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/validator","download_url":"https://codeload.github.com/validator/maven-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247484320,"owners_count":20946384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T22:04:22.886Z","updated_at":"2025-04-06T12:31:49.075Z","avatar_url":"https://github.com/validator.png","language":"Java","readme":"# nvu-maven-plugin\n\nmaven plugin for HTML validation, using the [Nu Html Checker (v.Nu)](https://validator.github.io/)\n\nThe plugin can be configured to be run in the *valdiation* phase of the maven\nbuild and cause the build to fail in case errors are reported.\n\n## Usage\n\nAdd the plugin to your pom.xml:\n\n    \u003cbuild\u003e\n        \u003cplugins\u003e\n            \u003cplugin\u003e\n                \u003cgroupId\u003enu.validator\u003c/groupId\u003e\n                \u003cartifactId\u003evnu-maven-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e1.0.0\u003c/version\u003e\n\n                \u003c!-- The plugin should hook into the validate goal --\u003e\n                \u003cexecutions\u003e\n                    \u003cexecution\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003evalidate\u003c/goal\u003e\n                        \u003c/goals\u003e\n                    \u003c/execution\u003e\n                \u003c/executions\u003e\n\n                \u003cconfiguration\u003e\n                    \u003cfilesets\u003e\n                        \u003cfileset\u003e\n                            \u003cdirectory\u003e...\u003c/directory\u003e\n                            ...\n                        \u003c/fileset\u003e\n                    \u003c/filesets\u003e\n                    [\u003cvalidator\u003e...\u003c/validator\u003e]\n                \u003c/configuration\u003e\n            \u003c/plugin\u003e\n        \u003c/plugins\u003e\n    \u003c/build\u003e\n\nThe configuration is also made in the pom.xml. There are defaults in place,\nyou only need to configure at least one fileset to point to the files to be\nvalidated.\n\nThe fileset configuration consists of a directory (relative to the maven\nproject root) and an optional ant glob directive to filter the contents of\nthe directory. Directories are scanned recursively by default. Example:\n\n    \u003cfileset\u003e\n        \u003cdirectory\u003esrc/main/resources/templates\u003c/directory\u003e\n        \u003cglob\u003e**.html\u003c/glob\u003e\n    \u003c/fileset\u003e\n\nThe validator can also be configured:\n\n    \u003cvalidator\u003e\n        \u003cwarnings\u003eWARN\u003c/warnings\u003e\n        \u003cforceType\u003eHTML\u003c/forceType\u003e\n        \u003cfilters\u003e\n            \u003cfilter\u003e\n                ...\n            \u003c/filter\u003e\n        \u003c/filters\u003e\n    \u003c/validator\u003e\n\nHere, all settings are optional.\n\n### Handling warnings\n\nBy default, warnings are displayed as such and don't cause the build to\nfail. It can be configured through the \u003cwarnings\u003e directive:\n\n- WARN (default) - show warnings\n- IGNORE - supress warnings\n- ERROR - treat as errors (affects filtering, see below)\n\n### Forcing file type\n\nBy default, the file type (html/xhtml, css, svg) is determined by the\nfile extension. Through the \u003cforceType\u003e directive, it is possible to\nforce all files to be considered on of types HTML, CSS, SVG or XHTML.\n\n### Filtering\n\nIt is possible to filter warnings and/or errors based on \u003ctype\u003e (WARN,\nERROR, ALL, optional, default ALL) and a \u003cregex\u003e. Filtered items\nare completely ignored. Mutiple filters can be configured. Example:\n\n    \u003cfilter\u003e\n        \u003cregex\u003eDuplicate ID \"[a-zA-Z0-9.]*\"\u003c/regex\u003e\n        \u003ctype\u003eERROR\u003c/type\u003e\n    \u003c/filter\u003e\n\n## Additional (general) options\n\n### Failfast\n\nFail on first error (default is to process all errors and fail in the end\nif there are errors)\n\n    \u003cfailfast\u003etrue\u003c/failfast\u003e\n\n### ASCII / Unicode quotes\n\nBy default, quotes in the errors messages will be displayed as ASCII quotes.\nIt is possible to switch to unicode quites by setting this option to 'false'\n\n    \u003casciiquotes\u003efalse\u003c/asciiquotes\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalidator%2Fmaven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalidator%2Fmaven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalidator%2Fmaven-plugin/lists"}