Browse Source

自动打包测试

zdd 2 years ago
parent
commit
1afe63d12f
2 changed files with 1 additions and 15 deletions
  1. 1 1
      .drone.yml
  2. 0 14
      pom.xml

+ 1 - 1
.drone.yml

@@ -7,7 +7,7 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
     image: maven:3-jdk-8 # 定义创建容器的Docker镜像
     volumes: # 将容器内目录挂载到宿主机,仓库需要开启Trusted设置
       - name: maven-cache
-        path: /root/.m2 # 将maven下载依赖的目录挂载出来,防止重复下载
+        path: /root/.m2/ # 将maven下载依赖的目录挂载出来,防止重复下载
       - name: maven-build
         path: /app/build # 将应用打包好的Jar和执行脚本挂载出来
     commands: # 定义在Docker容器中执行的shell命令

+ 0 - 14
pom.xml

@@ -22,20 +22,6 @@
         </dependency>
     </dependencies>
 
-    <repositories>
-        <repository>
-            <id>nexus</id>
-            <url>http://172.16.90.201:8081/repository/maven-public/</url>
-            <releases>
-                <enabled>true</enabled>
-            </releases>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>always</updatePolicy>
-                <checksumPolicy>fail</checksumPolicy>
-            </snapshots>
-        </repository>
-    </repositories>
 
     <profiles>
         <profile>