使用p2-maven-plugin的循环依赖

时间:2016-10-18 06:09:58

标签: eclipse maven eclipse-plugin eclipse-rcp eclipse-rap

我一直在使用p2-maven-plugin并且我遇到了一些问题:它似乎产生了循环依赖,但我找不到原因(maven中相同的jar显示没有问题)。我想知道是否有人可以提供帮助。

这是我的 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>org.reficio.rcp</groupId>
<artifactId>example-p2-site</artifactId>
<packaging>pom</packaging>
<version>1.0.0</version>
<build>
    <plugins>
        <plugin>
            <groupId>org.reficio</groupId>
            <artifactId>p2-maven-plugin</artifactId>
            <version>1.1.0</version>
            <executions>
                <execution>
                    <id>default-cli</id>
                    <configuration>
                        <artifacts>
                            <!-- specify your depencies here -->
                            <!-- groupId:artifactId:version -->
                            <artifact><id>org.apache.shiro:shiro-aspectj:1.3.2</id></artifact>
                            <artifact><id>org.apache.shiro:shiro-core:1.3.2</id></artifact>
                            <artifact><id>org.apache.shiro:shiro-ehcache:1.3.2</id></artifact>
                            <artifact><id>net.sf.ehcache:ehcache-core:2.6.9</id></artifact>
                            <artifact><id>net.sf.ehcache:ehcache:2.9.0</id></artifact>
                            <artifact><id>commons-logging:commons-logging:1.1.1</id></artifact>
                            <artifact><id>org.slf4j:slf4j-simple:1.6.1</id></artifact>
                        </artifacts>
                    </configuration>
                </execution>
            </executions>
        </plugin>


    </plugins>
</build>

<pluginRepositories>
    <pluginRepository>
        <id>reficio</id>
        <url>http://repo.reficio.org/maven/</url>
    </pluginRepository>
</pluginRepositories>

这里是cyclic dependency查找org.apache.shiro.core

提前致谢 K. Apostolou

0 个答案:

没有答案