Uploaded image for project: 'Continuum'
  1. Continuum
  2. CONTINUUM-462

Relative path not honoured in cvs commands for flat project layout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.0, 1.0.1
    • None
    • None
    • None
    • affects all environments

    Description

      Continuum does not implement the flat project layout as described at <http://maven.apache.org/guides/mini/guide-ide-eclipse.html> at the end of the site correctly. The checkout via ViewCVS does work but during building continuum does not propagate the relative path to the modules and the parent correctly to the cvs commands it executes making the build fail because of cvs errors about unknown modules.

      Example:

      REPOROOT

      --ROOT
      ----pom.xml
      --MODULE1
      ----pom.xml
      --MODULE2
      ----pom.xml

      Just directories below REPOROOT. The ViewCVS URL to import such a project into continuum looks something like this...

      http://somehost/viewcvs/*checkout*/REPOROOT/ROOT/pom.xml

      and the SCM URL inside ROOT/pom.xml looks like this...

      <connection>scm:cvs:pserver:user@host:/cvs:/REPOROOT/ROOT</connection>

      Continuum can successfully build the project inside ROOT but fails for all projects defined like this in ROOT/pom.xml.

      <modules>
      <module>../MODULE1</module>
      <module>../MDOULE2</module>
      </modules>

      That is because it tries to do the cvs checkouts wihtout the correct relative path as it did during initial checkout via ViewCVS.

      21212715 [Thread-1] WARN org.apache.maven.continuum.scm.ContinuumScm - Command output: cvs server: cannot find module `REPOROOT/ROOT/MODULE1' - ignored
      cvs [checkout aborted]: cannot expand modules

      Here it should have used REPOROOT/ROOT/../MODULE1. The workaround to get this structure working in continuum is to specify the SCM URL inside every single pom.xml of the whole project with the correct path. Continuum then does support the flat project layout. Without the SCM URLs inside every pom it only honours the structure during initial checkout via ViewCVS but not during the cvs commands executed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              schulte77 Christian Schulte
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: