Browse Source

优化maven parent

yucheng 3 years ago
parent
commit
74d1cacf23
3 changed files with 65 additions and 27 deletions
  1. 0 20
      dmp-business/dmp-rwd/pom.xml
  2. 0 7
      dmp-cloud/dmp-file/pom.xml
  3. 65 0
      dmp-parent/pom.xml

+ 0 - 20
dmp-business/dmp-rwd/pom.xml

@@ -10,36 +10,16 @@
     <modelVersion>4.0.0</modelVersion>
     <artifactId>dmp-rwd</artifactId>
     <packaging>jar</packaging>
-    <repositories>
-        <repository>
-            <id>persagy</id>
-            <name>persagy Repository</name>
-            <url>http://47.93.132.139:8081/nexus/content/repositories/persagy/</url>
-        </repository>
-    </repositories>
 
     <dependencies>
         <dependency>
             <groupId>org.geotools</groupId>
             <artifactId>gt-main</artifactId>
-            <version>25.2</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>javax</groupId>
-                    <artifactId>javaee-api</artifactId>
-                </exclusion>
-            </exclusions>
         </dependency>
         <!-- 配置中心(包含注册中心) -->
         <dependency>
             <groupId>com.persagy</groupId>
             <artifactId>integrated-config-client</artifactId>
-<!--            <exclusions>
-                <exclusion>
-                    <artifactId>xstream</artifactId>
-                    <groupId>com.thoughtworks.xstream</groupId>
-                </exclusion>
-            </exclusions>-->
         </dependency>
         <!-- 项目启动 -->
         <dependency>

+ 0 - 7
dmp-cloud/dmp-file/pom.xml

@@ -30,13 +30,6 @@
             <groupId>com.persagy</groupId>
             <artifactId>dmp-mybatis</artifactId>
         </dependency>
-        <dependency>
-            <groupId>jdk.tools</groupId>
-            <artifactId>jdk.tools</artifactId>
-            <version>1.8</version>
-            <scope>system</scope>
-            <systemPath>${env.JAVA_HOME}/lib/tools.jar</systemPath>
-        </dependency>
         <!-- https://mvnrepository.com/artifact/org.slf4j/log4j-over-slf4j -->
         <dependency>
             <groupId>org.slf4j</groupId>

+ 65 - 0
dmp-parent/pom.xml

@@ -10,10 +10,26 @@
 
     <repositories>
         <repository>
+            <id>public</id>
+            <name>public Repository</name>
+            <url>http://47.93.132.139:8081/nexus/content/groups/public/</url>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+        </repository>
+        <repository>
             <id>integrated</id>
             <name>releases Repository</name>
             <url>http://47.93.132.139:8081/nexus/content/repositories/integrated/</url>
         </repository>
+        <repository>
+            <id>osgeo</id>
+            <name>Open Source Geospatial Foundation Repository</name>
+            <url>https://repo.osgeo.org/repository/release/</url>
+        </repository>
     </repositories>
     <distributionManagement>
         <repository>
@@ -49,7 +65,10 @@
         <gson.version>2.8.6</gson.version>
         <fastjson.version>1.2.75</fastjson.version>
         <druid.version>1.1.22</druid.version>
+        <easyexcel.version>2.2.8</easyexcel.version>
         <hutool.version>5.5.8</hutool.version>
+        <geotools.version>25.2</geotools.version>
+        <jsr.version>1.1.1</jsr.version>
         <!-- Minio -->
         <minio.version>8.3.0</minio.version>
         <okhttp.version>4.8.1</okhttp.version>
@@ -142,6 +161,12 @@
                 <groupId>com.persagy</groupId>
                 <artifactId>integrated-config-client</artifactId>
                 <version>${platform.version}</version>
+                <exclusions>
+                    <exclusion>
+                        <artifactId>xstream</artifactId>
+                        <groupId>com.thoughtworks.xstream</groupId>
+                    </exclusion>
+                </exclusions>
             </dependency>
             <!-- mybatis plus -->
             <dependency>
@@ -326,6 +351,29 @@
                 <artifactId>fastjson</artifactId>
                 <version>${fastjson.version}</version>
             </dependency>
+            <dependency>
+                <groupId>com.alibaba</groupId>
+                <artifactId>easyexcel</artifactId>
+                <version>${easyexcel.version}</version>
+                <exclusions>
+                    <exclusion>
+                        <artifactId>asm</artifactId>
+                        <groupId>org.ow2.asm</groupId>
+                    </exclusion>
+                    <exclusion>
+                        <artifactId>poi</artifactId>
+                        <groupId>org.apache.poi</groupId>
+                    </exclusion>
+                    <exclusion>
+                        <artifactId>poi-ooxml</artifactId>
+                        <groupId>org.apache.poi</groupId>
+                    </exclusion>
+                    <exclusion>
+                        <artifactId>poi-ooxml-schemas</artifactId>
+                        <groupId>org.apache.poi</groupId>
+                    </exclusion>
+                </exclusions>
+            </dependency>
             <!-- Minio -->
             <dependency>
                 <groupId>io.minio</groupId>
@@ -364,6 +412,23 @@
                 <artifactId>xstream</artifactId>
                 <version>${xstream.version}</version>
             </dependency>
+            <dependency>
+                <groupId>javax.ws.rs</groupId>
+                <artifactId>jsr311-api</artifactId>
+                <version>${jsr.version}</version>
+            </dependency>
+            <!-- 空间计算 -->
+            <dependency>
+                <groupId>org.geotools</groupId>
+                <artifactId>gt-main</artifactId>
+                <version>${geotools.version}</version>
+                <exclusions>
+                    <exclusion>
+                        <groupId>javax</groupId>
+                        <artifactId>javaee-api</artifactId>
+                    </exclusion>
+                </exclusions>
+            </dependency>
         </dependencies>
     </dependencyManagement>