CIMExport
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>ch.ninecode.cim</groupId> <artifactId>CIMExport</artifactId> <version>2.12-3.0.1-5.1.1</version> </dependency>
<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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>ch.ninecode.cim</groupId> <artifactId>CIMSpark</artifactId> <relativePath>../pom.xml</relativePath> <version>2.12-3.0.1-5.1.1</version> </parent> <artifactId>CIMExport</artifactId> <name>${project.artifactId}</name> <description>Export Spark RDD as CIM files partitioned by topological island or transformer service area</description> <inceptionYear>2019</inceptionYear> <url>https://github.com/derrickoswald/CIMSpark/tree/master/CIMExport</url> <organization> <name>9code GmbH</name> <url>http://9code.ch</url> </organization> <scm> <url>git@github.com:derrickoswald/CIMSpark.git</url> <connection>scm:git:git@github.com:derrickoswald/CIMSpark.git</connection> <developerConnection>scm:git:git@github.com:derrickoswald/CIMSpark.git</developerConnection> </scm> <issueManagement> <url>https://github.com/derrickoswald/CIMSpark/issues</url> </issueManagement> <licenses> <license> <name>MIT License</name> <url>https://opensource.org/licenses/MIT</url> <comments>see https://github.com/derrickoswald/CIMSpark/blob/master/LICENSE.md</comments> <distribution>repo</distribution> </license> </licenses> <developers> <developer> <name>Derrick Oswald</name> <email>derrick.oswald@9code.ch</email> <id>derrickoswald</id> <organization>9code GmbH</organization> <organizationUrl>http://9code.ch/</organizationUrl> <timezone>1</timezone> <roles> <role>architect</role> <role>developer</role> </roles> <properties> <keybase>https://keybase.io/derrickoswald</keybase> <picUrl>https://secure.gravatar.com/avatar/d659afe3730a534914c5555640d326b3</picUrl> </properties> </developer> </developers> <distributionManagement> <snapshotRepository> <id>ossrh</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> <repository> <id>ossrh</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> </distributionManagement> <properties> <version.dependency.cassandra_driver>4.7.2</version.dependency.cassandra_driver> <version.dependency.joda-time>2.10.6</version.dependency.joda-time> <version.dependency.cassandra_maven>3.6</version.dependency.cassandra_maven> <version.dependency.log4j>2.12.1</version.dependency.log4j> <version.dependency.netty-all>4.1.41.Final</version.dependency.netty-all> </properties> <dependencies> <dependency> <groupId>com.github.scopt</groupId> <artifactId>scopt_${version.dependency.scala}</artifactId> <version>${version.dependency.scopt}</version> <scope>compile</scope> </dependency> <dependency> <groupId>ch.ninecode.cim</groupId> <artifactId>CIMReader</artifactId> <version>${project.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.datastax.spark</groupId> <artifactId>spark-cassandra-connector_${version.dependency.scala}</artifactId> <version>${version.dependency.cassandra_spark}</version> <scope>compile</scope> </dependency> <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> <version>${version.dependency.joda-time}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-library</artifactId> <version>${version.dependency.scalalibrary}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-compiler</artifactId> <version>${version.dependency.scalalibrary}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_${version.dependency.scala}</artifactId> <version>${version.dependency.spark}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-sql_${version.dependency.scala}</artifactId> <version>${version.dependency.spark}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-graphx_${version.dependency.scala}</artifactId> <version>${version.dependency.spark}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.datastax.oss</groupId> <artifactId>java-driver-core</artifactId> <version>${version.dependency.cassandra_driver}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.datastax.oss</groupId> <artifactId>java-driver-query-builder</artifactId> <version>${version.dependency.cassandra_driver}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.datastax.oss</groupId> <artifactId>java-driver-mapper-runtime</artifactId> <version>${version.dependency.cassandra_driver}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.scalatest</groupId> <artifactId>scalatest_${version.dependency.scala}</artifactId> <version>${version.dependency.scalatest}</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${version.dependency.junit}</version> <scope>test</scope> </dependency> </dependencies> <build> <sourceDirectory>src/main/scala</sourceDirectory> <testSourceDirectory>src/test/scala</testSourceDirectory> <resources> <resource> <directory>${basedir}/src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <testResources> <testResource> <directory>${basedir}/src/test/resources</directory> <filtering>true</filtering> </testResource> </testResources> <plugins> <!-- disable surefire --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${version.dependency.maven-surefire-plugin}</version> <configuration> <skipTests>true</skipTests> </configuration> </plugin> <!-- enable scalatest --> <plugin> <groupId>org.scalatest</groupId> <artifactId>scalatest-maven-plugin</artifactId> <version>${version.dependency.scalatest-maven-plugin}</version> <configuration> <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory> <junitxml>.</junitxml> <filereports>CIMExportSuite.txt</filereports> <suites>ch.ninecode.cim.CIMExportSuite</suites> </configuration> <executions> <execution> <id>test</id> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>${version.dependency.maven-failsafe-plugin}</version> <executions> <execution> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>${version.dependency.build-helper-maven-plugin}</version> <executions> <execution> <id>reserve-network-port</id> <goals> <goal>reserve-network-port</goal> </goals> <!-- reserve the ports in the phase before process-test-resources (where the resources are filtered and copied) --> <phase>generate-test-resources</phase> <configuration> <portNames> <portName>cassandra.jmxPort</portName> <portName>cassandra.rpcPort</portName> <portName>cassandra.stopPort</portName> <portName>cassandra.storagePort</portName> <portName>cassandra.nativeTransportPort</portName> </portNames> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cassandra-maven-plugin</artifactId> <version>${version.dependency.cassandra_maven}</version> <configuration> <clusterSize>1</clusterSize> <startNativeTransport>true</startNativeTransport> <yaml> rpc_port: ${cassandra.rpcPort} storage_port: ${cassandra.storagePort} native_transport_port: ${cassandra.nativeTransportPort} enable_user_defined_functions: true enable_scripted_user_defined_functions: true </yaml> </configuration> <dependencies> <dependency> <groupId>org.apache.cassandra</groupId> <artifactId>cassandra-all</artifactId> <version>3.11.4</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-cassandra</artifactId> <version>${version.dependency.log4j}</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> <version>${version.dependency.log4j}</version> </dependency> </dependencies> <executions> <execution> <id>create-integration-test-data</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> </goals> <configuration> <skip>${skipITs}</skip> </configuration> </execution> <execution> <id>remove-data-after-test</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> <configuration> <skip>${skipITs}</skip> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId> <version>${version.dependency.buildnumber-maven-plugin}</version> <executions> <execution> <phase>generate-resources</phase> <goals> <goal>create</goal> </goals> </execution> </executions> <configuration> <doCheck>false</doCheck> <doUpdate>false</doUpdate> </configuration> </plugin> <!-- assembly for stand-alone program --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>${version.dependency.maven-assembly-plugin}</version> <executions> <execution> <id>make-CIMExport-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <finalName>CIMExport-${project.version}</finalName> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest> <mainClass>ch.ninecode.cim.CIMExportMain</mainClass> </manifest> </archive> </configuration> </execution> </executions> </plugin> <!-- source jar --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>${version.dependency.maven-source-plugin}</version> <executions> <execution> <id>attach-sources</id> <phase>verify</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <!-- signing artifacts --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>${version.dependency.maven-gpg-plugin}</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> <configuration> <!--suppress UnresolvedMavenProperty --> <keyname>${gpg.keyname}</keyname> </configuration> </execution> </executions> </plugin> <!-- deploy artifacts --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>${version.dependency.maven-deploy-plugin}</version> </plugin> </plugins> </build> </project>