|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + 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>world.bentobox</groupId> |
| 8 | + <artifactId>controlpanel</artifactId> |
| 9 | + <version>${revision}</version> |
| 10 | + |
| 11 | + <name>ControlPanel</name> |
| 12 | + <description>This is simple ControlPanel for all BentoBox GameMode addons.</description> |
| 13 | + <url>https://github.com/BentoBoxWorld/ControlPanel</url> |
| 14 | + |
| 15 | + <inceptionYear>2019</inceptionYear> |
| 16 | + |
| 17 | + <!-- SCM is a GitHub link to your project --> |
| 18 | + <!-- Can be removed --> |
| 19 | + <scm> |
| 20 | + <connection>scm:git:https://github.com/BentoBoxWorld/ControlPanel.git</connection> |
| 21 | + < developerConnection>scm:git: [email protected]:BentoBoxWorld/ControlPanel.git</ developerConnection> |
| 22 | + <url>https://github.com/BentoBoxWorld/ControlPanel</url> |
| 23 | + </scm> |
| 24 | + |
| 25 | + <!-- ciManagement is a build server that runs builds for your project --> |
| 26 | + <!-- Can be removed --> |
| 27 | + <ciManagement> |
| 28 | + <system>jenkins</system> |
| 29 | + <url>http://ci.codemc.org/job/BentoBoxWorld/job/ControlPanel</url> |
| 30 | + </ciManagement> |
| 31 | + |
| 32 | + <!-- issueManagement is a link to issues page. --> |
| 33 | + <!-- Can be removed --> |
| 34 | + <issueManagement> |
| 35 | + <system>GitHub</system> |
| 36 | + <url>https://github.com/BentoBoxWorld/ControlPanel/issues</url> |
| 37 | + </issueManagement> |
| 38 | + |
| 39 | + <!-- distributionManagement contains public maven repositories for your addon --> |
| 40 | + <!-- Can be removed --> |
| 41 | + <distributionManagement> |
| 42 | + <snapshotRepository> |
| 43 | + <id>codemc-snapshots</id> |
| 44 | + <url>https://repo.codemc.org/repository/maven-snapshots</url> |
| 45 | + </snapshotRepository> |
| 46 | + <repository> |
| 47 | + <id>codemc-releases</id> |
| 48 | + <url>https://repo.codemc.org/repository/maven-releases</url> |
| 49 | + </repository> |
| 50 | + </distributionManagement> |
| 51 | + |
| 52 | + <!-- Properties contains all variables that can offten change, f.e. BentoBox API version --> |
| 53 | + <properties> |
| 54 | + <!-- Some JAVA encoding settings --> |
| 55 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 56 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 57 | + <java.version>1.8</java.version> |
| 58 | + |
| 59 | + <!-- SPIGOT API version --> |
| 60 | + <spigot.version>1.14.4-R0.1-SNAPSHOT</spigot.version> |
| 61 | + |
| 62 | + <!-- BentoBox API version --> |
| 63 | + <bentobox.version>1.7.0</bentobox.version> |
| 64 | + |
| 65 | + <!-- Revision variable removes warning about dynamic version --> |
| 66 | + <revision>${build.version}-SNAPSHOT</revision> |
| 67 | + <!-- This allows to change between versions and snapshots. --> |
| 68 | + <build.version>1.7.0</build.version> |
| 69 | + <build.number>-LOCAL</build.number> |
| 70 | + </properties> |
| 71 | + |
| 72 | + <profiles> |
| 73 | + <profile> |
| 74 | + <id>ci</id> |
| 75 | + <activation> |
| 76 | + <property> |
| 77 | + <name>env.BUILD_NUMBER</name> |
| 78 | + </property> |
| 79 | + </activation> |
| 80 | + <properties> |
| 81 | + <!-- Override only if necessary --> |
| 82 | + <build.number>-#${env.BUILD_NUMBER}</build.number> |
| 83 | + <!-- GIT_BRANCH --> |
| 84 | + </properties> |
| 85 | + </profile> |
| 86 | + <profile> |
| 87 | + <id>master</id> |
| 88 | + <activation> |
| 89 | + <property> |
| 90 | + <name>env.GIT_BRANCH</name> |
| 91 | + <value>origin/master</value> |
| 92 | + </property> |
| 93 | + </activation> |
| 94 | + <properties> |
| 95 | + <!-- Override only if necessary --> |
| 96 | + <revision>${build.version}</revision> |
| 97 | + <!-- Empties build number variable.--> |
| 98 | + <build.number></build.number> |
| 99 | + </properties> |
| 100 | + </profile> |
| 101 | + </profiles> |
| 102 | + |
| 103 | + <!-- Repositories contains links from were dependencies will be searched --> |
| 104 | + <repositories> |
| 105 | + <repository> |
| 106 | + <id>spigot-repo</id> |
| 107 | + <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots</url> |
| 108 | + </repository> |
| 109 | + <repository> |
| 110 | + <id>spigotmc-public</id> |
| 111 | + <url>https://hub.spigotmc.org/nexus/content/groups/public/</url> |
| 112 | + </repository> |
| 113 | + <repository> |
| 114 | + <id>codemc-repo</id> |
| 115 | + <url>https://repo.codemc.org/repository/maven-public/</url> |
| 116 | + </repository> |
| 117 | + <repository> |
| 118 | + <id>vault-repo</id> |
| 119 | + <url>http://nexus.hc.to/content/repositories/pub_releases</url> |
| 120 | + </repository> |
| 121 | + </repositories> |
| 122 | + |
| 123 | + <!-- Your addon must contain Spigot and BentoBox APIs dependencies. --> |
| 124 | + <dependencies> |
| 125 | + <dependency> |
| 126 | + <groupId>org.spigotmc</groupId> |
| 127 | + <artifactId>spigot-api</artifactId> |
| 128 | + <version>${spigot.version}</version> |
| 129 | + <scope>provided</scope> |
| 130 | + </dependency> |
| 131 | + |
| 132 | + <dependency> |
| 133 | + <groupId>world.bentobox</groupId> |
| 134 | + <artifactId>bentobox</artifactId> |
| 135 | + <version>${bentobox.version}</version> |
| 136 | + <scope>provided</scope> |
| 137 | + </dependency> |
| 138 | + </dependencies> |
| 139 | + |
| 140 | + <!-- Build contains information for maven. It allows to create correct jar file. --> |
| 141 | + <build> |
| 142 | + <finalName>${project.name}-${revision}${build.number}</finalName> |
| 143 | + |
| 144 | + <defaultGoal>clean package</defaultGoal> |
| 145 | + <resources> |
| 146 | + <resource> |
| 147 | + <directory>src/main/resources</directory> |
| 148 | + <filtering>true</filtering> |
| 149 | + </resource> |
| 150 | + <resource> |
| 151 | + <directory>src/main/resources/locales</directory> |
| 152 | + <targetPath>./locales</targetPath> |
| 153 | + <filtering>false</filtering> |
| 154 | + <includes> |
| 155 | + <include>*.yml</include> |
| 156 | + <include>*.json</include> |
| 157 | + </includes> |
| 158 | + </resource> |
| 159 | + </resources> |
| 160 | + <plugins> |
| 161 | + <plugin> |
| 162 | + <groupId>org.apache.maven.plugins</groupId> |
| 163 | + <artifactId>maven-clean-plugin</artifactId> |
| 164 | + <version>3.1.0</version> |
| 165 | + </plugin> |
| 166 | + <plugin> |
| 167 | + <groupId>org.apache.maven.plugins</groupId> |
| 168 | + <artifactId>maven-resources-plugin</artifactId> |
| 169 | + <version>3.1.0</version> |
| 170 | + </plugin> |
| 171 | + <plugin> |
| 172 | + <groupId>org.apache.maven.plugins</groupId> |
| 173 | + <artifactId>maven-compiler-plugin</artifactId> |
| 174 | + <version>3.7.0</version> |
| 175 | + <configuration> |
| 176 | + <source>${java.version}</source> |
| 177 | + <target>${java.version}</target> |
| 178 | + </configuration> |
| 179 | + </plugin> |
| 180 | + <plugin> |
| 181 | + <groupId>org.apache.maven.plugins</groupId> |
| 182 | + <artifactId>maven-surefire-plugin</artifactId> |
| 183 | + <version>2.22.0</version> |
| 184 | + </plugin> |
| 185 | + <plugin> |
| 186 | + <groupId>org.apache.maven.plugins</groupId> |
| 187 | + <artifactId>maven-jar-plugin</artifactId> |
| 188 | + <version>3.1.0</version> |
| 189 | + </plugin> |
| 190 | + <plugin> |
| 191 | + <groupId>org.apache.maven.plugins</groupId> |
| 192 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 193 | + <version>3.0.1</version> |
| 194 | + <configuration> |
| 195 | + <show>public</show> |
| 196 | + <failOnError>false</failOnError> |
| 197 | + <additionalJOption>-Xdoclint:none</additionalJOption> |
| 198 | + </configuration> |
| 199 | + <executions> |
| 200 | + <execution> |
| 201 | + <id>attach-javadocs</id> |
| 202 | + <goals> |
| 203 | + <goal>jar</goal> |
| 204 | + </goals> |
| 205 | + </execution> |
| 206 | + </executions> |
| 207 | + </plugin> |
| 208 | + <plugin> |
| 209 | + <groupId>org.apache.maven.plugins</groupId> |
| 210 | + <artifactId>maven-source-plugin</artifactId> |
| 211 | + <version>3.0.1</version> |
| 212 | + <executions> |
| 213 | + <execution> |
| 214 | + <id>attach-sources</id> |
| 215 | + <goals> |
| 216 | + <goal>jar-no-fork</goal> |
| 217 | + </goals> |
| 218 | + </execution> |
| 219 | + </executions> |
| 220 | + </plugin> |
| 221 | + <plugin> |
| 222 | + <groupId>org.apache.maven.plugins</groupId> |
| 223 | + <artifactId>maven-shade-plugin</artifactId> |
| 224 | + <version>3.1.1</version> |
| 225 | + <configuration> |
| 226 | + <minimizeJar>true</minimizeJar> |
| 227 | + </configuration> |
| 228 | + <executions> |
| 229 | + <execution> |
| 230 | + <phase>package</phase> |
| 231 | + <goals> |
| 232 | + <goal>shade</goal> |
| 233 | + </goals> |
| 234 | + </execution> |
| 235 | + </executions> |
| 236 | + </plugin> |
| 237 | + <plugin> |
| 238 | + <groupId>org.apache.maven.plugins</groupId> |
| 239 | + <artifactId>maven-install-plugin</artifactId> |
| 240 | + <version>2.5.2</version> |
| 241 | + </plugin> |
| 242 | + </plugins> |
| 243 | + </build> |
| 244 | + |
| 245 | +</project> |
0 commit comments