maven springboot多模块打包

分模块开发公共模块不要使用springboot插件,其他引用其公共模块的模块会读取不到包。打完公共模块的包记得发布到本地maven仓库

	<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>

换成

	<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin> 

猜你喜欢

转载自blog.csdn.net/qq_27275851/article/details/104023387