更新pom
This commit is contained in:
		@@ -23,15 +23,56 @@
 | 
			
		||||
        </dependency>
 | 
			
		||||
    </dependencies>
 | 
			
		||||
    <build>
 | 
			
		||||
<!--        <finalName>${project.name}</finalName>-->
 | 
			
		||||
        <plugins>
 | 
			
		||||
            <plugin>
 | 
			
		||||
                <artifactId>maven-compiler-plugin</artifactId>
 | 
			
		||||
                <version>2.3.2</version>
 | 
			
		||||
                <configuration>
 | 
			
		||||
                    <source>1.8</source>
 | 
			
		||||
                    <target>1.8</target>
 | 
			
		||||
                    <source>${maven.compiler.source}</source>
 | 
			
		||||
                    <target>${maven.compiler.target}</target>
 | 
			
		||||
                </configuration>
 | 
			
		||||
            </plugin>
 | 
			
		||||
            <!-- 复制依赖-->
 | 
			
		||||
            <plugin>
 | 
			
		||||
                <groupId>org.apache.maven.plugins</groupId>
 | 
			
		||||
                <artifactId>maven-dependency-plugin</artifactId>
 | 
			
		||||
                <executions>
 | 
			
		||||
                    <execution>
 | 
			
		||||
                        <id>copy</id>
 | 
			
		||||
                        <!--绑定package阶段执行该插件-->
 | 
			
		||||
                        <phase>package</phase>
 | 
			
		||||
                        <goals>
 | 
			
		||||
                            <!--该插件的目的是复制依赖-->
 | 
			
		||||
                            <goal>copy-dependencies</goal>
 | 
			
		||||
                        </goals>
 | 
			
		||||
                        <configuration>
 | 
			
		||||
                            <!--输出路径-->
 | 
			
		||||
                            <outputDirectory>${project.build.directory}/lib</outputDirectory>
 | 
			
		||||
                            <!-- 不导出的包名-->
 | 
			
		||||
                            <excludeGroupIds>
 | 
			
		||||
                                net.yldev
 | 
			
		||||
                            </excludeGroupIds>
 | 
			
		||||
                        </configuration>
 | 
			
		||||
                    </execution>
 | 
			
		||||
                </executions>
 | 
			
		||||
            </plugin>
 | 
			
		||||
 | 
			
		||||
            <!--正常jar包-->
 | 
			
		||||
            <plugin>
 | 
			
		||||
                <groupId>org.apache.maven.plugins</groupId>
 | 
			
		||||
                <artifactId>maven-jar-plugin</artifactId>
 | 
			
		||||
                <version>3.2.0</version>
 | 
			
		||||
                <configuration>
 | 
			
		||||
                    <archive>
 | 
			
		||||
                        <manifest>
 | 
			
		||||
                            <mainClass>com.cares.sh.main.Main</mainClass>
 | 
			
		||||
                        </manifest>
 | 
			
		||||
                    </archive>
 | 
			
		||||
                </configuration>
 | 
			
		||||
            </plugin>
 | 
			
		||||
 | 
			
		||||
            <!--全量jar包-->
 | 
			
		||||
            <plugin>
 | 
			
		||||
                <artifactId>maven-assembly-plugin</artifactId>
 | 
			
		||||
                <configuration>
 | 
			
		||||
@@ -54,6 +95,7 @@
 | 
			
		||||
                    </execution>
 | 
			
		||||
                </executions>
 | 
			
		||||
            </plugin>
 | 
			
		||||
 | 
			
		||||
        </plugins>
 | 
			
		||||
    </build>
 | 
			
		||||
</project>
 | 
			
		||||
 
 | 
			
		||||
@@ -16,4 +16,9 @@ public final class Main {
 | 
			
		||||
        JSON.toJSONString(map);
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void printOne(String a) {
 | 
			
		||||
        System.out.println("我是参数" + a);
 | 
			
		||||
        System.out.println("我是通知");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								pom.xml
									
									
									
									
									
								
							@@ -32,7 +32,7 @@
 | 
			
		||||
            <dependency>
 | 
			
		||||
                <groupId>org.springframework.boot</groupId>
 | 
			
		||||
                <artifactId>spring-boot-starter-parent</artifactId>
 | 
			
		||||
                <version>2.7.3</version>
 | 
			
		||||
                <version>2.7.6</version>
 | 
			
		||||
                <type>pom</type>
 | 
			
		||||
                <scope>import</scope>
 | 
			
		||||
            </dependency>
 | 
			
		||||
 
 | 
			
		||||
@@ -22,7 +22,6 @@
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>com.alibaba</groupId>
 | 
			
		||||
            <artifactId>fastjson</artifactId>
 | 
			
		||||
            <version>2.0.12</version>
 | 
			
		||||
        </dependency>
 | 
			
		||||
 | 
			
		||||
        <dependency>
 | 
			
		||||
@@ -33,7 +32,6 @@
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>org.aspectj</groupId>
 | 
			
		||||
            <artifactId>aspectjweaver</artifactId>
 | 
			
		||||
            <version>1.9.9</version>
 | 
			
		||||
        </dependency>
 | 
			
		||||
 | 
			
		||||
        <dependency>
 | 
			
		||||
@@ -54,6 +52,19 @@
 | 
			
		||||
            <plugin>
 | 
			
		||||
                <groupId>org.springframework.boot</groupId>
 | 
			
		||||
                <artifactId>spring-boot-maven-plugin</artifactId>
 | 
			
		||||
                <configuration>
 | 
			
		||||
                    <!--打包时 包含系统作用域的jar包-->
 | 
			
		||||
                    <includeSystemScope>true</includeSystemScope>
 | 
			
		||||
                    <!--打包布局-->
 | 
			
		||||
                    <layout>ZIP</layout>
 | 
			
		||||
                    <!--打包时 包含指定jar包,二方包-->
 | 
			
		||||
                    <!--                    <includes>-->
 | 
			
		||||
                    <!--                        <include>-->
 | 
			
		||||
                    <!--                            <groupId>cn.x47.blog</groupId>-->
 | 
			
		||||
                    <!--                            <artifactId>icc-common</artifactId>-->
 | 
			
		||||
                    <!--                        </include>-->
 | 
			
		||||
                    <!--                    </includes>-->
 | 
			
		||||
                </configuration>
 | 
			
		||||
            </plugin>
 | 
			
		||||
        </plugins>
 | 
			
		||||
    </build>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user