This commit is contained in:
Daniel Mills 2020-01-04 16:54:08 -05:00
parent e1e47caf72
commit 8f973c8dc1
2 changed files with 242 additions and 107 deletions

View File

@ -5,60 +5,130 @@
<artifactId>Iris</artifactId> <artifactId>Iris</artifactId>
<name>Iris</name> <name>Iris</name>
<version>1.0</version> <version>1.0</version>
<build> <profiles>
<resources> <profile>
<resource> <id>dan</id>
<filtering>true</filtering> <build>
<directory>src/main/resources</directory> <resources>
<includes> <resource>
<include>**/*.xml</include> <filtering>true</filtering>
<include>**/*.yml</include> <directory>C:\Users\cyberpwn\Documents\development\workspace\Iris\src\main\resources</directory>
<include>**/*.txt</include> <includes>
<include>**/*.properties</include> <include>**/*.xml</include>
<include>**/*.html</include> <include>**/*.yml</include>
</includes> <include>**/*.txt</include>
</resource> <include>**/*.properties</include>
</resources> <include>**/*.html</include>
<plugins> </includes>
<plugin> </resource>
<artifactId>maven-shade-plugin</artifactId> </resources>
<version>3.1.0</version> <plugins>
<executions> <plugin>
<execution> <artifactId>maven-shade-plugin</artifactId>
<phase>package</phase> <version>3.1.0</version>
<goals> <executions>
<goal>shade</goal> <execution>
</goals> <phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>runbatchfile</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<skip>false</skip>
<executable>C:\Users\cyberpwn\Documents\development\workspace\Iris/scripts/copy.bat</executable>
<arguments>
<argument>C:\Users\cyberpwn\Documents\development\workspace\Iris\target\Iris-1.0.jar</argument>
<argument>C:\Users\cyberpwn\Documents\development\server\plugins\Iris.jar</argument>
</arguments>
</configuration>
</execution>
</executions>
<configuration> <configuration>
<minimizeJar>true</minimizeJar> <skip>false</skip>
<executable>C:\Users\cyberpwn\Documents\development\workspace\Iris/scripts/copy.bat</executable>
<arguments>
<argument>C:\Users\cyberpwn\Documents\development\workspace\Iris\target\Iris-1.0.jar</argument>
<argument>C:\Users\cyberpwn\Documents\development\server\plugins\Iris.jar</argument>
</arguments>
</configuration> </configuration>
</execution> </plugin>
</executions> </plugins>
</plugin> </build>
<plugin> </profile>
<groupId>org.codehaus.mojo</groupId> <profile>
<artifactId>exec-maven-plugin</artifactId> <id>brian</id>
<version>1.2</version> <build>
<executions> <resources>
<execution> <resource>
<id>runbatchfile</id> <filtering>true</filtering>
<phase>package</phase> <directory>src/main/resources</directory>
<goals> <includes>
<goal>exec</goal> <include>**/*.xml</include>
</goals> <include>**/*.yml</include>
</execution> <include>**/*.txt</include>
</executions> <include>**/*.properties</include>
<configuration> <include>**/*.html</include>
<skip>${skip.copy}</skip> </includes>
<executable>${project.basedir}/scripts/copy.bat</executable> </resource>
<arguments> </resources>
<argument>${project.basedir}\target\${project.name}-${project.version}.jar</argument> <plugins>
<argument>${development.location}</argument> <plugin>
</arguments> <artifactId>maven-shade-plugin</artifactId>
</configuration> <version>3.1.0</version>
</plugin> <executions>
</plugins> <execution>
</build> <phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>runbatchfile</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${skip.copy}</skip>
<executable>${project.basedir}/scripts/copy.bat</executable>
<arguments>
<argument>${project.basedir}\target\${project.name}-${project.version}.jar</argument>
<argument>${development.location.brian}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<repositories> <repositories>
<repository> <repository>
<id>pub</id> <id>pub</id>
@ -112,8 +182,9 @@
</dependencies> </dependencies>
<properties> <properties>
<skip.copy>false</skip.copy> <skip.copy>false</skip.copy>
<development.location.dan>${user.home}\Documents\development\server\plugins\${project.name}.jar</development.location.dan>
<secretary.build>package</secretary.build> <secretary.build>package</secretary.build>
<development.location>${user.home}\Documents\development\server\plugins\${project.name}.jar</development.location> <development.location.brian>${user.home}\Documents\development\server\plugins\${project.name}.jar</development.location.brian>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>

172
pom.xml
View File

@ -12,63 +12,127 @@
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<development.location>${user.home}\Documents\development\server\plugins\${project.name}.jar</development.location> <development.location.dan>${user.home}\Documents\development\server\plugins\${project.name}.jar</development.location.dan>
<development.location.brian>${user.home}\Documents\development\server\plugins\${project.name}.jar</development.location.brian>
</properties> </properties>
<build> <profiles>
<resources> <profile>
<resource> <id>dan</id>
<directory>src/main/resources</directory> <build>
<filtering>true</filtering> <resources>
<includes> <resource>
<include>**/*.xml</include> <directory>src/main/resources</directory>
<include>**/*.yml</include> <filtering>true</filtering>
<include>**/*.txt</include> <includes>
<include>**/*.properties</include> <include>**/*.xml</include>
<include>**/*.html</include> <include>**/*.yml</include>
</includes> <include>**/*.txt</include>
</resource> <include>**/*.properties</include>
</resources> <include>**/*.html</include>
<plugins> </includes>
<plugin> </resource>
<groupId>org.apache.maven.plugins</groupId> </resources>
<artifactId>maven-shade-plugin</artifactId> <plugins>
<version>3.1.0</version> <plugin>
<executions> <groupId>org.apache.maven.plugins</groupId>
<execution> <artifactId>maven-shade-plugin</artifactId>
<phase>package</phase> <version>3.1.0</version>
<goals> <executions>
<goal>shade</goal> <execution>
</goals> <phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>runbatchfile</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration> <configuration>
<minimizeJar>true</minimizeJar> <skip>${skip.copy}</skip>
<executable>${project.basedir}/scripts/copy.bat</executable>
<arguments>
<argument>${project.basedir}\target\${project.name}-${project.version}.jar</argument>
<argument>${development.location.dan}</argument>
</arguments>
</configuration> </configuration>
</execution> </plugin>
</executions> </plugins>
</plugin> </build>
<plugin> </profile>
<groupId>org.codehaus.mojo</groupId> <profile>
<artifactId>exec-maven-plugin</artifactId> <id>brian</id>
<version>1.2</version> <build>
<executions> <resources>
<execution> <resource>
<id>runbatchfile</id> <directory>src/main/resources</directory>
<phase>package</phase> <filtering>true</filtering>
<goals> <includes>
<goal>exec</goal> <include>**/*.xml</include>
</goals> <include>**/*.yml</include>
</execution> <include>**/*.txt</include>
</executions> <include>**/*.properties</include>
<configuration> <include>**/*.html</include>
<skip>${skip.copy}</skip> </includes>
<executable>${project.basedir}/scripts/copy.bat</executable> </resource>
<arguments> </resources>
<argument>${project.basedir}\target\${project.name}-${project.version}.jar</argument> <plugins>
<argument>${development.location}</argument> <plugin>
</arguments> <groupId>org.apache.maven.plugins</groupId>
</configuration> <artifactId>maven-shade-plugin</artifactId>
</plugin> <version>3.1.0</version>
</plugins> <executions>
</build> <execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>runbatchfile</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${skip.copy}</skip>
<executable>${project.basedir}/scripts/copy.bat</executable>
<arguments>
<argument>${project.basedir}\target\${project.name}-${project.version}.jar</argument>
<argument>${development.location.brian}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<repositories> <repositories>
<repository> <repository>
<id>pub</id> <id>pub</id>