Try removing this property. Also, please open a new JIRA issue with the
details how to reproduce the issue.
thanks
Christoph
Seems like the maven plugin has problems with the <basedir>${project.basedir}</basedir> property.
I assume that you're using the latest Jenkins version?
Try removing this property. Also, please open a new JIRA issue with the details how to reproduce the issue.
thanks
Christoph
Am 27.12.2011 11:23, schrieb Hollis:
Hi friends,
I have a maven project with a parent POM and have setup Jenkins to
build with maven but Jenkis fails to build the project with error
below.
Project builds fine both from Eclipse (m2eclipse) and from maven cli
(both maven and 3).
Any clues anyone?
BR /Anders
****** Error
Parsing POMs
ERROR: Processing failed due to a bug in the code. Please report this
Thanks Christof and Nicolas!
2011/12/27, nicolas de loof <nicolas...@gmail.com>:
> basedir is a predefined property in maven, and ${project.basedir} is an
> expression pointing to this exact same property. I'm surprised maven2/3
> from cli don't complain about this.
> Try to remove it as this shouldn't have any effect on your project but
> confuse the parser
>
>
>
> 2011/12/27 Christoph Kutzinski <ku...@gmx.de>
>
>> Seems like the maven plugin has problems with the
>> <basedir>${project.basedir}</**basedir> property.
>> I assume that you're using the latest Jenkins version?
>>
>> Try removing this property. Also, please open a new JIRA issue with the
>> details how to reproduce the issue.
>>
>> thanks
>> Christoph
>>
>> Am 27.12.2011 11:23, schrieb Hollis:
>>
>> Hi friends,
>>>
>>> I have a maven project with a parent POM and have setup Jenkins to
>>> build with maven but Jenkis fails to build the project with error
>>> below.
>>> Project builds fine both from Eclipse (m2eclipse) and from maven cli
>>> (both maven and 3).
>>> Any clues anyone?
>>>
>>> BR /Anders
>>>
>>> ****** Error
>>>
>>> Parsing POMs
>>> ERROR: Processing failed due to a bug in the code. Please report this
>>> to jenkinsci-users@googlegroups.**com <jenkins...@googlegroups.com>
>>> java.lang.**IllegalStateException: Failed to build parent project for
>>> com.xxxx.ate.jcattest:**jcattest:jar:P1B
>>> at org.apache.maven.project.**MavenProject.getParent(**
>>> MavenProject.java:
>>> 378)
>>> at hudson.maven.PomInfo.<init>(**PomInfo.java:133)
>>> at hudson.maven.**MavenModuleSetBuild
>>> $PomParser.toPomInfo(**MavenModuleSetBuild.java:1306)
>>> at hudson.maven.**MavenModuleSetBuild
>>> $PomParser.invoke(**MavenModuleSetBuild.java:1279)
>>> at hudson.maven.**MavenModuleSetBuild
>>> $PomParser.invoke(**MavenModuleSetBuild.java:1065)
>>> at hudson.FilePath.act(FilePath.**java:783)
>>> at hudson.FilePath.act(FilePath.**java:765)
>>> at hudson.maven.**MavenModuleSetBuild
>>> $RunnerImpl.parsePoms(**MavenModuleSetBuild.java:930)
>>> at hudson.maven.**MavenModuleSetBuild
>>> $RunnerImpl.doRun(**MavenModuleSetBuild.java:658)
>>> at hudson.model.AbstractBuild$**AbstractRunner.run(**
>>> AbstractBuild.java:
>>> 462)
>>> at hudson.model.Run.run(Run.java:**1404)
>>> at hudson.maven.**MavenModuleSetBuild.run(**
>>> MavenModuleSetBuild.java:481)
>>> at hudson.model.**ResourceController.execute(**
>>> ResourceController.java:
>>> 88)
>>> at hudson.model.Executor.run(**Executor.java:238)
>>> Caused by: org.apache.maven.project.**ProjectBuildingException: 1
>>> problem was encountered while building the effective model for
>>> com.xxxx.ate:ate-parent:P1A
>>> [ERROR] Resolving expression: '${basedir}': Detected the following
>>> recursive expression cycle in 'basedir': [basedir] @
>>> for project com.xxxx.ate:ate-parent:P1A
>>> at
>>> org.apache.maven.project.**DefaultProjectBuilder.build(**
>>> DefaultProjectBuilder.java:
>>> 145)
>>> at
>>> org.apache.maven.project.**DefaultProjectBuilder.build(**
>>> DefaultProjectBuilder.java:
>>> 285)
>>> at
>>> org.apache.maven.project.**DefaultProjectBuilder.build(**
>>> DefaultProjectBuilder.java:
>>> 243)
>>> at org.apache.maven.project.**MavenProject.getParent(**
>>> MavenProject.java:
>>> 374)
>>> ... 13 more
>>> Caused by: org.apache.maven.model.**building.**ModelBuildingException: 1
>>> problem was encountered while building the effective model for
>>> com.xxxx.ate:ate-parent:P1A
>>> [ERROR] Resolving expression: '${basedir}': Detected the following
>>> recursive expression cycle in 'basedir': [basedir] @
>>>
>>> at
>>> org.apache.maven.model.**building.DefaultModelBuilder.**
>>> build(DefaultModelBuilder.**java:
>>> 422)
>>> at
>>> org.apache.maven.model.**building.DefaultModelBuilder.**
>>> build(DefaultModelBuilder.**java:
>>> 374)
>>> at
>>> org.apache.maven.model.**building.DefaultModelBuilder.**
>>> build(DefaultModelBuilder.**java:
>>> 365)
>>> at
>>> org.apache.maven.model.**building.DefaultModelBuilder.**
>>> build(DefaultModelBuilder.**java:
>>> 232)
>>> at
>>> org.apache.maven.project.**DefaultProjectBuilder.build(**
>>> DefaultProjectBuilder.java:
>>> 141)
>>> ... 16 more
>>> project=hudson.maven.**MavenModuleSet@598a5d[**jcattest]
>>> project.getModules()=[]
>>> project.getRootModule()=null
>>> FATAL: Failed to build parent project for
>>> com.xxxx.ate.jcattest:**jcattest:jar:P1B
>>> java.lang.**IllegalStateException: Failed to build parent project for
>>> com.xxxx.ate.jcattest:**jcattest:jar:P1B
>>> at org.apache.maven.project.**MavenProject.getParent(**
>>> MavenProject.java:
>>> 378)
>>> at hudson.maven.PomInfo.<init>(**PomInfo.java:133)
>>> at hudson.maven.**MavenModuleSetBuild
>>> $PomParser.toPomInfo(**MavenModuleSetBuild.java:1306)
>>> at hudson.maven.**MavenModuleSetBuild
>>> $PomParser.invoke(**MavenModuleSetBuild.java:1279)
>>> at hudson.maven.**MavenModuleSetBuild
>>> $PomParser.invoke(**MavenModuleSetBuild.java:1065)
>>> at hudson.FilePath.act(FilePath.**java:783)
>>> at hudson.FilePath.act(FilePath.**java:765)
>>> at hudson.maven.**MavenModuleSetBuild
>>> $RunnerImpl.parsePoms(**MavenModuleSetBuild.java:930)
>>> at hudson.maven.**MavenModuleSetBuild
>>> $RunnerImpl.doRun(**MavenModuleSetBuild.java:658)
>>> at hudson.model.AbstractBuild$**AbstractRunner.run(**
>>> AbstractBuild.java:
>>> 462)
>>> at hudson.model.Run.run(Run.java:**1404)
>>> at hudson.maven.**MavenModuleSetBuild.run(**
>>> MavenModuleSetBuild.java:481)
>>> at hudson.model.**ResourceController.execute(**
>>> ResourceController.java:
>>> 88)
>>> at hudson.model.Executor.run(**Executor.java:238)
>>> Caused by: org.apache.maven.project.**ProjectBuildingException: 1
>>> problem was encountered while building the effective model for
>>> com.xxxx.ate:ate-parent:P1A
>>> [ERROR] Resolving expression: '${basedir}': Detected the following
>>> recursive expression cycle in 'basedir': [basedir] @
>>> for project com.xxxx.ate:ate-parent:P1A
>>> at
>>> org.apache.maven.project.**DefaultProjectBuilder.build(**
>>> DefaultProjectBuilder.java:
>>> 145)
>>> at
>>> org.apache.maven.project.**DefaultProjectBuilder.build(**
>>> DefaultProjectBuilder.java:
>>> 285)
>>> at
>>> org.apache.maven.project.**DefaultProjectBuilder.build(**
>>> DefaultProjectBuilder.java:
>>> 243)
>>> at org.apache.maven.project.**MavenProject.getParent(**
>>> MavenProject.java:
>>> 374)
>>> ... 13 more
>>> Caused by: org.apache.maven.model.**building.**ModelBuildingException: 1
>>> problem was encountered while building the effective model for
>>> com.xxxx.ate:ate-parent:P1A
>>> [ERROR] Resolving expression: '${basedir}': Detected the following
>>> recursive expression cycle in 'basedir': [basedir] @
>>>
>>> at
>>> org.apache.maven.model.**building.DefaultModelBuilder.**
>>> build(DefaultModelBuilder.**java:
>>> 422)
>>> at
>>> org.apache.maven.model.**building.DefaultModelBuilder.**
>>> build(DefaultModelBuilder.**java:
>>> 374)
>>> at
>>> org.apache.maven.model.**building.DefaultModelBuilder.**
>>> build(DefaultModelBuilder.**java:
>>> 365)
>>> at
>>> org.apache.maven.model.**building.DefaultModelBuilder.**
>>> build(DefaultModelBuilder.**java:
>>> 232)
>>> at
>>> org.apache.maven.project.**DefaultProjectBuilder.build(**
>>> DefaultProjectBuilder.java:
>>> 141)
>>> ... 16 more
>>>
>>>
>>>
>>>
>>> *************** project POM looks like this
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <project
>>> xmlns="http://maven.apache.**org/POM/4.0.0<http://maven.apache.org/POM/4.0.0>"
>>> xmlns:xsi="http://
>>> www.w3.org/2001/XMLSchema-**instance<http://www.w3.org/2001/XMLSchema-instance>
>>> "
>>>
>>> xsi:schemaLocation="http://**maven.apache.org/POM/4.0.0<http://maven.apache.org/POM/4.0.0>
>>> http://maven.apache.org/xsd/**maven-4.0.0.xsd<http://maven.apache.org/xsd/maven-4.0.0.xsd>
>>> ">
>>> <modelVersion>4.0.0</**modelVersion>
>>>
>>> <groupId>com.xxxx.ate.**jcattest</groupId>
>>> <artifactId>jcattest</**artifactId>
>>> <packaging>jar</packaging>
>>>
>>> <name>jcattest</name>
>>> <version>P1B</version>
>>> <url>http://maven.apache.org</**url>
>>>
>>> <parent>
>>> <groupId>com.xxxx.ate</**groupId>
>>> <artifactId>ate-parent</**artifactId>
>>> <version>P1A</version>
>>> </parent>
>>>
>>> <dependencies>
>>> .
>>> .
>>> .
>>> </dependencies>
>>>
>>> </project>
>>>
>>> *********** And parent pom like this:
>>>
>>> <project
>>> xmlns="http://maven.apache.**org/POM/4.0.0<http://maven.apache.org/POM/4.0.0>"
>>> xmlns:xsi="http://
>>> www.w3.org/2001/XMLSchema-**instance<http://www.w3.org/2001/XMLSchema-instance>
>>> "
>>>
>>> xsi:schemaLocation="http://**maven.apache.org/POM/4.0.0<http://maven.apache.org/POM/4.0.0>
>>> http://maven.apache.org/xsd/**maven-4.0.0.xsd<http://maven.apache.org/xsd/maven-4.0.0.xsd>
>>> ">
>>> <modelVersion>4.0.0</**modelVersion>
>>> <groupId>com.xxxx.ate</**groupId>
>>> <artifactId>ate-parent</**artifactId>
>>> <version>P1A</version>
>>> <packaging>pom</packaging>
>>> <name>ate-parent</name>
>>>
>>>
>>> <properties>
>>> <maven.build.timestamp.format>**yyyyMMdd_HHmm</
>>> maven.build.timestamp.format>
>>> <project.build.sourceEncoding>**UTF-8</
>>> project.build.sourceEncoding>
>>> <buildTime>${maven.build.**timestamp}</buildTime>
>>> <jarFile>${project.artifactId}**_${project.version}_$
>>> {buildTime}.jar</jarFile>
>>> <version>${project.version}</**version>
>>> <basedir>${project.basedir}</**basedir>
>>> <project>${project.artifactId}**</project>
>>> </properties>
>>> <profiles>
>>> <profile>
>>> <id>unix</id>
>>> <activation>
>>> <os>
>>> <family>unix</family>
>>> </os>
>>> </activation>
>>> <properties>
>>> <rootDir>/proj/atesc/jca/</**rootDir>
>>> <antFile>${rootDir}/tools/**
>>> eclipse_dist/preferences/
>>> ant_deliver.xml</antFile>
>>> </properties>
>>> </profile>
>>> <profile>
>>> <id>windows</id>
>>> <activation>
>>> <os>
>>> <family>windows</family>
>>> </os>
>>> </activation>
>>> <properties>
>>> <rootDir>\\proj1.x.xxx.se\**
>>> atesc\JCA\</rootDir>
>>> <antFile>${rootDir}\tools\**
>>> eclipse_dist\preferences
>>> \ant_deliver.xml</antFile>
>>> </properties>
>>> </profile>
>>> </profiles>
>>> <build>
>>> <plugins>
>>> <plugin>
>>> <groupId>org.apache.maven.**
>>> plugins</groupId>
>>> <artifactId>maven-assembly-**
>>> plugin</artifactId>
>>> <version>2.2</version>
>>> <executions>
>>> <execution>
>>>
>>> <id>jar-with-dependencies</id>
>>> <phase>package</phase>
>>> <goals>
>>>
>>> <goal>single</goal>
>>> </goals>
>>>
>>> <inherited>true</inherited>
>>> <configuration>
>>> <descriptorRefs>
>>>
>>> <descriptorRef>jar-with-**dependencies</descriptorRef>
>>> </descriptorRefs>
>>>
>>> <finalName>${project.**artifactId}_${project.version}**_${buildTime}
>>> </finalName>
>>>
>>> <attach>false</attach>
>>>
>>> <appendAssemblyId>false</**appendAssemblyId>
>>> </configuration>
>>> </execution>
>>> </executions>
>>> </plugin>
>>>
>>> <plugin>
>>> <groupId>org.apache.maven.**
>>> plugins</groupId>
>>> <artifactId>maven-surefire-**
>>> plugin</artifactId>
>>> <version>2.11</version>
>>> <configuration>
>>> <skipTests>true</skipTests>
>>>
>>> <argLine>-Djc.logging=${env.**LOG_LEVEL}
>>> -Dlogdir=${rootDir}/logs/$
>>> {project.artifactId}/${env.**USER} -DresourcePath=${rootDir}/**
>>> resources</
>>> argLine>
>>> <suiteXmlFiles>
>>> <suiteXmlFile>${project.**
>>> basedir}/src/main/java/com/**xxxx/ate/$
>>> {project.artifactId}/**testsuites/${tests}.xml</**suiteXmlFile>
>>> </suiteXmlFiles>
>>> </configuration>
>>> </plugin>
>>>
>>> <plugin>
>>> <groupId>org.codehaus.mojo</**groupId>
>>> <artifactId>properties-maven-**plugin</artifactId>
>>> <version>1.0-alpha-2</version>
>>> <executions>
>>> <execution>
>>> <phase>package</phase>
>>> <goals>
>>> <goal>write-project-**
>>> properties</goal>
>>> </goals>
>>> <configuration>
>>> <outputFile>
>>>
>>> ${project.build.directory}/
>>> **project.properties
>>> </outputFile>
>>> </configuration>
>>> </execution>
>>> </executions>
>>> </plugin>
>>>
>>> <plugin>
>>> <groupId>org.apache.maven.**
>>> plugins</groupId>
>>> <artifactId>maven-antrun-**
>>> plugin</artifactId>
>>> <version>1.7</version>
>>> <executions>
>>> <execution>
>>> <goals>
>>> <goal>run</goal>
>>> </goals>
>>> <phase>package</phase>
>>> <configuration>
>>> <failOnError>false</**
Would be great if you could still create a JIRA issue, as when it works
from command line it should from within Jenkins, too.