jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Continuum
  • CONTINUUM-462

Relative path not honoured in cvs commands for flat project layout

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.0, 1.0.1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    affects all environments
  • Complexity:
    Intermediate

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.

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MRELEASE-6 Multiproject Release: No check in

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Christian Schulte added a comment - 23/Nov/05 1:45 PM

see comment in MNG-1263

Show
Christian Schulte added a comment - 23/Nov/05 1:45 PM see comment in MNG-1263
Hide
Permalink
Olivier Lamy added a comment - 02/Feb/06 8:58 AM

You can do it with continum by overriding the scm url in all modules (I use this with continuum 1.0.2)
Workaround works for continuum but not for http://jira.codehaus.org/browse/MRELEASE-6
Olivier

Show
Olivier Lamy added a comment - 02/Feb/06 8:58 AM You can do it with continum by overriding the scm url in all modules (I use this with continuum 1.0.2) Workaround works for continuum but not for http://jira.codehaus.org/browse/MRELEASE-6 Olivier

People

  • Assignee:
    Unassigned
    Reporter:
    Christian Schulte
Vote (0)
Watch (1)

Dates

  • Created:
    19/Nov/05 7:32 PM
    Updated:
    20/Apr/06 3:21 PM
    Resolved:
    23/Nov/05 1:45 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.