Maven项目编译
Maven project compiling
我正在尝试通过 运行“mvn clean compile”编译 maven 项目
我得到这样的错误:
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Resolving expression: '${xmlName}': Detected the following recursive expression cycle in 'xmlName': [xmlName] @
[ERROR] Resolving expression: '${xmlName}': Detected the following recursive expression cycle in 'xmlName': [xmlName] @
[ERROR] Resolving expression: '${xmlName}': Detected the following recursive expression cycle in 'xmlName': [xmlName] @
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project automation:automation:1.0-SNAPSHOT (C:\Users\Vartotojas\Desktop\Automatiniai testia\automation\pom.xml) has 3 errors
[ERROR] Resolving expression: '${xmlName}': Detected the following recursive expression cycle in 'xmlName': [xmlName] -> [Help 2]
[ERROR] Resolving expression: '${xmlName}': Detected the following recursive expression cycle in 'xmlName': [xmlName] -> [Help 2]
[ERROR] Resolving expression: '${xmlName}': Detected the following recursive expression cycle in 'xmlName': [xmlName] -> [Help 2]
[ERROR]
我曾尝试在 POM.XML 中搜索问题,但我没有找到任何东西..
也许问题出在 POM.XML 的某个地方:
<configuration>
<suiteXmlFiles>src/testResources/${xmlName}</suiteXmlFiles>
<argLine>-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"</argLine>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
<properties>
<xmlName>${xmlName}</xmlName>
<maven-surefire-plugin.version>2.20.1</maven-surefire-plugin.version>
对于属性,您必须声明一个值
<properties>
<xmlName>${xmlName}</xmlName> <-------- <xmlName>SomeValueHere</xmlName>
</properties
您在属性中传递了一个非预期的参数
Maven 可能会在构建阶段尝试将其传递到其他地方,而不是传递参数的值,因此它会再次在属性中查找参数的值。然后你有递归消息!
我正在尝试通过 运行“mvn clean compile”编译 maven 项目
我得到这样的错误:
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Resolving expression: '${xmlName}': Detected the following recursive expression cycle in 'xmlName': [xmlName] @
[ERROR] Resolving expression: '${xmlName}': Detected the following recursive expression cycle in 'xmlName': [xmlName] @
[ERROR] Resolving expression: '${xmlName}': Detected the following recursive expression cycle in 'xmlName': [xmlName] @
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project automation:automation:1.0-SNAPSHOT (C:\Users\Vartotojas\Desktop\Automatiniai testia\automation\pom.xml) has 3 errors
[ERROR] Resolving expression: '${xmlName}': Detected the following recursive expression cycle in 'xmlName': [xmlName] -> [Help 2]
[ERROR] Resolving expression: '${xmlName}': Detected the following recursive expression cycle in 'xmlName': [xmlName] -> [Help 2]
[ERROR] Resolving expression: '${xmlName}': Detected the following recursive expression cycle in 'xmlName': [xmlName] -> [Help 2]
[ERROR]
我曾尝试在 POM.XML 中搜索问题,但我没有找到任何东西..
也许问题出在 POM.XML 的某个地方:
<configuration>
<suiteXmlFiles>src/testResources/${xmlName}</suiteXmlFiles>
<argLine>-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"</argLine>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
<properties>
<xmlName>${xmlName}</xmlName>
<maven-surefire-plugin.version>2.20.1</maven-surefire-plugin.version>
对于属性,您必须声明一个值
<properties>
<xmlName>${xmlName}</xmlName> <-------- <xmlName>SomeValueHere</xmlName>
</properties
您在属性中传递了一个非预期的参数
Maven 可能会在构建阶段尝试将其传递到其他地方,而不是传递参数的值,因此它会再次在属性中查找参数的值。然后你有递归消息!