首页 > 其他分享 >大数据常用Maven依赖

大数据常用Maven依赖

时间:2022-10-05 10:35:01浏览次数:46  
标签:maven 常用 依赖 -- Maven org main junit

 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 2   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 3   <modelVersion>4.0.0</modelVersion>
 4   <groupId>org.example</groupId>
 5   <artifactId>edu_aliyecs</artifactId>
 6   <packaging>jar</packaging>
 7   <version>1.0-SNAPSHOT</version>
 8   <name>Maven Quick Start Archetype</name>
 9   <url>http://maven.apache.org</url>
10 
11   <properties>
12 <!--    指定编码-->
13     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14   </properties>
15 
16 <!--junit单元测试包-->
17   <dependencies>
18     <dependency>
19       <groupId>junit</groupId>
20       <artifactId>junit</artifactId>
21       <version>3.8.1</version>
22       <scope>test</scope>
23     </dependency>
24 
25 <!--    flume工具包-->
26     <dependency>
27       <groupId>org.apache.flume</groupId>
28       <artifactId>flume-ng-core</artifactId>
29       <version>1.9.0</version>
30       <scope>provided</scope>
31     </dependency>
32 
33 <!--    案例json解析包-->
34     <dependency>
35       <groupId>com.alibaba</groupId>
36       <artifactId>fastjson</artifactId>
37       <version>1.2.62</version>
38     </dependency>
39 
40   </dependencies>
41   <build>
42     <!--配置Maven 对文件进行排除 -->
43     <resources>
44       <resource>
45         <directory>src/main/resources</directory>
46         <excludes>
47           <exclude>**/*</exclude>
48         </excludes>
49       </resource>
50 <!--      &lt;!&ndash;配置Maven 对以下后缀文件 不排除 &ndash;&gt;-->
51 <!--      <resource>-->
52 <!--        <directory>src/main/resources</directory>-->
53 <!--        <includes>-->
54 <!--          <include>**/*.properties</include>-->
55 <!--          <include>**/*.conf</include>-->
56 <!--          <include>**/*.xml</include>-->
57 <!--          <include>**/*.ttf</include>-->
58 <!--        </includes>-->
59 <!--        <filtering>true</filtering>-->
60 <!--      </resource>-->
61     </resources>
62 
63     <plugins>
64       <!--      编译插件-->
65       <plugin>
66         <artifactId>maven-compiler-plugin</artifactId>
67         <version>2.3.2</version>
68         <configuration>
69           <source>1.8</source>
70           <target>1.8</target>
71         </configuration>
72       </plugin>
73       <!--      打包插件-->
74       <plugin>
75         <artifactId>maven-assembly-plugin</artifactId>
76         <configuration>
77           <descriptorRefs>
78             <descriptorRef>jar-with-dependencies</descriptorRef>
79           </descriptorRefs>
80         </configuration>
81         <executions>
82           <execution>
83             <id>make-assembly</id>
84             <phase>package</phase>
85             <goals>
86               <goal>single</goal>
87             </goals>
88           </execution>
89         </executions>
90       </plugin>
91     </plugins>
92   </build>
93 
94 </project>

 

标签:maven,常用,依赖,--,Maven,org,main,junit
From: https://www.cnblogs.com/averyve/p/16755161.html

相关文章

  • Java 中常用的进制转换
    前言所谓进制转换,就是人们利用符号来计数的方法。进制转换由一组数码符号和两个基本因素“基数”和“位权”所构成。其中基数是指进位计数制中所采用的数码的个数,逢 ​​n......
  • jvm 调优常用参数
    -Xms50M  最小堆内存-Xmx50M  最大堆内存-XX:+UseG1GC使用G1垃圾收集器-XX:MaxGCPauseMillis=6最大停顿时间毫秒-XX:+PrintGCDetails 打印GC日志-XX:ConcGCThrea......
  • 大数据常用shell命令一
    一、系统变量$HOME$USER$PWD$SHELL  二、自定义变量定义变量(a=2),变量名由数字、字母、下划线;1.1环境变量名建议用大写字母,JAVA_HOME1.2等号两侧不能有空格1.3变量默......
  • mysql常用命令
    MySQL常用命令退出mysql:exit查看mysql中有哪些数据库:showdatabases;注意:以分号结尾,分号是英文的分号mysql>showdatabases;+--------------------+|Database......
  • 依赖管理&可选依赖&排除依赖
           ......
  • Ideal安装 +设置maven+mysql
    1、下载Idea安装,地址:https://www.jetbrains.com/idea/download/other.html 2、下载jdk,安装jdk,配置环境变量     新建JAVA_HOME 系统变量,设置jdk安装路径......
  • jenkins+gitlab+maven+docker部署项目之jenkins用户权限管理
    一、用户管理jenkins自身带有权限管理,入口:系统管理-->全局安全配置,这里的权限配置太过简略,没有角色的概念,显然无法满足我们复杂的需求,所以在这个时候引入了Jenkins的一个......
  • 大数据常用的Linux命令
    Linux文件系统基础知识要想熟练使用命令,就先要熟练掌握Linux文件系统基础知识:三个路径当前路径:也叫当前工作目录,就是当前状态下用户所处的位置相对路径:相对于当前工......
  • 15.6 os模块的常用函数
    #目录操作  #os模块是Python内置的与操作系统功能和文件系统相关的模块,该模块中的语句的执行结果通常与操作系统有关,在不同的操作系统上运行,得到的结果可能不一样。 ......
  • SpringBoot项目的pom.xml文件中maven-project-info-reports-plugin报红解决办法
    今天在创建SpringBoot项目时发现导包是没有任何问题的,但是pom文件中maven-project-info-reports-plugin一直有报红,如下图所示:在该pom文件中引入maven-project-info-repor......