李进 2 yıl önce
ebeveyn
işleme
dcd576033f
2 değiştirilmiş dosya ile 54 ekleme ve 0 silme
  1. 40 0
      device-start/pom.xml
  2. 14 0
      pom.xml

+ 40 - 0
device-start/pom.xml

@@ -18,4 +18,44 @@
             <version>1.0</version>
         </dependency>
     </dependencies>
+
+    <build>
+        <plugins>
+            <!-- 打包 -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-assembly-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+                    <mainClass>com.xy.StartCloud</mainClass>
+                </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <!-- 上传源码 -->
+            <plugin>
+                <artifactId>maven-source-plugin</artifactId>
+                <version>2.4</version>
+                <configuration>
+                    <attach>true</attach>
+                </configuration>
+                <executions>
+                    <execution>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
 </project>

+ 14 - 0
pom.xml

@@ -46,4 +46,18 @@
             </snapshots>
         </repository>
     </repositories>
+
+    <!-- 上传 -->
+    <distributionManagement>
+        <repository>
+            <id>release</id>
+            <name>release</name>
+            <url>http://119.96.213.127:9010/maven/libs-release-local</url>
+        </repository>
+        <snapshotRepository>
+            <id>snapshot</id>
+            <name>snapshot</name>
+            <url>http://119.96.213.127:9010/maven/libs-snapshot-local</url>
+        </snapshotRepository>
+    </distributionManagement>
 </project>