Continuum

maven 1 build does not honor relative POM filename in build definition

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.0.2
  • Component/s: Core system
  • Labels:
    None
  • Environment:
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

Setting up a build defintion for a maven 1 multiproject where the "parent" POM is in a sibling directory to the "child" modules. Set the POM filename in the build definition to the relative path of the "parent" POM (e.g., "build/project.xml").

The build fails with:

org.apache.maven.continuum.execution.ContinuumBuildExecutorException: Could not find Maven project descriptor.
at org.apache.maven.continuum.execution.maven.m1.MavenOneBuildExecutor.updateProjectFromCheckOut(MavenOneBuildExecutor.java:79)
at org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction.java:59)
at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:168)
at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53)
at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
at java.lang.Thread.run(Thread.java:595)

The build definition setting for POM filename is never consulted in MavenOneBuildExecutor.updateProjectFromCheckOut – it is hard-coded to "project.xml" in the current directory.

Activity

Hide
Daniel J. Bernstein added a comment -

When CONTINUUM-491 was fixed, it seemed to clear up this issue as well.

Show
Daniel J. Bernstein added a comment - When CONTINUUM-491 was fixed, it seemed to clear up this issue as well.
Hide
Emmanuel Venisse added a comment -

already fixed

Show
Emmanuel Venisse added a comment - already fixed

People

Vote (2)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: