瀏覽代碼

修改jar包引用方式

songyh 3 年之前
父節點
當前提交
c62fded67e

+ 2 - 2
jeecg-boot-module-system/pom.xml

@@ -69,7 +69,7 @@
 			<artifactId>opencv</artifactId>
 			<version>4.2.0</version>
 			<scope>system</scope>
-			<systemPath>${project.basedir}/src/main/resources/lib/opencv-4.2.0.jar</systemPath>
+			<systemPath>${basedir}/../lib/opencv-4.2.0.jar</systemPath>
 		</dependency>
 		<!-- commons -->
 		<dependency>
@@ -99,7 +99,7 @@
 			<artifactId>jave</artifactId>
 			<version>1.0</version>
 			<scope>system</scope>
-			<systemPath>${project.basedir}/src/main/resources/lib/jave-1.0.jar</systemPath>
+			<systemPath>${project.basedir}/../lib/jave-1.0.jar</systemPath>
 		</dependency>
 
 		<dependency>

+ 3 - 2
jeecg-boot-module-system/src/main/java/cn/com/ctop/common/module/service/impl/MaterialInfoServiceImpl.java

@@ -19,6 +19,7 @@ import com.github.pagehelper.PageInfo;
 import com.tencentcloudapi.mps.v20190612.models.DescribeTaskDetailResponse;
 import it.sauronsoftware.jave.Encoder;
 import it.sauronsoftware.jave.EncoderException;
+import it.sauronsoftware.jave.MultimediaInfo;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.shiro.SecurityUtils;
 import org.jeecg.common.system.vo.LoginUser;
@@ -399,12 +400,12 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
                     String url = materialInfo.getUrl();
                     log.info("replaceUrl:{}", url);
                     String localUrl = null;
-                    it.sauronsoftware.jave.MultimediaInfo m = null;
+                    MultimediaInfo m = null;
                     FileInputStream fis = null;
                     try {
                         localUrl = LoadFileUtil.downLoadFromUrl(url, downloadUrl);
                         File file = new File(localUrl);
-                        it.sauronsoftware.jave.Encoder encoder = new Encoder();
+                        Encoder encoder = new Encoder();
                         m = encoder.getInfo(file);
                         long duration = m.getDuration();
                         long secondDuration = duration / 1000;

+ 10 - 0
jeecg-cloud-module/jeecg-cloud-system-start/pom.xml

@@ -59,6 +59,13 @@
     <build>
         <resources>
             <resource>
+                <directory>../../lib</directory>
+                <targetPath>BOOT-INF/lib/</targetPath>
+                <includes>
+                    <include>**/*.jar</include>
+                </includes>
+            </resource>
+            <resource>
                 <directory>src/main/resources</directory>
                 <!--先排除所有的配置文件-->
                 <excludes>
@@ -79,6 +86,9 @@
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+                    <includeSystemScope>true</includeSystemScope>
+                </configuration>
             </plugin>
         </plugins>
     </build>

jeecg-boot-module-system/src/main/resources/lib/jave-1.0.jar → lib/jave-1.0.jar


jeecg-boot-module-system/src/main/resources/lib/opencv-4.2.0.jar → lib/opencv-4.2.0.jar