Maven插件及打包方法

1这个插件是让项目调用jdk1.8的资源

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.pluginsgroupId>
                <artifactId>maven-compiler-pluginartifactId>
                <version>3.7.0version>
                <configuration>
                    <target>1.8target>
                    <source>1.8source>
                configuration>
            plugin>
        plugins>
 build>

2打包插件,热部署

	
	<dependency>
			<groupId>org.springframework.bootgroupId>
			<artifactId>spring-boot-devtoolsartifactId>
			<optional>trueoptional>
			<scope>truescope>
	dependency>
	
    <build>
		<plugins>
			<plugin>
				<groupId>org.springframework.bootgroupId>
				<artifactId>spring-boot-maven-pluginartifactId>
				<configuration>
					
					<fork>truefork>
					
					<includeSystemScope>trueincludeSystemScope>
				configuration>
			plugin>
		plugins>
	build>

eclipse打包命令

clean package -Dmaven.test.skip=true       ---------直接跳过测试文件,不做处理
clean deploy -Dmaven.test.skip=true        ---------打包文件到远程仓库

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