多模块Maven Project依赖问题?

时间:2015-07-09 11:20:44

标签: eclipse maven maven-2 artifactory

我有一个多模块项目, common-project 依赖于另一个 3rdparty 项目,下面是 common-project <的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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

     <groupId>com.tri.iss.pet.common</groupId>     
    <version>0.0.1-SNAPSHOT</version>
    <artifactId>common-um-entities</artifactId>
    <name>common-um-entities</name>
    <description>Common UM Entities</description>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>


    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <fork>true</fork>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
        </plugins>

    </build>

    <dependencies>
        <dependency>
            <groupId>com.tri.iss.pet.common</groupId>
            <artifactId>3rdparty</artifactId>
            <version>0.0.1-SNAPSHOT</version>
            <type>jar</type>
        </dependency>


    </dependencies>
</project>

正如您清楚地检查我已经在pom.xml文件中添加了依赖项,但检查下面的图像,其中说jar丢失了

enter image description here

有人可以告诉我为什么只有项目依赖项无法加载,而来自Artifactory的其他依赖项工作正常吗?

注意: - 不要混淆项目名称。

0 个答案:

没有答案