kickstart.nvim/custom-snippets/snippets/xml.json

136 lines
4.3 KiB
JSON

{
"POM Root": {
"prefix": "pomr",
"body": [
"<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/xsd/maven-4.0.0.xsd\">",
" <modelVersion>4.0.0</modelVersion>",
" <groupId>${1:com.example}</groupId>",
" <artifactId>${2:my-app}</artifactId>",
" <version>${3:1.0-SNAPSHOT}</version>",
" <packaging>${4:jar}</packaging>",
" <name>${5:My App}</name>",
" <description>${6:My application}</description>",
" <properties>",
" <project.build.sourceEncoding>${7:utf-8}</project.build.sourceEncoding>",
" </properties>",
"</project>"
],
"description": "Maven POM Root"
},
"POM Parent": {
"prefix": "pomp",
"body": [
"<parent>",
" <groupId>${1:com.example}</groupId>",
" <artifactId>${2:my-parent}</artifactId>",
" <version>${3:1.0}</version>",
" <relativePath>${4:../pom.xml}</relativePath>",
"</parent>"
],
"description": "Maven POM Parent"
},
"POM Dependency": {
"prefix": "pomd",
"body": [
"<dependency>",
" <groupId>${1:com.example}</groupId>",
" <artifactId>${2:my-dependency}</artifactId>",
" <version>${3:1.0}</version>",
"</dependency>"
],
"description": "Maven POM Dependency"
},
"POM Plugin": {
"prefix": "poml",
"body": [
"<plugin>",
" <groupId>${1:org.apache.maven.plugins}</groupId>",
" <artifactId>${2:maven-${3:plugin}-plugin}</artifactId>",
" <version>${4:3.0}</version>",
" <!-- <configuration></configuration> -->",
" <!-- <executions></executions> -->",
"</plugin>"
],
"description": "Maven POM Plugin"
},
"POM Plugin Execution": {
"prefix": "pomle",
"body": [
"<execution>",
" <id>${1:default-cli}</id>",
" <phase>${2:compile}</phase>",
" <goals>",
" <goal>${3:run}</goal>",
" </goals>",
" <!-- <configuration></configuration> -->",
"</execution>"
],
"description": "Maven POM Plugin Execution"
},
"Google Format Plugin": {
"prefix": "mvnfmt",
"body": [
"<plugin>",
" <groupId>com.coveo</groupId>",
" <artifactId>fmt-maven-plugin</artifactId>",
" <version>${fmt-maven-plugin.version}</version>",
" <executions>",
" <execution>",
" <id>google-java-format</id>",
" <goals>",
" <goal>check</goal>",
" <!-- <goal>format</goal> -->",
" </goals>",
" </execution>",
" </executions>",
"</plugin>"
],
"description": "Google Format Plugin"
},
"Shade Plugin": {
"prefix": "mvnshade",
"body": [
"<plugin>",
" <groupId>org.apache.maven.plugins</groupId>",
" <artifactId>maven-shade-plugin</artifactId>",
" <version>${maven-shade-plugin.version}</version>",
" <configuration>",
" <createDependencyReducedPom>true</createDependencyReducedPom>",
" <filters>",
" <filter>",
" <artifact>*:*</artifact>",
" <excludes>",
" <exclude>META-INF/*.SF</exclude>",
" <exclude>META-INF/*.DSA</exclude>",
" <exclude>META-INF/*.RSA</exclude>",
" </excludes>",
" </filter>",
" </filters>",
" </configuration>",
" <executions>",
" <execution>",
" <id>shade</id>",
" <phase>package</phase>",
" <goals>",
" <goal>shade</goal>",
" </goals>",
" <configuration>",
" <transformers>",
" <transformer",
" implementation=\"org.apache.maven.plugins.shade.resource.ServicesResourceTransformer\"/>",
" <transformer",
" implementation=\"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer\">",
" <mainClass>${mainClass}</mainClass>",
" </transformer>",
" </transformers>",
" </configuration>",
" </execution>",
" </executions>",
"</plugin>"
],
"description": "Maven Shade Plugin"
}
}