mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-02-17 03:32:36 +01:00
auto build zip files, new dependency folder
This commit is contained in:
parent
f286456c06
commit
34889f88f1
17
G-Earth/assembly/linux.xml
Normal file
17
G-Earth/assembly/linux.xml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<assembly
|
||||||
|
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||||
|
<id>zip</id>
|
||||||
|
<formats>
|
||||||
|
<format>zip</format>
|
||||||
|
</formats>
|
||||||
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
<fileSets>
|
||||||
|
<fileSet>
|
||||||
|
<directory>../Build/Linux/</directory>
|
||||||
|
<useDefaultExcludes>true</useDefaultExcludes>
|
||||||
|
<outputDirectory>../G-Earth/</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</assembly>
|
17
G-Earth/assembly/mac.xml
Normal file
17
G-Earth/assembly/mac.xml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<assembly
|
||||||
|
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||||
|
<id>zip</id>
|
||||||
|
<formats>
|
||||||
|
<format>zip</format>
|
||||||
|
</formats>
|
||||||
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
<fileSets>
|
||||||
|
<fileSet>
|
||||||
|
<directory>../Build/Mac/</directory>
|
||||||
|
<useDefaultExcludes>true</useDefaultExcludes>
|
||||||
|
<outputDirectory>../G-Earth/</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</assembly>
|
17
G-Earth/assembly/windows_32bit.xml
Normal file
17
G-Earth/assembly/windows_32bit.xml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<assembly
|
||||||
|
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||||
|
<id>zip</id>
|
||||||
|
<formats>
|
||||||
|
<format>zip</format>
|
||||||
|
</formats>
|
||||||
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
<fileSets>
|
||||||
|
<fileSet>
|
||||||
|
<directory>../Build/Windows_32bit/</directory>
|
||||||
|
<useDefaultExcludes>true</useDefaultExcludes>
|
||||||
|
<outputDirectory>../G-Earth/</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</assembly>
|
17
G-Earth/assembly/windows_64bit.xml
Normal file
17
G-Earth/assembly/windows_64bit.xml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<assembly
|
||||||
|
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||||
|
<id>zip</id>
|
||||||
|
<formats>
|
||||||
|
<format>zip</format>
|
||||||
|
</formats>
|
||||||
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
<fileSets>
|
||||||
|
<fileSet>
|
||||||
|
<directory>../Build/Windows_64bit/</directory>
|
||||||
|
<useDefaultExcludes>true</useDefaultExcludes>
|
||||||
|
<outputDirectory>../G-Earth/</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</assembly>
|
163
G-Earth/pom.xml
163
G-Earth/pom.xml
@ -22,55 +22,48 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<finalName>G-Earth</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- this builds a non-standalone JAR file -->
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>3.2.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-dependencies</id>
|
||||||
|
<phase>prepare-package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/bin/Dependencies</outputDirectory>
|
||||||
|
<overWriteReleases>false</overWriteReleases>
|
||||||
|
<overWriteSnapshots>false</overWriteSnapshots>
|
||||||
|
<overWriteIfNewer>true</overWriteIfNewer>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
<version>3.1.2</version>
|
<version>3.2.2</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<outputDirectory>${project.build.directory}/bin</outputDirectory>
|
<outputDirectory>${project.build.directory}/bin</outputDirectory>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
||||||
<addClasspath>true</addClasspath>
|
<addClasspath>true</addClasspath>
|
||||||
<classpathPrefix>lib/</classpathPrefix>
|
<classpathPrefix>Dependencies/</classpathPrefix>
|
||||||
<mainClass>gearth.Main</mainClass>
|
<mainClass>gearth.Main</mainClass>
|
||||||
<useUniqueVersions>false</useUniqueVersions>
|
|
||||||
</manifest>
|
</manifest>
|
||||||
</archive>
|
</archive>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
|
||||||
<version>3.1.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>single</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${project.build.directory}/bin</outputDirectory>
|
|
||||||
<archive>
|
|
||||||
<manifest>
|
|
||||||
<mainClass>gearth.Main</mainClass>
|
|
||||||
</manifest>
|
|
||||||
</archive>
|
|
||||||
<descriptorRefs>
|
|
||||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
||||||
</descriptorRefs>
|
|
||||||
<!--<finalName>G-Earth-${project.version}</finalName>-->
|
|
||||||
<finalName>G-Earth</finalName>
|
|
||||||
<appendAssemblyId>false</appendAssemblyId>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- global build folder -->
|
<!-- global build folder-->
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
<version>3.0.0</version>
|
<version>3.0.0</version>
|
||||||
@ -80,41 +73,26 @@
|
|||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
<configuration>
|
<configuration>
|
||||||
<target name="copy G-Earth.jar to Build folder">
|
<target name="copy G-Earth.jar to Build folder">
|
||||||
<copy file="target/bin/G-Earth.jar" todir="../Build/Mac/"/>
|
|
||||||
<copy file="target/bin/G-Earth.jar" todir="../Build/Linux/"/>
|
|
||||||
<copy file="target/bin/G-Earth.jar" todir="../Build/Windows_32bit/"/>
|
|
||||||
<copy file="target/bin/G-Earth.jar" todir="../Build/Windows_64bit/"/>
|
|
||||||
|
|
||||||
<copy file="src/main/resources/build/messages.json" todir="../Build/Mac/"/>
|
|
||||||
<copy file="src/main/resources/build/messages.json" todir="../Build/Linux/"/>
|
|
||||||
<copy file="src/main/resources/build/messages.json" todir="../Build/Windows_32bit/"/>
|
|
||||||
<copy file="src/main/resources/build/messages.json" todir="../Build/Windows_64bit/"/>
|
|
||||||
|
|
||||||
<copy todir="../Build/Mac/">
|
<copy todir="../Build/Mac/">
|
||||||
<fileset dir="src/main/resources/build/mac" includes="**/*" />
|
<fileset dir="target/bin" includes="**/*" />
|
||||||
|
<fileset dir="src/main/resources/build/common" includes="**/*" />
|
||||||
|
<fileset dir="src/main/resources/build/mac" includes="**/*" excludes=".gitkeep" />
|
||||||
</copy>
|
</copy>
|
||||||
<copy todir="../Build/Linux/">
|
<copy todir="../Build/Linux/">
|
||||||
|
<fileset dir="target/bin" includes="**/*" />
|
||||||
|
<fileset dir="src/main/resources/build/common" includes="**/*" />
|
||||||
<fileset dir="src/main/resources/build/linux" includes="**/*" excludes=".gitkeep" />
|
<fileset dir="src/main/resources/build/linux" includes="**/*" excludes=".gitkeep" />
|
||||||
</copy>
|
</copy>
|
||||||
<copy todir="../Build/Windows_32bit/">
|
<copy todir="../Build/Windows_32bit/">
|
||||||
<fileset dir="src/main/resources/build/windows/32bit" includes="**/*" />
|
<fileset dir="target/bin" includes="**/*" />
|
||||||
|
<fileset dir="src/main/resources/build/common" includes="**/*" />
|
||||||
|
<fileset dir="src/main/resources/build/windows/32bit" includes="**/*" excludes=".gitkeep" />
|
||||||
</copy>
|
</copy>
|
||||||
<copy todir="../Build/Windows_64bit/">
|
<copy todir="../Build/Windows_64bit/">
|
||||||
<fileset dir="src/main/resources/build/windows/64bit" includes="**/*" />
|
<fileset dir="target/bin" includes="**/*" />
|
||||||
</copy>
|
<fileset dir="src/main/resources/build/common" includes="**/*" />
|
||||||
|
<fileset dir="src/main/resources/build/windows/64bit" includes="**/*" excludes=".gitkeep" />
|
||||||
|
|
||||||
<copy todir="../Build/Mac/Cache">
|
|
||||||
<fileset dir="src/main/resources/build/cache" includes="**/*" />
|
|
||||||
</copy>
|
|
||||||
<copy todir="../Build/Linux/Cache">
|
|
||||||
<fileset dir="src/main/resources/build/cache" includes="**/*" />
|
|
||||||
</copy>
|
|
||||||
<copy todir="../Build/Windows_32bit/Cache">
|
|
||||||
<fileset dir="src/main/resources/build/cache" includes="**/*" />
|
|
||||||
</copy>
|
|
||||||
<copy todir="../Build/Windows_64bit/Cache">
|
|
||||||
<fileset dir="src/main/resources/build/cache" includes="**/*" />
|
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
@ -139,6 +117,75 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
<version>3.3.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>ziprelease-mac</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
|
<outputDirectory>../Build</outputDirectory>
|
||||||
|
<finalName>G-Earth-${project.version}-Mac</finalName>
|
||||||
|
<descriptors>
|
||||||
|
<descriptor>${basedir}/assembly/mac.xml</descriptor>
|
||||||
|
</descriptors>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>ziprelease-linux</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
|
<outputDirectory>../Build</outputDirectory>
|
||||||
|
<finalName>G-Earth-${project.version}-Linux</finalName>
|
||||||
|
<descriptors>
|
||||||
|
<descriptor>${basedir}/assembly/linux.xml</descriptor>
|
||||||
|
</descriptors>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>ziprelease-windows_32bit</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
|
<outputDirectory>../Build</outputDirectory>
|
||||||
|
<finalName>G-Earth-${project.version}-Windows_32bit</finalName>
|
||||||
|
<descriptors>
|
||||||
|
<descriptor>${basedir}/assembly/windows_32bit.xml</descriptor>
|
||||||
|
</descriptors>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>ziprelease-windows_64bit</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
|
<outputDirectory>../Build</outputDirectory>
|
||||||
|
<finalName>G-Earth-${project.version}-Windows_64bit</finalName>
|
||||||
|
<descriptors>
|
||||||
|
<descriptor>${basedir}/assembly/windows_64bit.xml</descriptor>
|
||||||
|
</descriptors>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user