<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"> <parent> <artifactId>real_time</artifactId> <groupId>org.example</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>real_time_database</artifactId> <!-- <packaging>war</packaging>--> <packaging>jar</packaging> <!-- TODO project name --> <name>real_time_database</name> <description>real_time_database</description> <properties> <!-- <wicket.version>1.3.2</wicket.version>--> <!-- <jetty.version>6.1.4</jetty.version>--> </properties> <!-- TODO <organization> <name>company name</name> <url>company url</url> </organization> --> <!-- <licenses>--> <!-- <license>--> <!-- <name>The Apache Software License, Version 2.0</name>--> <!-- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>--> <!-- <distribution>repo</distribution>--> <!-- </license>--> <!-- </licenses>--> <dependencies> <!--zookeeper--> <!-- <dependency>--> <!-- <groupId>org.apache.zookeeper</groupId>--> <!-- <artifactId>zookeeper</artifactId>--> <!-- <version>3.4.5</version>--> <!-- <scope>compile</scope>--> <!-- </dependency>--> <!--hadoop--> <dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-library</artifactId> <version>2.11.8</version> <scope>compile</scope> </dependency> <dependency> <groupId>net.alchim31.maven</groupId> <artifactId>scala-maven-plugin</artifactId> <version>3.4.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-auth</artifactId> <version>3.0.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifactId> <version>3.0.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-common</artifactId> <version>3.0.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-hdfs</artifactId> <version>3.0.0</version> <scope>compile</scope> </dependency> <!-- HBASE依赖 --> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-client</artifactId> <version>2.1.4</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-server</artifactId> <version>2.1.4</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-common</artifactId> <version>2.1.4</version> <scope>compile</scope> </dependency> <!-- 使用mr程序操作hbase 数据的导入 --> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-mapreduce</artifactId> <version>2.1.4</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_2.11</artifactId> <version>2.4.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-sql_2.11</artifactId> <version>2.4.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-streaming_2.11</artifactId> <version>2.4.0</version> <scope>compile</scope> </dependency> <!--json解析--> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.8.5</version> <scope>compile</scope> </dependency> <!-- <dependency>--> <!-- <groupId>org.apache.flink</groupId>--> <!-- <artifactId>fink-java</artifactId>--> <!-- ,<version></version>--> <!-- </dependency>--> <!-- WICKET DEPENDENCIES --> <!-- <dependency>--> <!-- <groupId>org.apache.wicket</groupId>--> <!-- <artifactId>wicket</artifactId>--> <!-- <version>${wicket.version}</version>--> <!-- </dependency>--> <!-- OPTIONAL <dependency> <groupId>org.apache.wicket</groupId> <artifactId>wicket-extensions</artifactId> <version>${wicket.version}</version> </dependency> --> <!-- LOGGING DEPENDENCIES - LOG4J --> <!-- <dependency>--> <!-- <groupId>org.slf4j</groupId>--> <!-- <artifactId>slf4j-log4j12</artifactId>--> <!-- <version>1.4.2</version>--> <!-- </dependency>--> <!-- <dependency>--> <!-- <groupId>log4j</groupId>--> <!-- <artifactId>log4j</artifactId>--> <!-- <version>1.2.14</version>--> <!-- </dependency>--> <!-- JUNIT DEPENDENCY FOR TESTING --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.2</version> <scope>test</scope> </dependency> <!-- JETTY DEPENDENCIES FOR TESTING --> <!-- <dependency>--> <!-- <groupId>org.mortbay.jetty</groupId>--> <!-- <artifactId>jetty</artifactId>--> <!-- <version>${jetty.version}</version>--> <!-- <scope>provided</scope>--> <!-- </dependency>--> <!-- <dependency>--> <!-- <groupId>org.mortbay.jetty</groupId>--> <!-- <artifactId>jetty-util</artifactId>--> <!-- <version>${jetty.version}</version>--> <!-- <scope>provided</scope>--> <!-- </dependency>--> <!-- <dependency>--> <!-- <groupId>org.mortbay.jetty</groupId>--> <!-- <artifactId>jetty-management</artifactId>--> <!-- <version>${jetty.version}</version>--> <!-- <scope>provided</scope>--> <!-- </dependency>--> </dependencies> <build> <resources> <resource> <filtering>false</filtering> <directory>src/main/resources</directory> </resource> <resource> <filtering>false</filtering> <directory>src/main/java</directory> <includes> <include>**</include> </includes> <excludes> <exclude>**/*.java</exclude> </excludes> </resource> </resources> <testResources> <testResource> <filtering>false</filtering> <directory>src/test/java</directory> <includes> <include>**</include> </includes> <excludes> <exclude>**/*.java</exclude> </excludes> </testResource> </testResources> <!-- <plugins>--> <!--<!– <plugin>–>--> <!--<!– <groupId>org.mortbay.jetty</groupId>–>--> <!--<!– <artifactId>maven-jetty-plugin</artifactId>–>--> <!--<!– </plugin>–>--> <!-- </plugins>--> <pluginManagement> <plugins> <!-- scala compile first maven plugin ===========================================================--> <plugin> <groupId>net.alchim31.maven</groupId> <artifactId>scala-maven-plugin</artifactId> <version>3.4.2</version> <!-- <version>3.2.2</version>--><!--gongsi--> <executions> <execution> <id>scala-compile-first</id> <phase>process-resources</phase> <goals> <goal>add-source</goal> <goal>compile</goal> </goals> </execution> <execution> <phase>compile</phase> <goals> <goal>compile</goal> <!-- <goal>testCompile</goal>--> </goals> </execution> </executions> <configuration> <scalaVersion>2.11.8</scalaVersion> </configuration> </plugin> <!--maven compile scala plugin ===================================================================--> <plugin> <groupId>org.scala-tools</groupId> <artifactId>maven-scala-plugin</artifactId> <version>2.15.2</version> <executions> <execution> <goals> <goal>compile</goal> <!-- <goal>testCompile</goal>--> </goals> </execution> </executions> <configuration> <scalaVersion>2.11.8</scalaVersion> <args> <arg>-target:jvm-1.8</arg> </args> </configuration> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <!--这是因为在使用Maven打包的时候导致某些包的重复引用,以至于打包之后的META-INF的目录下多出了一些*.SF,*.DSA,*.RSA文件所致,我们可以在pom文件里面加入以下配置filter--> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> </excludes> </filter> </filters> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <!-- 设置false后是去掉 MySpark-1.0-SNAPSHOT-jar-with-dependencies.jar 后的 “-jar-with-dependencies” --> <!--<appendAssemblyId>false</appendAssemblyId>--> <archive> <manifest></manifest> <!--<manifest></manifest>没有main的话,没有自动执行jar包就不需要填写--> <!--<manifest>--> <!--<!– 配置主程序 java -jar 默认Class,这里设置为自己的主类的绝对路径 –>--> <!--<addClasspath>true</addClasspath>--> <!--<classpathPrefix>lib/</classpathPrefix>--> <!--<mainClass>com.hw.stream.FlumeKafkaStream</mainClass>--> <!--</manifest>--> </archive> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> <!-- maven normal compile plugin =============================--> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.0</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </pluginManagement> </build> </project>
常用POM
于 2022-12-03 12:27:15 首次发布