freight-sa-15.0-2022w48.pom

Checksums

MD5 e865c293b0914914e63b69fef730e01f
SHA1 c49615ceff9a2757dd4c8d675efefa88c35bca59
SHA256 56e49f192d32ae8fd27c93a2f7fdff245f43bf20100a2deae06be465989057a0
SHA512 c5385f63aa4061784f04031a2cb89b688f5e8a657100ed0e1a5aa0ff97f6c7191d773f5cce5e485905f7eba8e53c432f5f07579a5efc4886a3ed314f5c43adc2

POM

<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.matsim.up.freight</groupId>
    <artifactId>freight-sa</artifactId>
    <version>15.0-2022w48</version>
    <name>freight-sa</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>

        <!-- MATSim version to use -->
        <matsim.version>15.0-2022w48</matsim.version>
    </properties>


    <repositories>
        <repository>
            <!-- Repository for MATSim (MATSim is not on Maven central, releases and snapshots) -->
            <id>matsim</id>
            <url>https://repo.matsim.org/repository/matsim</url>
        </repository>

        <repository>
            <!-- Geotools is not on Maven central -->
            <id>osgeo</id>
            <name>OSGeo Release Repository</name>
            <url>https://repo.osgeo.org/repository/release/</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>

        <!-- PackageCloud for matsim-sa -->
        <repository>
            <id>matsim-up-matsim-up</id>
            <url>https://packagecloud.io/matsim-up/matsim-up/maven2</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

    <dependencies>
        <!-- This is the matsim "core": -->
        <dependency>
            <groupId>org.matsim</groupId>
            <artifactId>matsim</artifactId>
            <version>${matsim.version}</version>
        </dependency>

        <dependency>
            <groupId>org.matsim</groupId>
            <artifactId>matsim</artifactId>
            <type>test-jar</type>
            <version>${matsim.version}</version>
            <scope>test</scope>
        </dependency>

        <!-- Include some MATSim extensions -->

        <!-- Include the JUnit testing library -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.13.1</version>
            <scope>test</scope>
        </dependency>

        <!-- The core MATSim-UP repository -->
        <dependency>
            <groupId>org.matsim.up</groupId>
            <artifactId>matsim-up</artifactId>
            <version>${matsim.version}</version>
        </dependency>

        <!-- Jung for complex networks and graphs in general -->
        <dependency>
            <groupId>com.northdata.jung</groupId>
            <artifactId>jung-api</artifactId>
            <version>2.2.0</version>
        </dependency>
        <dependency>
            <groupId>com.northdata.jung</groupId>
            <artifactId>jung-graph-impl</artifactId>
            <version>2.2.0</version>
        </dependency>
        <dependency>
            <groupId>com.northdata.jung</groupId>
            <artifactId>jung-io</artifactId>
            <version>2.2.0</version>
        </dependency>
        <dependency>
            <groupId>com.northdata.jung</groupId>
            <artifactId>jung-algorithms</artifactId>
            <version>2.2.0</version>
        </dependency>
        <dependency>
            <groupId>com.northdata.jung</groupId>
            <artifactId>jung-visualization</artifactId>
            <version>2.2.0</version>
        </dependency>


    </dependencies>


    <distributionManagement>
        <repository>
            <id>packagecloud-matsim-up</id>
            <url>packagecloud+https://packagecloud.io/matsim-up/freight-sa</url>
        </repository>
        <snapshotRepository>
            <id>packagecloud-matsim-up</id>
            <url>packagecloud+https://packagecloud.io/matsim-up/freight-sa</url>
        </snapshotRepository>
    </distributionManagement>

    <build>
        <extensions>
            <extension>
                <groupId>io.packagecloud.maven.wagon</groupId>
                <artifactId>maven-packagecloud-wagon</artifactId>
                <version>0.0.6</version>
            </extension>
        </extensions>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>11</source>
                    <target>11</target>
                    <showWarnings>false</showWarnings>
                    <showDeprecation>false</showDeprecation>
                    <encoding>UTF-8</encoding>
                    <!-- configure initial and maximal memory for compiling -->
                    <fork>true</fork>
                    <meminitial>128m</meminitial>
                    <maxmem>512m</maxmem>
                    <compilerArguments>
                        <Xmaxwarns>4000</Xmaxwarns>
                        <Xmaxerrs>100</Xmaxerrs>
                    </compilerArguments>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.2</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <outputFile>${project.basedir}/${project.build.finalName}.jar</outputFile>
                            <transformers>
                                <!-- This bit sets the main class for the executable jar as you otherwise would with the assembly plugin -->
                                <transformer
                                        implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                    <manifestEntries>
                                        <Main-Class>org.matsim.gui.MATSimGUI</Main-Class>
                                        <Specification-Vendor>org.matsim</Specification-Vendor>
                                        <Implementation-Vendor>org.matsim</Implementation-Vendor>
                                        <Implementation-Version>${project.version}</Implementation-Version>
                                    </manifestEntries>
                                </transformer>
                                <!-- This bit merges the various GeoTools META-INF/services files         -->
                                <transformer
                                        implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                            </transformers>
                            <filters>
                                <filter>
                                    <artifact>*:*</artifact>
                                    <excludes>
                                        <exclude>META-INF/*.SF</exclude>
                                        <exclude>META-INF/*.DSA</exclude>
                                        <exclude>META-INF/*.RSA</exclude>
                                    </excludes>
                                </filter>
                            </filters>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>