Skip to content
Permalink
Browse files

Add alternative POM for use on Debian-based systems / GitHub Actions

This allows github actions to continue to build the Javadocs without normal developers having to edit or remove the path to the Javadoc executable every time.
  • Loading branch information
TheFlagCourier committed Nov 27, 2019
1 parent 27552b7 commit f240436ae96f4a1f9b9d672380c5cbfce0181fec
Showing with 185 additions and 2 deletions.
  1. +1 −1 .github/workflows/deploy-on-release.yml
  2. +0 −1 pom.xml
  3. +184 −0 pom_deb.xml
@@ -21,4 +21,4 @@ jobs:
run: |
mkdir ~/.m2
echo "<settings><servers><server><id>github</id><username>TownyAdvanced</username><password>${GITHUB_TOKEN}</password></server></servers></settings>" > ~/.m2/settings.xml
mvn -B deploy --file pom.xml
mvn -B deploy --file pom_deb.xml
@@ -160,7 +160,6 @@
</execution>
</executions>
<configuration>
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
<failOnError>false</failOnError>
<failOnWarnings>false</failOnWarnings>
<source>8</source>
@@ -0,0 +1,184 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>


<!-- NOTE: This pom file is meant for the GitHub Actions deployment workflow, and for MacOS and Debian derivatives.
Javadocs will only run on GitHub Actions by specifying the path to the Javadoc executable.
The same goes for the OS that the workflow is currently based on, Ubuntu. -->

<groupId>com.palmergames.bukkit.towny</groupId>
<artifactId>Towny</artifactId>
<packaging>jar</packaging>
<version>0.95.1.9</version>

<licenses>
<license>
<name>CC BY-NC-ND 3.0</name>
<url>http://creativecommons.org/licenses/by-nc-nd/3.0/</url>
<comments>Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported</comments>
</license>
</licenses>

<organization>
<name>TownyAdvanced</name>
<url>https://github.com/TownyAdvanced</url>
</organization>

<properties>
<java.version>1.8</java.version>
<project.bukkitAPIVersion>1.14</project.bukkitAPIVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<!-- For use with GitHub Package Registry -->
<!-- Requires repo write access, and proper local maven configuration -->
<!-- https://help.github.com/en/articles/about-github-package-registry -->
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub TownyAdvanced Apache Maven Packages</name>
<url>https://maven.pkg.github.com/TownyAdvanced/Towny</url>
</repository>
</distributionManagement>
<scm>
<connection>scm:git:https://github.com/TownyAdvanced/Towny.git</connection>
<developerConnection>scm:git:https://github.com/TownyAdvanced/Towny.git</developerConnection>
<url>https://github.com/TownyAdvanced/Towny</url>
</scm>

<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/TheNewEconomy/packages/</url>
</repository>
<repository>
<id>ess-repo</id>
<url>https://ci.ender.zone/plugin/repository/everything/</url>
</repository>
<repository>
<id>groupmanager-repo</id>
<url>https://raw.githubusercontent.com/GroupManager/GroupManager/maven/</url>
<!-- Not browsable from this URL (HTTP 400) - Works fine as Repo, though. For Ver. # - see https://github.com/GroupManager/GroupManager/ -->
</repository>
<repository>
<id>citizens-repo</id>
<url>http://repo.citizensnpcs.co/</url>
</repository>
<repository>
<id>placeholderapi</id>
<url>http://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.14.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.tnemc</groupId>
<artifactId>Reserve</artifactId>
<version>0.1.3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.tnemc.tnc</groupId>
<artifactId>TheNewChat</artifactId>
<version>1.5.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.MilkBowl</groupId>
<artifactId>VaultAPI</artifactId>
<version>1.7</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.ess3</groupId>
<artifactId>EssentialsX</artifactId>
<version>2.16.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>Xadzkon</groupId>
<artifactId>GroupManager</artifactId>
<version>0.2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.citizensnpcs</groupId>
<artifactId>citizensapi</artifactId>
<version>2.0.25-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- Included in vanilla minecraft's JAR -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.8.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.10.4</version>
<scope>provided</scope>
</dependency>

</dependencies>

<build>
<defaultGoal>clean package</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
<failOnError>false</failOnError>
<failOnWarnings>false</failOnWarnings>
<source>8</source>
</configuration>
</plugin>
</plugins>

<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>

0 comments on commit f240436

Please sign in to comment.
You can’t perform that action at this time.