24 Unstar Star 90 Fork 25

hellowzk / light-spark

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
pom.xml 6.41 KB
Copy Edit Web IDE Raw Blame History
zhaokui authored 2020-09-15 11:07 . 修改:支持结果输出为文件
<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>com.github.hellowzk</groupId>
<artifactId>light-spark</artifactId>
<version>1.0.3-release</version>
<packaging>pom</packaging>
<!--<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>-->
<modules>
<module>light-spark-core</module>
<module>assembly</module>
<module>example</module>
</modules>
<properties>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.encoding>${project.build.sourceEncoding}</java.encoding>
<java.version>1.8</java.version>
<scala.encoding>${project.build.sourceEncoding}</scala.encoding>
<scala.version.major>2.11</scala.version.major>
<scala.version>${scala.version.major}.12</scala.version>
<spark.version.pre>2.2</spark.version.pre>
<spark.version>${spark.version.pre}.3</spark.version>
<hbase.version>1.4.3</hbase.version>
<hadoop.version>2.6.0-cdh5.13.0</hadoop.version>
<spark.deploy.mode>cluster</spark.deploy.mode>
<app.build.profile.id></app.build.profile.id>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>sh</nonFilteredFileExtension>
<nonFilteredFileExtension>conf</nonFilteredFileExtension>
<nonFilteredFileExtension>json</nonFilteredFileExtension>
<nonFilteredFileExtension>txt</nonFilteredFileExtension>
<nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>scala-compile-first</id>
<phase>process-resources</phase>
<goals>
<goal>add-source</goal>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>scala-test-compile</id>
<phase>process-test-resources</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<jvmArgs>
<jvmArg>-Xms64m</jvmArg>
<!--可以在测试环境修改为1024m,提交时为2048m-->
<!--<jvmArg>-Xmx1024m</jvmArg>-->
<jvmArg>-Xmx2048m</jvmArg>
</jvmArgs>
<scalaVersion>${scala.version}</scalaVersion>
<args>
<arg>-target:jvm-${java.version}</arg>
</args>
</configuration>
</plugin>
<!--生成javadoc包的插件-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!--生成java源码包插件(仅对java有用,对scala不管用) source-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dev</id>
<properties>
<app.build.profile.id>dev</app.build.profile.id>
</properties>
</profile>
<profile>
<id>spark2.2</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<spark.version.pre>2.2</spark.version.pre>
</properties>
</profile>
<profile>
<id>spark2.3</id>
<properties>
<spark.version.pre>2.3</spark.version.pre>
</properties>
</profile>
<profile>
<id>spark2.4</id>
<properties>
<spark.version.pre>2.4</spark.version.pre>
</properties>
</profile>
</profiles>
<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>
</project>

Comment ( 0 )

Sign in for post a comment

Scala
1
https://gitee.com/hellowzk/light-spark.git
git@gitee.com:hellowzk/light-spark.git
hellowzk
light-spark
light-spark
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542