我有个带有包装耳朵的绒球。 pom包含2个依赖项。其中一个是war文件,它具有与正在构建的pom相同的groudId,artifactId和版本,但具有war的打包类型。我不断收到此错误: 对于dummy:dummyArtifiact:4.0.29的'dependencies.dependency dummy:dummyArtifiact:4.0.29'正在引用自身。 @第10行第15列
有什么方法可以忽略这一点?
<?xml version="1.0" encoding="UTF-8" standalone="no"?><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>dummy</groupId>
<artifactId>dummyArtifact</artifactId>
<packaging>ear</packaging>
<version>4.0.29</version>
<name>dummyArtifact</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>dummy</groupId>
<artifactId>dummyArtifact</artifactId>
<version>4.0.29</version>
<type>war</type>
</dependency>
<dependency>
<groupId>dummy</groupId>
<artifactId>dummy_stuff</artifactId>
<version>4.0.29</version>
<type>ejb</type>
</dependency>
</dependencies>
<repositories>
<repository>
<id>mavenrepository</id>
<url>
file://P:/ici/Dev/mavenrepository
</url>
</repository>
</repositories>
<distributionManagement>
<!-- use the following if you're not using a snapshot version. -->
<repository>
<id>mavenrepository</id>
<name>mavenrepository</name>
<url>
file://P:/ici/Dev/mavenrepository
</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
</project>