Skip to content

Commit

Permalink
add distro zip creation
Browse files Browse the repository at this point in the history
  • Loading branch information
edeso committed Aug 24, 2021
1 parent 783a33e commit 15bfb10
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 39 deletions.
30 changes: 30 additions & 0 deletions distro-zip.xml
@@ -0,0 +1,30 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
<id>distro zip</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<!-- place extension jar in folder root to be parsed by OJ -->
<outputDirectory>/</outputDirectory>
<useTransitiveFiltering>false</useTransitiveFiltering>
<includes>
<include>${artifact}</include>
</includes>
</dependencySet>
<dependencySet>
<!-- place deps in a extension specific subfolder -->
<outputDirectory>/${project.build.finalName}</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
<useTransitiveFiltering>true</useTransitiveFiltering>
<useProjectArtifact>false</useProjectArtifact>
<excludes>
<exclude>org.openjump:OpenJUMP</exclude>
</excludes>
</dependencySet>
</dependencySets>
</assembly>
122 changes: 83 additions & 39 deletions pom.xml
@@ -1,45 +1,89 @@
<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>
<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>

<groupId>org.openjump</groupId>
<artifactId>topology-extension</artifactId>
<version>2.0.0</version>
<groupId>org.openjump</groupId>
<artifactId>topology-extension</artifactId>
<version>2.0.0</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.number>0.0.0</version.number>
<jts.version>1.18.1</jts.version>
</properties>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<id>ojrepo</id>
<name>OpenJUMP Snapshot Repository</name>
<url>https://ojrepo.soldin.de/</url>
</repository>
</repositories>
<repositories>
<repository>
<id>ojrepo</id>
<name>OpenJUMP Snapshot Repository</name>
<url>https://ojrepo.soldin.de/</url>
</repository>
</repositories>

<dependencies>
<dependencies>
<dependency>
<groupId>org.openjump</groupId>
<artifactId>OpenJUMP</artifactId>
<version>2.0-main-SNAPSHOT</version>
</dependency>
<!-- provided by OJ Core as well
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
-->
</dependencies>

<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
<version>${jts.version}</version>
</dependency>

<dependency>
<groupId>org.openjump</groupId>
<artifactId>OpenJUMP</artifactId>
<version>2.0-main-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<id>distro zip</id>
<phase>package</phase>
<configuration>
<descriptors>
<descriptor>distro-zip.xml</descriptor>
</descriptors>
<attach>false</attach>
</configuration>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
<version>1.10</version>
<executions>
<execution>
<goals>
<goal>files</goal>
</goals>
<phase>package</phase>
<configuration>
<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<includes>
<include>${project.build.finalName}.zip</include>
</includes>
</fileSet>
</fileSets>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 15bfb10

Please sign in to comment.