META-INF.web-fragment.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- ao-mime-mappings - Shared set of MIME mappings with an emphasis on UTF-8. Copyright (C) 2020 AO Industries, Inc. [email protected] 7262 Bull Pen Cir Mobile, AL 36695 This file is part of ao-mime-mappings. ao-mime-mappings is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ao-mime-mappings 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with ao-mime-mappings. If not, see <http://www.gnu.org/licenses />. --> <web-fragment xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd" version="3.0" metadata-complete="false"> <name>@{project.artifactId}</name> <!-- Causes error: "The display name was defined in multiple fragments with different value" <display-name>@{project.name}</display-name> --> <description>@{project.description}</description> <!-- MIME types, with UTF-8 defaults where appropriate. Note: This list parallels the extensions in LastModifiedServlet.java --> <!-- CSS --> <mime-mapping> <extension>css</extension> <mime-type>text/css; charset=UTF-8</mime-type> </mime-mapping> <!-- Diagrams --> <mime-mapping> <!-- MIME type assigned to .dia files. Consistent with <a href="https://www.mediawiki.org/wiki/Extension:Dia">Dia Extension for MediaWiki</a>. --> <extension>dia</extension> <mime-type>application/x-dia-diagram</mime-type> </mime-mapping> <!-- Java --> <!-- jar : Default OK --> <!-- class: Default OK --> <mime-mapping> <extension>jnlp</extension> <mime-type>application/x-java-jnlp-file; charset=UTF-8</mime-type> </mime-mapping> <mime-mapping> <extension>tld</extension> <mime-type>application/xml; charset=UTF-8</mime-type> </mime-mapping> <!-- JavaScript --> <mime-mapping> <extension>js</extension> <mime-type>application/javascript; charset=UTF-8</mime-type> </mime-mapping> <mime-mapping> <extension>spt</extension> <mime-type>application/javascript; charset=UTF-8</mime-type> </mime-mapping> <mime-mapping> <extension>jsfl</extension> <mime-type>text/x-actionscript</mime-type> </mime-mapping> <!-- Image types --> <!-- All defaults OK --> <!-- HTML document --> <mime-mapping> <extension>htm</extension> <mime-type>text/html; charset=UTF-8</mime-type> </mime-mapping> <mime-mapping> <extension>html</extension> <mime-type>text/html; charset=UTF-8</mime-type> </mime-mapping> <mime-mapping> <extension>xhtml</extension> <mime-type>application/xhtml+xml; charset=UTF-8</mime-type> </mime-mapping> <mime-mapping> <!-- https://stackoverflow.com/questions/31250/content-type-for-mht-files --> <extension>mhtml</extension> <mime-type>multipart/related; charset=UTF-8</mime-type> </mime-mapping> <!-- PDF document --> <!-- pdf: Default OK --> <!-- XML document --> <mime-mapping> <extension>xml</extension> <mime-type>application/xml; charset=UTF-8</mime-type> </mime-mapping> <mime-mapping> <extension>xsd</extension> <mime-type>application/xml; charset=UTF-8</mime-type> </mime-mapping> <mime-mapping> <extension>rss</extension> <mime-type>application/rss+xml; charset=UTF-8</mime-type> </mime-mapping> </web-fragment>