Jelajahi Sumber

松原党建中间件

wang_xy 2 tahun lalu
induk
melakukan
d793c0076e
3 mengubah file dengan 38 tambahan dan 1 penghapusan
  1. 13 1
      AppInterface_jian.iml
  2. 25 0
      pom.xml
  3. TEMPAT SAMPAH
      src/main/resources/lib/UserAgentUtils-1.13.jar

+ 13 - 1
AppInterface_jian.iml

@@ -6,7 +6,10 @@
     </facet>
     <facet type="web" name="Web">
       <configuration>
-        <webroots />
+        <webroots>
+          <root url="file://$MODULE_DIR$/src/main/resources/lib" relative="WEB-INF/lib/" />
+          <root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
+        </webroots>
         <sourceRoots>
           <root url="file://$MODULE_DIR$/src/main/java" />
           <root url="file://$MODULE_DIR$/src/main/resources" />
@@ -76,5 +79,14 @@
     <orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.0.0.Final" level="project" />
     <orderEntry type="library" name="Maven: io.springfox:springfox-swagger-ui:2.5.0" level="project" />
     <orderEntry type="library" name="Maven: commons-io:commons-io:2.4" level="project" />
+    <orderEntry type="module-library">
+      <library name="Maven: ceshi:UserAgentUtils:1.13">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/src/main/resources/lib/UserAgentUtils-1.13.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
   </component>
 </module>

+ 25 - 0
pom.xml

@@ -7,6 +7,7 @@
     <groupId>AppInterface_jian</groupId>
     <artifactId>AppInterface_jian</artifactId>
     <version>1.0-SNAPSHOT</version>
+    <packaging>war</packaging>
 
     <properties>
         <java.version>1.8</java.version>
@@ -51,6 +52,15 @@
             <artifactId>commons-io</artifactId>
             <version>2.4</version>
         </dependency>
+
+        <dependency>
+            <groupId>ceshi</groupId>
+            <artifactId>UserAgentUtils</artifactId>
+            <version>1.13</version>
+            <scope>system</scope>
+            <systemPath>${basedir}/src/main/resources/lib/UserAgentUtils-1.13.jar</systemPath>
+        </dependency>
+
     </dependencies>
     <build>
         <plugins>
@@ -68,6 +78,21 @@
                     <encoding>UTF-8</encoding>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId> --> 这个是需要引入的打war包的jar
+                <configuration>
+                    <webResources>
+                        <resource>
+                            <directory>${basedir}/src/main/resources/lib</directory>  --> 这个是需要打的jar地址
+                            <targetPath>WEB-INF/lib/</targetPath>  --> 这个是打的jar放的地址一般都是这个
+                            <includes>
+                                <include>**/*.jar</include>  --> 路径下所有jar全部打包过去
+                            </includes>
+                        </resource>
+                    </webResources>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 </project>

TEMPAT SAMPAH
src/main/resources/lib/UserAgentUtils-1.13.jar