Maven打包报错

问题

maven在打包项目的时候,报插件的错误。

class was missing while executing org.apache.maven.plugins:maven-shade-plugin:3.2.1:shade: org/codehaus/plexus/util/xml/XmlStreamWriter

解决

在pom文件添加如下参数即可。

<jvmArgs> 
	<jvmArg>-Xss2048KjvmArg> 
jvmArgs>

完整模块

<plugin> 
	<groupId>net.alchim31.mavengroupId> 
	<artifactId>scala-maven-pluginartifactId> 	
	<version>3.4.4version> 
	<executions> 
		<execution> 
			<goals> 
				<goal>add-sourcegoal> 
				<goal>compilegoal> 
			goals>
			<configuration>
			<args> 
				<arg>-dependencyfilearg> 
	<arg>${project.build.directory}/.scala_dependenciesarg> 
			args> 
			
			<jvmArgs> 
				<jvmArg>-Xss2048KjvmArg> 
			jvmArgs> 
			configuration> 
		execution> 
	executions> 
plugin>

你可能感兴趣的:(bug,maven)