Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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>
- <groupId>it.cedint</groupId>
- <artifactId>test-spark</artifactId>
- <version>1.0-SNAPSHOT</version>
- <properties>
- <encoding>UTF-8</encoding>
- <scala.version.major>2.11</scala.version.major>
- <scala.version.minor>8</scala.version.minor>
- <scala.version>${scala.version.major}.${scala.version.minor}</scala.version>
- <spark.version>2.3.0</spark.version>
- <hbase.version>2.1.4</hbase.version>
- <junit.version>4.4</junit.version>
- <scala.plugin.version>2.15.2</scala.plugin.version>
- <maven-surefire.plugin.version>2.22.1</maven-surefire.plugin.version>
- <hadoop.home.arg>-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl</hadoop.home.arg>
- <xml.parser.factory.arg>-Dhadoop.home.dir=${basedir}/src/main/resources/hadoop/</xml.parser.factory.arg>
- </properties>
- <repositories>
- <repository>
- <id>hortonworks</id>
- <url>http://repo.hortonworks.com/content/repositories/releases/</url>
- </repository>
- </repositories>
- <dependencies>
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-library</artifactId>
- <version>${scala.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.spark</groupId>
- <artifactId>spark-sql_${scala.version.major}</artifactId>
- <version>${spark.version}</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.hbase</groupId>
- <artifactId>hbase-client</artifactId>
- <version>${hbase.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hbase</groupId>
- <artifactId>hbase-server</artifactId>
- <version>${hbase.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hbase</groupId>
- <artifactId>hbase-common</artifactId>
- <version>${hbase.version}</version>
- </dependency>
- <dependency>
- <groupId>com.hortonworks.shc</groupId>
- <artifactId>shc-core</artifactId>
- <version>1.1.0.3.1.2.0-4</version>
- </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>
- <plugin>
- <groupId>org.scala-tools</groupId>
- <artifactId>maven-scala-plugin</artifactId>
- <version>${scala.plugin.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>compile</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <checkMultipleScalaVersions>false</checkMultipleScalaVersions>
- <scalaVersion>${scala.version}</scalaVersion>
- <mainClass>DDSJob</mainClass>
- <jvmArgs>
- <jvmArg>${hadoop.home.arg}</jvmArg>
- <jvmArg>${xml.parser.factory.arg}</jvmArg>
- </jvmArgs>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${maven-surefire.plugin.version}</version>
- <configuration>
- <argLine>${hadoop.home.arg} ${xml.parser.factory.arg}</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment