我正在使用jenkins构建WSO2项目,在构建时遇到了一些问题。有人可以帮忙解决此问题吗?例外:
错误:无法解析POM org.apache.maven.project.ProjectBuildingException:处理POM时遇到一些问题:[错误]'modules.module [2]'指定重复的子模块VBReadFromEmailBody-ESB @第14行,第13栏,位于hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:370)的org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:383),位于hudson.maven.MavenEmbedder.readProjects(MavenEmbedder。 hudson.maven.MavenModuleSetBuild $ PomParser.invoke(MavenModuleSetBuild.java:1329)处的hudson.maven.MavenModuleSetBuild $ PomParser.invoke(MavenModuleSetBuild.java:1126)处的hudson.FilePath.act(FilePath.java:1075) )于hudson.maven.MavenModuleSetBuild $ MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:987)于hudson.maven.MavenModuleSetBuild $ MavenModuleSetBuildExecution.doRun(Mhu.son.FilePath.act(FilePath.java:1058) .model.AbstractBuild $ AbstractBuildExecution.run(AbstractBui ld.java:504)位于hudson.model.Run.execute(Run.java:1853)位于hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)位于hudson.model.ResourceController.execute(ResourceController.java:97) )在hudson.model.Executor.run(Executor.java:427)
pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.qrsolutions.in</groupId>
<artifactId>VBReadFromEmailBody</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<name>VBReadFromEmailBody</name>
<description>VBReadFromEmailBody</description>
<modules>
<module>VBReadFromEmailBody-ESB</module>
<module>VBReadFromEmailBody-ParseEmailBody</module>
<module>VBReadFromEmailBody-ESB</module>
<module>VBReadFromEmailBody-CAR</module>
</modules>
<build>
<plugins>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<buildcommands />
<projectnatures>
<projectnature>org.wso2.developerstudio.eclipse.mavenmultimodule.project.nature</projectnature>
</projectnatures>
</configuration>
</plugin>
</plugins>
</build>
</project>
注意:我正在使用jar而不是依赖项
您在pom中复制了模块
<modules>
<module>VBReadFromEmailBody-ESB</module>
<module>VBReadFromEmailBody-ParseEmailBody</module>
<module>VBReadFromEmailBody-ESB</module>
<module>VBReadFromEmailBody-CAR</module>
</modules>
请删除一个<module>VBReadFromEmailBody-ESB</module>
,然后重试