|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + |
| 7 | + <groupId>com.jsonljd</groupId> |
| 8 | + <artifactId>konga-lang-plugin</artifactId> |
| 9 | + <version>1.0.0</version> |
| 10 | + <name>konga-lang-plugin</name> |
| 11 | + <url>https://github.com/jsonljd/konga-lang-plugin</url> |
| 12 | + |
| 13 | + <properties> |
| 14 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 15 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 16 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 17 | + <project.release.directory>${project.basedir}/release</project.release.directory> |
| 18 | + <project.deploy>deploy</project.deploy> |
| 19 | + <java.version>1.8</java.version> |
| 20 | + <docker.image.hub>dockerhub</docker.image.hub> |
| 21 | + <docker.image.prefix>jsonljd</docker.image.prefix> |
| 22 | + </properties> |
| 23 | + |
| 24 | + <dependencies> |
| 25 | + <dependency> |
| 26 | + <groupId>junit</groupId> |
| 27 | + <artifactId>junit</artifactId> |
| 28 | + <version>4.11</version> |
| 29 | + <scope>test</scope> |
| 30 | + </dependency> |
| 31 | + <!-- https://mvnrepository.com/artifact/dom4j/dom4j --> |
| 32 | + <dependency> |
| 33 | + <groupId>dom4j</groupId> |
| 34 | + <artifactId>dom4j</artifactId> |
| 35 | + <version>1.6.1</version> |
| 36 | + </dependency> |
| 37 | + <!-- https://mvnrepository.com/artifact/args4j/args4j --> |
| 38 | + <dependency> |
| 39 | + <groupId>args4j</groupId> |
| 40 | + <artifactId>args4j</artifactId> |
| 41 | + <version>2.33</version> |
| 42 | + </dependency> |
| 43 | + |
| 44 | + <dependency> |
| 45 | + <groupId>org.projectlombok</groupId> |
| 46 | + <artifactId>lombok</artifactId> |
| 47 | + <version>1.18.12</version> |
| 48 | + </dependency> |
| 49 | + |
| 50 | + <dependency> |
| 51 | + <groupId>org.slf4j</groupId> |
| 52 | + <artifactId>jcl-over-slf4j</artifactId> |
| 53 | + <version>1.7.19</version> |
| 54 | + </dependency> |
| 55 | + <dependency> |
| 56 | + <groupId>org.slf4j</groupId> |
| 57 | + <artifactId>slf4j-api</artifactId> |
| 58 | + <version>1.7.19</version> |
| 59 | + </dependency> |
| 60 | + <dependency> |
| 61 | + <groupId>ch.qos.logback</groupId> |
| 62 | + <artifactId>logback-core</artifactId> |
| 63 | + <version>1.1.3</version> |
| 64 | + </dependency> |
| 65 | + <dependency> |
| 66 | + <groupId>ch.qos.logback</groupId> |
| 67 | + <artifactId>logback-access</artifactId> |
| 68 | + <version>1.1.3</version> |
| 69 | + </dependency> |
| 70 | + <dependency> |
| 71 | + <groupId>ch.qos.logback</groupId> |
| 72 | + <artifactId>logback-classic</artifactId> |
| 73 | + <version>1.1.3</version> |
| 74 | + </dependency> |
| 75 | + <dependency> |
| 76 | + <groupId>commons-codec</groupId> |
| 77 | + <artifactId>commons-codec</artifactId> |
| 78 | + <version>1.11</version> |
| 79 | + </dependency> |
| 80 | + <dependency> |
| 81 | + <groupId>org.apache.commons</groupId> |
| 82 | + <artifactId>commons-lang3</artifactId> |
| 83 | + <version>3.3.2</version> |
| 84 | + </dependency> |
| 85 | + </dependencies> |
| 86 | + <build> |
| 87 | + <plugins> |
| 88 | + <plugin> |
| 89 | + <groupId>org.apache.maven.plugins</groupId> |
| 90 | + <artifactId>maven-compiler-plugin</artifactId> |
| 91 | + <version>3.5.1</version> |
| 92 | + <configuration> |
| 93 | + <source>1.7</source> |
| 94 | + <target>1.7</target> |
| 95 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 96 | + </configuration> |
| 97 | + </plugin> |
| 98 | + <plugin> |
| 99 | + <groupId>org.apache.maven.plugins</groupId> |
| 100 | + <artifactId>maven-surefire-plugin</artifactId> |
| 101 | + <configuration> |
| 102 | + <skipTests>true</skipTests> |
| 103 | + </configuration> |
| 104 | + </plugin> |
| 105 | + <plugin> |
| 106 | + <groupId>org.apache.maven.plugins</groupId> |
| 107 | + <artifactId>maven-dependency-plugin</artifactId> |
| 108 | + <version>3.0.1</version> |
| 109 | + <executions> |
| 110 | + <execution> |
| 111 | + <id>copy-dependencies</id> |
| 112 | + <phase>package</phase> |
| 113 | + <goals> |
| 114 | + <goal>copy-dependencies</goal> |
| 115 | + </goals> |
| 116 | + <configuration> |
| 117 | + <outputDirectory>${project.release.directory}/${project.deploy}/lib</outputDirectory> |
| 118 | + <overWriteReleases>false</overWriteReleases> |
| 119 | + <overWriteSnapshots>false</overWriteSnapshots> |
| 120 | + <overWriteIfNewer>true</overWriteIfNewer> |
| 121 | + </configuration> |
| 122 | + </execution> |
| 123 | + </executions> |
| 124 | + </plugin> |
| 125 | + <plugin> |
| 126 | + <groupId>org.apache.maven.plugins</groupId> |
| 127 | + <artifactId>maven-resources-plugin</artifactId> |
| 128 | + <version>3.0.1</version> |
| 129 | + <executions> |
| 130 | + <execution> |
| 131 | + <id>copy-resources</id> |
| 132 | + <phase>package</phase> |
| 133 | + <goals> |
| 134 | + <goal>copy-resources</goal> |
| 135 | + </goals> |
| 136 | + <configuration> |
| 137 | + <encoding>UTF-8</encoding> |
| 138 | + <outputDirectory>${project.release.directory}/${project.deploy}/conf</outputDirectory> |
| 139 | + <resources> |
| 140 | + <resource> |
| 141 | + <directory>src/main/resources/</directory> |
| 142 | + <includes> |
| 143 | + <include>*.xml</include> |
| 144 | + <include>*.yml</include> |
| 145 | + <include>*.properties</include> |
| 146 | + <include>*.conf</include> |
| 147 | + </includes> |
| 148 | + </resource> |
| 149 | + </resources> |
| 150 | + </configuration> |
| 151 | + </execution> |
| 152 | + <execution> |
| 153 | + <id>copy-sh</id> |
| 154 | + <phase>package</phase> |
| 155 | + <goals> |
| 156 | + <goal>copy-resources</goal> |
| 157 | + </goals> |
| 158 | + <configuration> |
| 159 | + <encoding>UTF-8</encoding> |
| 160 | + <outputDirectory>${project.release.directory}/${project.deploy}/</outputDirectory> |
| 161 | + <resources> |
| 162 | + <resource> |
| 163 | + <directory>src/main/resources/</directory> |
| 164 | + <includes> |
| 165 | + <include>*.sh</include> |
| 166 | + <include>*.bat</include> |
| 167 | + </includes> |
| 168 | + </resource> |
| 169 | + </resources> |
| 170 | + </configuration> |
| 171 | + </execution> |
| 172 | + </executions> |
| 173 | + </plugin> |
| 174 | + <plugin> |
| 175 | + <groupId>org.apache.maven.plugins</groupId> |
| 176 | + <artifactId>maven-jar-plugin</artifactId> |
| 177 | + <version>2.4</version> |
| 178 | + <executions> |
| 179 | + <execution> |
| 180 | + <id>jarexclude</id> |
| 181 | + <phase>package</phase> |
| 182 | + <goals> |
| 183 | + <goal>jar</goal> |
| 184 | + </goals> |
| 185 | + <configuration> |
| 186 | + <outputDirectory>${project.release.directory}/${project.deploy}/lib</outputDirectory> |
| 187 | + <excludes> |
| 188 | + <exclude>*.xml</exclude> |
| 189 | + <exclude>*.yml</exclude> |
| 190 | + <exclude>*.properties</exclude> |
| 191 | + <exclude>*.conf</exclude> |
| 192 | + <exclude>*.sh</exclude> |
| 193 | + </excludes> |
| 194 | + </configuration> |
| 195 | + </execution> |
| 196 | + </executions> |
| 197 | + </plugin> |
| 198 | + <plugin> |
| 199 | + <groupId>com.spotify</groupId> |
| 200 | + <artifactId>dockerfile-maven-plugin</artifactId> |
| 201 | + <version>1.4.13</version> |
| 202 | + <executions> |
| 203 | + <execution> |
| 204 | + <id>default</id> |
| 205 | + <goals> |
| 206 | + <goal>build</goal> |
| 207 | + <goal>push</goal> |
| 208 | + </goals> |
| 209 | + </execution> |
| 210 | + </executions> |
| 211 | + <configuration> |
| 212 | + <useMavenSettingsForAuth>true</useMavenSettingsForAuth> |
| 213 | + <repository>${docker.image.prefix}/konga-lang-plugin</repository> |
| 214 | + <skip>true</skip> |
| 215 | + <tag>${project.version}</tag> |
| 216 | + </configuration> |
| 217 | + </plugin> |
| 218 | + |
| 219 | + </plugins> |
| 220 | + </build> |
| 221 | + <distributionManagement> |
| 222 | + <repository> |
| 223 | + <id>file-repository</id> |
| 224 | + <url>file:${project.release.directory}/${project.deploy}</url> |
| 225 | + </repository> |
| 226 | + </distributionManagement> |
| 227 | +</project> |
0 commit comments