浏览代码

删除pom配置项

lcl 1 年之前
父节点
当前提交
d47b5e90bc
共有 2 个文件被更改,包括 5 次插入51 次删除
  1. 0 51
      pom.xml
  2. 5 0
      src/main/java/com/ym/adminap/controller/TestController.java

+ 0 - 51
pom.xml

@@ -120,46 +120,6 @@
 
     <build>
         <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-jar-plugin</artifactId>
-                <version>3.1.2</version>
-                <configuration>
-                    <archive>
-                        <!-- 生成的项目JAR包中,不要包含pom.xml和pom.properties这两个文件 -->
-                        <addMavenDescriptor>false</addMavenDescriptor>
-                        <manifest>
-                            <!-- 是否要把第三方依赖的JAR包加入到类构建路径 -->
-                            <addClasspath>true</addClasspath>
-                            <!-- 外部依赖JAR包的存放路径,为了在MANIFEST.MF文件中指定外部依赖的路径 -->
-                            <classpathPrefix>lib/</classpathPrefix>
-                            <!-- 项目主启动类 -->
-                            <mainClass>com.ym.adminap.AdminapApplication</mainClass>
-                        </manifest>
-                    </archive>
-                </configuration>
-            </plugin>
-            <!-- 复制项目依赖的JAR包到指定的lib目录-->
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-dependency-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>copy-lib</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>copy-dependencies</goal>
-                        </goals>
-                        <configuration>
-                            <!-- 将外部依赖的JAR包复制到target/lib路径下 -->
-                            <outputDirectory>target/lib</outputDirectory>
-                            <excludeTransitive>false</excludeTransitive>
-                            <stripVersion>false</stripVersion>
-                            <includeScope>runtime</includeScope>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
@@ -170,17 +130,6 @@
                         </goals>
                     </execution>
                 </executions>
-                <configuration>
-                    <mainClass>com.ym.adminap.AdminapApplication</mainClass>
-                    <layout>JAR</layout>
-                    <testFailureIgnore>true</testFailureIgnore>
-                    <includes>
-                        <include>
-                            <groupId>nothing</groupId>
-                            <artifactId>nothing</artifactId>
-                        </include>
-                    </includes>
-                </configuration>
             </plugin>
         </plugins>
     </build>

+ 5 - 0
src/main/java/com/ym/adminap/controller/TestController.java

@@ -102,6 +102,11 @@ public class TestController {
 		return "123";
 	}
 
+	@RequestMapping("/test4")
+	public String test4() {
+		return "oh yeah";
+	}
+
 	// @RequestMapping("/add")
 	// public String add() {
 	// 	String result = "ok";