浙江省建设厅查询官方网站,两学一做网站,免费行情软件网站下载大全,wordpress 阿里云 cdn目录 mavenpom.xml打包配置项#xff08;非完整版#xff0c;仅含打包的内容 build#xff09;pom.xml完整示例#xff08;需要修改参数#xff09;效果说明 maven
最主要的方式还是maven进行打包#xff0c;也好进行配置项的管理 以下为pom文件#xff08;不要… 目录 mavenpom.xml打包配置项非完整版仅含打包的内容 buildpom.xml完整示例需要修改参数效果说明 maven
最主要的方式还是maven进行打包也好进行配置项的管理 以下为pom文件不要忘记修改部分参数
pom.xml打包配置项非完整版仅含打包的内容 build buildpluginsplugingroupIdorg.scala-tools/groupIdartifactIdmaven-scala-plugin/artifactIdversion2.15.2/versionexecutionsexecutionidscala-compile-first/idgoalsgoalcompile/goal/goalsconfigurationincludesinclude**/*.scala/include/includes/configuration/executionexecutionidscala-test-compile/idgoalsgoaltestCompile/goal/goals/execution/executions/pluginplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-compiler-plugin/artifactIdversion3.0/versionconfigurationsource8/sourcetarget8/targetencodingUTF-8/encoding/configurationexecutionsexecutionphasecompile/phasegoalsgoalcompile/goal/goals/execution/executions/pluginplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-shade-plugin/artifactIdexecutions!-- Run shade goal on package phase --executionphasepackage/phasegoalsgoalshade/goal/goalsconfigurationfiltersfilter!-- Do not copy the signatures in the META-INF folder.Otherwise, this might cause SecurityExceptions when using the JAR. --artifact*:*/artifactexcludesexcludeMETA-INF/*.SF/excludeexcludeMETA-INF/*.DSA/excludeexcludeMETA-INF/*.RSA/exclude/excludes/filter/filterstransformerstransformer implementationorg.apache.maven.plugins.shade.resource.ManifestResourceTransformermainClasscom.wunaiieq.SSJdbcRead/mainClass/transformer/transformerscreateDependencyReducedPomfalse/createDependencyReducedPom/configuration/execution/executions/plugin/plugins/buildpom.xml完整示例需要修改参数
?xml version1.0 encodingUTF-8?
project xmlnshttp://maven.apache.org/POM/4.0.0xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsdmodelVersion4.0.0/modelVersiongroupIdcom.wunaiieq/groupIdartifactIdspark02/artifactIdversion1.0-SNAPSHOT/versionpropertiesmaven.compiler.source8/maven.compiler.sourcemaven.compiler.target8/maven.compiler.targetproject.build.sourceEncodingUTF-8/project.build.sourceEncoding/propertiesdependenciesdependencygroupIdorg.apache.spark/groupIdartifactIdspark-core_2.12/artifactIdversion3.2.1/version/dependencydependencygroupIdjunit/groupIdartifactIdjunit/artifactIdversion4.11/versionscopetest/scope/dependencydependencygroupIdorg.apache.spark/groupIdartifactIdspark-sql_2.12/artifactIdversion3.2.1/version/dependencydependencygroupIdmysql/groupIdartifactIdmysql-connector-java/artifactIdversion8.0.25/version/dependency/dependenciesbuildpluginsplugingroupIdorg.scala-tools/groupIdartifactIdmaven-scala-plugin/artifactIdversion2.15.2/versionexecutionsexecutionidscala-compile-first/idgoalsgoalcompile/goal/goalsconfigurationincludesinclude**/*.scala/include/includes/configuration/executionexecutionidscala-test-compile/idgoalsgoaltestCompile/goal/goals/execution/executions/pluginplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-compiler-plugin/artifactIdversion3.0/versionconfigurationsource8/sourcetarget8/targetencodingUTF-8/encoding/configurationexecutionsexecutionphasecompile/phasegoalsgoalcompile/goal/goals/execution/executions/pluginplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-shade-plugin/artifactIdexecutions!-- Run shade goal on package phase --executionphasepackage/phasegoalsgoalshade/goal/goalsconfigurationfiltersfilter!-- Do not copy the signatures in the META-INF folder.Otherwise, this might cause SecurityExceptions when using the JAR. --artifact*:*/artifactexcludesexcludeMETA-INF/*.SF/excludeexcludeMETA-INF/*.DSA/excludeexcludeMETA-INF/*.RSA/exclude/excludes/filter/filterstransformerstransformer implementationorg.apache.maven.plugins.shade.resource.ManifestResourceTransformermainClasscom.wunaiieq.SSJdbcRead/mainClass/transformer/transformerscreateDependencyReducedPomfalse/createDependencyReducedPom/configuration/execution/executions/plugin/plugins/build
/project
效果说明
打包后会弹出两个jar包 original-spark02-1.0-SNAPSHOT.jar默认打包配置不含其他依赖项 spark02-1.0-SNAPSHOT.jar涵盖所有依赖文件dependency