Maven不包括依赖项 [英] Maven not including dependencies
本文介绍了Maven不包括依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的pom.xml
文件中有此文件:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.foo.ch1</groupId>
<artifactId>tutorials</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>tutorials</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<artifactId>image-processing</artifactId>
<groupId>org.openimaj</groupId>
<version>1.3.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<artifactId>video-processing</artifactId>
<groupId>org.openimaj</groupId>
<version>1.3.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
我一直在关注:
http://www.openimaj.org/tutorial/processing-video.html
但是由于某种原因,未检测到XuggleVideo类以及与视频有关的任何内容. 我的项目分为不同的程序包.无论如何,我认为这并不重要.
But for some reason the XuggleVideo classes and anything that has to do with video is not detected. My project is divided in separate packages. I don't think that matters in maven anyway.
我的pom.xml
文件设置是否错误?
Is my pom.xml
file setup wrong?
推荐答案
使用此仓库<url>http://www.openimaj.org</url>
代替<url>http://maven.apache.org</url>
这篇关于Maven不包括依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文