当前位置: 首页 > news >正文

网站建设的难点自助推广平台

网站建设的难点,自助推广平台,dedecms做论坛网站,建筑工程教育网官网目录 mavenpom.xml打包配置项&#xff08;非完整版&#xff0c;仅含打包的内容< build>&#xff09;pom.xml完整示例&#xff08;需要修改参数&#xff09;效果说明 maven 最主要的方式还是maven进行打包&#xff0c;也好进行配置项的管理 以下为pom文件&#xff08;不要…

目录

  • maven
    • pom.xml打包配置项(非完整版,仅含打包的内容< build>)
    • pom.xml完整示例(需要修改参数)
    • 效果说明

maven

最主要的方式还是maven进行打包,也好进行配置项的管理
以下为pom文件(不要忘记修改部分参数)

pom.xml打包配置项(非完整版,仅含打包的内容< build>)

  <build><plugins><plugin><groupId>org.scala-tools</groupId><artifactId>maven-scala-plugin</artifactId><version>2.15.2</version><executions><execution><id>scala-compile-first</id><goals><goal>compile</goal></goals><configuration><includes><include>**/*.scala</include></includes></configuration></execution><execution><id>scala-test-compile</id><goals><goal>testCompile</goal></goals></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.0</version><configuration><source>8</source><target>8</target><encoding>UTF-8</encoding></configuration><executions><execution><phase>compile</phase><goals><goal>compile</goal></goals></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-shade-plugin</artifactId><executions><!-- Run shade goal on package phase --><execution><phase>package</phase><goals><goal>shade</goal></goals><configuration><filters><filter><!-- Do not copy the signatures in the META-INF folder.Otherwise, this might cause SecurityExceptions when using the JAR. --><artifact>*:*</artifact><excludes><exclude>META-INF/*.SF</exclude><exclude>META-INF/*.DSA</exclude><exclude>META-INF/*.RSA</exclude></excludes></filter></filters><transformers><transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"><mainClass>com.wunaiieq.SSJdbcRead</mainClass></transformer></transformers><createDependencyReducedPom>false</createDependencyReducedPom></configuration></execution></executions></plugin></plugins></build>

pom.xml完整示例(需要修改参数)

<?xml version="1.0" encoding="UTF-8"?>
<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.wunaiieq</groupId><artifactId>spark02</artifactId><version>1.0-SNAPSHOT</version><properties><maven.compiler.source>8</maven.compiler.source><maven.compiler.target>8</maven.compiler.target><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding></properties><dependencies><dependency><groupId>org.apache.spark</groupId><artifactId>spark-core_2.12</artifactId><version>3.2.1</version></dependency><dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>4.11</version><scope>test</scope></dependency><dependency><groupId>org.apache.spark</groupId><artifactId>spark-sql_2.12</artifactId><version>3.2.1</version></dependency><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>8.0.25</version></dependency></dependencies><build><plugins><plugin><groupId>org.scala-tools</groupId><artifactId>maven-scala-plugin</artifactId><version>2.15.2</version><executions><execution><id>scala-compile-first</id><goals><goal>compile</goal></goals><configuration><includes><include>**/*.scala</include></includes></configuration></execution><execution><id>scala-test-compile</id><goals><goal>testCompile</goal></goals></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.0</version><configuration><source>8</source><target>8</target><encoding>UTF-8</encoding></configuration><executions><execution><phase>compile</phase><goals><goal>compile</goal></goals></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-shade-plugin</artifactId><executions><!-- Run shade goal on package phase --><execution><phase>package</phase><goals><goal>shade</goal></goals><configuration><filters><filter><!-- Do not copy the signatures in the META-INF folder.Otherwise, this might cause SecurityExceptions when using the JAR. --><artifact>*:*</artifact><excludes><exclude>META-INF/*.SF</exclude><exclude>META-INF/*.DSA</exclude><exclude>META-INF/*.RSA</exclude></excludes></filter></filters><transformers><transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"><mainClass>com.wunaiieq.SSJdbcRead</mainClass></transformer></transformers><createDependencyReducedPom>false</createDependencyReducedPom></configuration></execution></executions></plugin></plugins></build>
</project>

效果说明

打包后会弹出两个jar包
original-spark02-1.0-SNAPSHOT.jar:默认打包配置,不含其他依赖项
spark02-1.0-SNAPSHOT.jar:涵盖所有依赖文件(dependency)
在这里插入图片描述

http://www.yayakq.cn/news/86885/

相关文章:

  • 视频网站开发前景如何怎样找做淘宝客的网站
  • 常用开发工具seo服务运用什么技术
  • 中国旅游网站建设现状及发展趋势分析安阳建设局网站
  • 网站后台权限管理怎么做的linux服务器安装网站
  • 做网站 备案中小型企业网站建设企业
  • 做兼职有哪些网站大连几个区
  • 大型网站设计网站手机网站源码 html5
  • 哪个网站做美食自媒体更好接go语言网站开发
  • 大学生水果预定配送网站建设的项目规划书网站开发项目对自身的意义
  • 安网多少钱上海站群优化
  • 上海企业网站建设方法oa系统服务器地址在哪里看
  • 网站开发自学难吗深圳微网站开发
  • 乔拓云智能建站系统wordpress怎么取消谷歌字体
  • 东营 网站 建设上海哪个公司做网站好
  • win8网站源码免费学做衣服的网站
  • 做推文的网站网站正能量晚上免费网址不用下载
  • 贺州网站建设软文广告示范
  • 江苏城乡建设学院网站南京it外包公司
  • 网站建设提案ppt哈尔滨到牡丹江
  • 代做网站关键词排名现代郑州网站建设
  • 在线制作论坛网站自助建站申请
  • 企业网站建设具体步骤phpmysql网站开发笔记
  • 外贸网站知名做外链我花钱买了一个函授本科
  • 重庆企业模板建站信息莱州网站开发
  • 电商建站工具网页设计旅游哈尔滨代码
  • 成都网站制作芜湖厂商姜堰区网站建设
  • wordpress做网站怎么样网络营销所学课程
  • h5美食制作网站模板来个网站好人有好报2024
  • 网站建设中 模板在线看国内永久免费crm
  • 网站右键禁止三栏wordpress 主题