diff options
author | Alberto Fanjul <albertofanjul@gmail.com> | 2018-07-21 12:52:55 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2018-07-25 13:05:57 +0200 |
commit | 70c6c74d276c272caac17157a95d428453d618cf (patch) | |
tree | 9e1dd7809ad19fc5998243efc4fa29011f037827 | |
parent | 2a7b8f1608bf4ad42fdac5992c6b33050b6d8fea (diff) | |
download | shared-mime-info-70c6c74d276c272caac17157a95d428453d618cf.tar.gz |
Add MIME type info for Maven
https://bugs.freedesktop.org/show_bug.cgi?id=107322
-rw-r--r-- | freedesktop.org.xml.in | 7 | ||||
-rw-r--r-- | tests/list | 2 | ||||
-rw-r--r-- | tests/pom.xml | 110 | ||||
-rw-r--r-- | tests/settings.xml | 15 |
4 files changed, 134 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index 4fc8dc52..824fc5b4 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -6495,6 +6495,13 @@ command to generate the output files. <root-XML namespaceURI="http://www.w3.org/1999/XSL/Transform" localName="stylesheet"/> <sub-class-of type="application/xml"/> </mime-type> + <mime-type type="text/x-maven+xml"> + <_comment>Maven description file</_comment> + <generic-icon name="text-x-generic"/> + <glob pattern="pom.xml"/> + <glob pattern="settings.xml"/> + <sub-class-of type="application/xml"/> + </mime-type> <mime-type type="text/xmcd"> <_comment>XMCD CD database</_comment> <sub-class-of type="text/plain"/> @@ -368,6 +368,8 @@ test.mml application/mathml+xml ox # Qt Linguist: https://bugreports.qt.io/browse/QTBUG-64435 linguist.ts text/vnd.qt.linguist test.xsl application/xslt+xml +pom.xml text/x-maven+xml ox +settings.xml text/x-maven+xml ox test.cbl text/x-cobol ox # Copied from http://docs.newzbin.com/index.php/Newzbin:NZB_Specs sample1.nzb application/x-nzb diff --git a/tests/pom.xml b/tests/pom.xml new file mode 100644 index 00000000..520047ec --- /dev/null +++ b/tests/pom.xml @@ -0,0 +1,110 @@ +<project> + <modelVersion>4.0.0</modelVersion> + <name>Maven Default Project</name> + + <repositories> + <repository> + <id>central</id> + <name>Maven Repository Switchboard</name> + <layout>default</layout> + <url>http://repo1.maven.org/maven2</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <pluginRepositories> + <pluginRepository> + <id>central</id> + <name>Maven Plugin Repository</name> + <url>http://repo1.maven.org/maven2</url> + <layout>default</layout> + <snapshots> + <enabled>false</enabled> + </snapshots> + <releases> + <updatePolicy>never</updatePolicy> + </releases> + </pluginRepository> + </pluginRepositories> + + <build> + <directory>target</directory> + <outputDirectory>target/classes</outputDirectory> + <finalName>${artifactId}-${version}</finalName> + <testOutputDirectory>target/test-classes</testOutputDirectory> + <sourceDirectory>src/main/java</sourceDirectory> + <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory> + <testSourceDirectory>src/test/java</testSourceDirectory> + <resources> + <resource> + <directory>src/main/resources</directory> + </resource> + </resources> + <testResources> + <testResource> + <directory>src/test/resources</directory> + </testResource> + </testResources> + </build> + + <reporting> + <outputDirectory>target/site</outputDirectory> + </reporting> + + <profiles> + <profile> + <id>release-profile</id> + + <activation> + <property> + <name>performRelease</name> + </property> + </activation> + + <build> + <plugins> + <plugin> + <inherited>true</inherited> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <inherited>true</inherited> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <inherited>true</inherited> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + + <configuration> + <updateReleaseInfo>true</updateReleaseInfo> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> + +</project> diff --git a/tests/settings.xml b/tests/settings.xml new file mode 100644 index 00000000..39a31155 --- /dev/null +++ b/tests/settings.xml @@ -0,0 +1,15 @@ +<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 + https://maven.apache.org/xsd/settings-1.0.0.xsd"> + <localRepository/> + <interactiveMode/> + <usePluginRegistry/> + <offline/> + <pluginGroups/> + <servers/> + <mirrors/> + <proxies/> + <profiles/> + <activeProfiles/> +</settings> |